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.
Authorizations
Use a Corti-issued bearer token. The token is a Base64-encoded client credential string in the format base:client_credentials:<client_id>:<client_secret>.
Body
corti-s1, corti-s1-instant, corti-s1-mini, corti-s1-mini-instant Conversation messages. Supported roles: user, assistant, tool, and system.
1- User Message
- System Message
- Assistant Message
- Tool Message
If true, returns SSE with data: {chunk} lines. Terminates with data: [DONE].
0 <= x <= 10.01 <= x <= 1Maximum tokens to generate.
x >= 1Function tools the model may call. Max 128.
auto 0 <= x <= 20Response
Successful response. For non-streaming requests, returns a complete chat completion. For streaming requests, returns Server-Sent Events (SSE) with incremental chunks.
chat.completion The model name used for this response.