Request
string
required
Bearer $SERV_API_KEY.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.
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.
