{
"id": "<string>",
"object": "chat.completion",
"created": 123,
"model": "<string>",
"choices": [
{
"index": 123,
"message": {
"role": "assistant",
"content": "<string>",
"reasoning": "<string>",
"refusal": "<string>",
"annotations": [
"<unknown>"
],
"audio": {},
"function_call": {},
"tool_calls": [
{
"id": "<string>",
"type": "function",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
},
"logprobs": {},
"finish_reason": "stop",
"stop_reason": 123,
"token_ids": [
123
],
"routed_experts": [
"<unknown>"
]
}
],
"system_fingerprint": "<string>",
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123,
"prompt_tokens_details": {
"cached_tokens": 123,
"multimodal_tokens": {
"image": 123
}
}
},
"service_tier": "<string>",
"prompt_logprobs": {},
"prompt_token_ids": [
123
],
"prompt_text": "<string>",
"kv_transfer_params": {}
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}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.
{
"id": "<string>",
"object": "chat.completion",
"created": 123,
"model": "<string>",
"choices": [
{
"index": 123,
"message": {
"role": "assistant",
"content": "<string>",
"reasoning": "<string>",
"refusal": "<string>",
"annotations": [
"<unknown>"
],
"audio": {},
"function_call": {},
"tool_calls": [
{
"id": "<string>",
"type": "function",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
},
"logprobs": {},
"finish_reason": "stop",
"stop_reason": 123,
"token_ids": [
123
],
"routed_experts": [
"<unknown>"
]
}
],
"system_fingerprint": "<string>",
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123,
"prompt_tokens_details": {
"cached_tokens": 123,
"multimodal_tokens": {
"image": 123
}
}
},
"service_tier": "<string>",
"prompt_logprobs": {},
"prompt_token_ids": [
123
],
"prompt_text": "<string>",
"kv_transfer_params": {}
}{
"error": "<string>",
"detail": "<string>"
}{
"error": "<string>",
"detail": "<string>"
}Authorizations
Use a Corti-issued bearer token.
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
Show child attributes
Show child attributes
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.
Show child attributes
Show child attributes
auto Show child attributes
Show child attributes
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.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?