Cursor Integration

Bedrock count tokens (Cursor mount)

POST
/cursor/model/{modelId}/count-tokens
AuthorizationBearer <token>

Bearer token authentication. Use your MPilot virtual-key JWT or admin JWT. Virtual keys (prefixed with sk-bf-) can also be passed here.

In: header

Path Parameters

modelIdstring
input?object

Response Body

curl -X POST "https://loading/{AI_GATEWAY_URL}/cursor/model/string/count-tokens" \  -H "Content-Type: application/json" \  -d '{}'
{
  "inputTokens": 0
}
On this page

On this page

No Headings