Anthropic complete (Cursor mount)

Cursor mount of the legacy Anthropic POST /v1/complete endpoint.

POST
/cursor/v1/complete
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

modelstring

Model identifier

promptstring

The prompt to complete

max_tokens_to_sampleinteger

Maximum tokens to generate

stream?boolean
temperature?number
Range0 <= value <= 1
top_p?number
top_k?integer
stop_sequences?array<string>
fallbacks?array<string>

Response Body

curl -X POST "https://loading/{AI_GATEWAY_URL}/cursor/v1/complete" \  -H "Content-Type: application/json" \  -d '{    "model": "string",    "prompt": "string",    "max_tokens_to_sample": 0  }'
{
  "type": "completion",
  "id": "string",
  "completion": "string",
  "stop_reason": "stop_sequence",
  "model": "string",
  "usage": {
    "input_tokens": 0,
    "output_tokens": 0
  }
}
On this page

On this page

No Headings