Skip to main content
OpenAI Chat Completions format. The universal endpoint — works with every model in the catalog.

Request

string
required
Bearer $SERV_API_KEY.
string
required
Model ID from the catalog, for example gpt-5.4-mini.
array
required
The conversation so far. Must include a system or developer message. Each entry has a role (system, user, assistant, or tool) and content.
integer
Maximum number of tokens to generate.
string
Reasoning depth for reasoning-capable models.
number
Sampling temperature.
array
Function definitions, in OpenAI format: { type: "function", function: { name, parameters } }.
string | object
"auto", "none", or { type: "function", function: { name } }.
boolean
default:"false"
Stream the response as server-sent events.
All other OpenAI Chat Completions parameters are accepted and forwarded to the model.

Response

string
Unique identifier for the completion.
string
Always "chat.completion".
string
The model used to generate the completion.
array
The generated completions. choices[0].message.content holds the text.
object
Token counts: prompt_tokens, completion_tokens, total_tokens.