v1

latestOpenAPI 3.1.02026-07-2676188241.3 KB
Chat

Create chat completion

Creates a model response for the given conversation. This is the OpenAI Chat Completions API. Some models return chain-of-thought reasoning in the reasoning field of the response message. The -instant model variants do not produce reasoning on this endpoint.

post/chat/completions

Request body

model'corti-s1' | 'corti-s1-instant' | 'corti-s1-mini' | 'corti-s1-mini-instant' required
streamboolean

If true, returns SSE with data: {chunk} lines. Terminates with data: [DONE].

temperaturenumber float
top_pnumber float
max_tokensinteger

Maximum tokens to generate.

tool_choice'auto'
logprobsboolean
top_logprobsinteger

Response

Successful response. For non-streaming requests, returns a complete chat completion. For streaming requests, returns Server-Sent Events (SSE) with incremental chunks.

idstring
object'chat.completion'
createdinteger
modelstring

The model name used for this response.

system_fingerprintstring nullable
service_tierstring nullable
prompt_logprobsobject nullable
prompt_token_idsinteger[] nullable
prompt_textstring nullable
kv_transfer_paramsobject nullable