v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
Cursor Integration

Cursor hybrid chat completions

Accepts Cursor's hybrid chat-completions payload (which is structurally a Responses API request with input blocks) and returns a chat- completions-shaped response (choices + delta chunks for streams). Routes the request through the Responses pipeline internally.

post/cursor/v1/chat/completions

Request body

modelstring required

Model identifier

streamboolean
instructionsstring

System instructions for the model

max_output_tokensinteger
metadataobject
parallel_tool_callsboolean
previous_response_idstring
storeboolean
temperaturenumber
top_pnumber
truncation'auto' | 'disabled'
userstring
fallbacksstring[]

Example request

{
  "model": "gpt-4"
}

Response

Successful response

idstring
createdinteger
modelstring
objectstring
service_tierstring
system_fingerprintstring
citationsstring[]