Skip to main content
POST

Authorizations

Authorization
string
header
required

Use a Corti-issued bearer token.

Body

application/json
model
enum<string>
default:corti-s1
required
Available options:
corti-s1,
corti-s1-instant,
corti-s1-mini,
corti-s1-mini-instant
messages
(User Message · object | System Message · object | Assistant Message · object | Tool Message · object)[]
required

Conversation messages. Supported roles: user, assistant, tool, and system.

Minimum array length: 1
stream
boolean
default:false

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

temperature
number<float>
default:1
Required range: 0 <= x <= 1
top_p
number<float>
default:0.95
Required range: 0.01 <= x <= 1
max_tokens
integer

Maximum tokens to generate.

Required range: x >= 1
tools
object[]

Function tools the model may call. Max 128.

tool_choice
enum<string>
default:auto
Available options:
auto
response_format
object
logprobs
boolean
default:false
top_logprobs
integer
Required range: 0 <= x <= 20

Response

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

id
string
object
enum<string>
Available options:
chat.completion
created
integer
model
string

The model name used for this response.

choices
object[]
system_fingerprint
string | null
usage
object
service_tier
string | null
prompt_logprobs
object | null
prompt_token_ids
integer[] | null
prompt_text
string | null
kv_transfer_params
object | null