Endpoint Reference
Chat Completions protocol
Common OpenAI-compatible chat request, response, and streaming rules.
POST
Create a model response from a list of chat messages. Choose an exact model page under Text Series for pricing and the recommended model ID.
Each event begins with
string
required
A text model ID available to your API key. Use
GET /v1/models to discover IDs, then open its
individual model page for current pricing.array
required
Ordered chat messages. Each message includes a
role and content.boolean
default:"false"
Set to
true to receive server-sent events.number
Controls sampling variation. Lower values are more deterministic.
integer
Caps generated tokens when supported by the selected model.
Stream a response
Setstream to true. The response uses server-sent events (SSE).
data:. Read events until the data: [DONE] marker.