model | string | yes | Model identifier. Use a policy alias (auto, allternit-balanced, allternit-code, allternit-reasoning, allternit-knowledge, allternit-instruct), an explicit provider/model id, or a bare model id. |
messages | array | yes | Conversation messages. At least one message is required. |
temperature | number | no | Sampling temperature. Must be between 0 and 2. |
top_p | number | no | Nucleus sampling. Must be between 0 and 1. |
max_tokens | integer | no | Maximum completion tokens. Must be at least 1 when provided. |
stop | string | string[] | no | Stop sequence(s). |
presence_penalty | number | no | Presence penalty. |
frequency_penalty | number | no | Frequency penalty. |
stream | boolean | no | Return a server-sent event stream. Default false. |
stream_options | object | no | { "include_usage": true } to receive a final usage chunk in streams. |
response_format | object | no | Structured output: { "type": "text" }, { "type": "json_object" }, or { "type": "json_schema", "json_schema": { "name": "...", "schema": {...} } }. |
tools | array | no | Function-tool definitions. Only type: "function" tools are accepted. |
tool_choice | string | object | no | Tool-selection strategy. |
parallel_tool_calls | boolean | no | Whether the model may call multiple tools in parallel. |
reasoning_effort | string | no | Reasoning control: none, minimal, low, medium, high, or xhigh. |
service_tier | string | no | Provider service tier: auto, default, flex, priority, or scale. |
citations | boolean | no | Ask providers that support source citations to include them. |
context_cache_id | string | no | Prepend a reusable context cache created via /v1/context-caches. |
n | integer | no | Number of completions for best_of sampling. Must be 1–10. |
best_of | boolean | no | When true with n > 1, return only the single best candidate. |
user | string | no | End-user identifier for attribution. |