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
input
object[]
required

Input messages as an array of message objects. Each message has a role and a content array of typed parts.

instructions
string | null

System-level instructions. Equivalent to a system message in chat completions.

stream
boolean
default:false

If true, returns Server-Sent Events (SSE) with typed events (response.created, response.in_progress, response.output_item.added, response.output_text.delta, response.completed).

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

Maximum output tokens. If exceeded, the response status is incomplete with incomplete_details.reason: "max_output_tokens".

Required range: x >= 1
response_format
object
tools
object[]

Tools the model may call.

tool_choice
enum<string>
default:auto
Available options:
auto,
none
presence_penalty
number<float>
default:0
frequency_penalty
number<float>
default:0

Response

Successful response. For non-streaming requests, returns a complete response object. For streaming requests, returns Server-Sent Events (SSE) with typed events.

id
string

Unique response ID (e.g. resp_88d5b93fd2e7b7b1).

object
enum<string>
Available options:
response
created_at
integer

Unix timestamp (seconds).

model
string

The model name used for this response.

status
enum<string>

incomplete when max_output_tokens is hit before generation finishes.

Available options:
completed,
incomplete
incomplete_details
object | null
instructions
string | null
output
(Message · object | Function Call · object)[]

Array of output items. May include reasoning items with type: "reasoning", message items with type: "message", and function call items with type: "function_call".

temperature
number
top_p
number
tool_choice
string
tools
array
max_output_tokens
integer
previous_response_id
string | null
usage
object
service_tier
string | null
truncation
string
background
boolean
parallel_tool_calls
boolean
max_tool_calls
integer | null
text
string | null
top_logprobs
integer | null
reasoning
string | null

Reasoning is returned in output[] items.

prompt
string | null
metadata
object | null
user
string | null
presence_penalty
number
frequency_penalty
number
kv_transfer_params
object | null
input_messages
array | null
output_messages
array | null