Documentation Index
Fetch the complete documentation index at: https://docs.openserv.ai/llms.txt
Use this file to discover all available pages before exploring further.
Request
Bearer $SERV_API_KEY.The conversation so far. Must include a system or developer message. Each entry has a
role (system, user, assistant, or tool) and content.Maximum number of tokens to generate.
Reasoning depth for reasoning-capable models.
Sampling temperature.
Function definitions, in OpenAI format:
{ type: "function", function: { name, parameters } }."auto", "none", or { type: "function", function: { name } }.Stream the response as server-sent events.
Response
Unique identifier for the completion.
Always
"chat.completion".The model used to generate the completion.
The generated completions.
choices[0].message.content holds the text.Token counts:
prompt_tokens, completion_tokens, total_tokens.
