Completions
Create completion
Creates a text completion for the given prompt. Supports streaming via SSE.
POST
Authorizations
Use a Corti-issued bearer token.
Body
application/json
Available options:
corti-s1, corti-s1-instant, corti-s1-mini, corti-s1-mini-instant Single prompt string.
If true, returns SSE with data: {chunk} lines. Terminates with data: [DONE].
Required range:
0 <= x <= 1Maximum tokens to generate.
Required range:
x >= 1Required range:
0 <= x <= 20Response
Successful response. For non-streaming requests, returns a complete text completion. For streaming requests, returns Server-Sent Events (SSE) with incremental text chunks. Terminates with data: [DONE].
Unique completion ID (e.g. cmpl-8acdd476-...).
Available options:
text_completion Unix timestamp (seconds).
The model name used for this response.