Create response
Creates a model response for the given input. This is the OpenAI Responses API. Supports instructions (system message equivalent), streaming, tool calling, JSON mode, and multi-turn conversations.
When present, reasoning is returned as a structured output item with type: "reasoning", separate from the message output.
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 Simple text input.
System-level instructions. Equivalent to a system message in chat completions.
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).
0 <= x <= 1Maximum output tokens. If exceeded, the response status is incomplete with incomplete_details.reason: "max_output_tokens".
x >= 1Tools the model may call.
auto, none Response
Successful response. For non-streaming requests, returns a complete response object. For streaming requests, returns Server-Sent Events (SSE) with typed events.
Unique response ID (e.g. resp_88d5b93fd2e7b7b1).
response Unix timestamp (seconds).
The model name used for this response.
incomplete when max_output_tokens is hit before generation finishes.
completed, incomplete Array of output items. May include reasoning items with type: "reasoning", message items with type: "message", and function call items with type: "function_call".
- Message
- Function Call
Always null. Reasoning is in output[] items.