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. Append -serv-kronos or -serv-multipath to enable Kronos or Multipath.
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. SERV may lower it when your balance is low; see low balance.
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.
Other OpenAI Chat Completions parameters are forwarded to the model, with these exceptions:
  • service_tier is removed, since requests are billed at the standard rate.
  • metadata is read for SERV options such as prompt_cache and is not forwarded.
  • store is always sent as false to OpenAI models, so completions are not stored for OpenAI’s distillation and evals products. Unless zero data retention is enabled, OpenAI may still retain inputs and outputs for abuse monitoring for up to 30 days, or longer when required by law or reasonably necessary to protect its services or others from harm.
  • web_search_options, plugins, models, route and mcp_servers are rejected with a 400.
  • tools accepts only function and custom tool types; any other type returns a 400.

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.