v1

latestOpenAPI 3.1.02026-07-2676188241.3 KB
Completions

Create completion

Creates a text completion for the given prompt. Supports streaming via SSE.

post/completions

Request body

model'corti-s1' | 'corti-s1-instant' | 'corti-s1-mini' | 'corti-s1-mini-instant' required
streamboolean

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

temperaturenumber float
top_pnumber float
max_tokensinteger

Maximum tokens to generate.

logprobsboolean
top_logprobsinteger

Response

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].

idstring

Unique completion ID (e.g. cmpl-8acdd476-...).

object'text_completion'
createdinteger

Unix timestamp (seconds).

modelstring

The model name used for this response.

system_fingerprintstring nullable
service_tierstring nullable
kv_transfer_paramsobject nullable