temperature | number | no | 1.0 | Sampling temperature. 0 is deterministic and 2 is maximum randomness. · Range: 0 – 2 |
top_p | number | no | 0.95 | Nucleus sampling probability mass. Lower values make outputs more focused. · Range: 0.01 – 1 |
max_tokens | integer | no | 8192 | Maximum output tokens. When omitted: 8,192 at low and medium reasoning effort, 9,216 at high, and 32,768 at max or with thinking off. · Range: 1 – 32768 |
stop | string | no | - | One or more stop strings. |
reasoning_effort | enum | no | "medium" | Reasoning effort level. none disables thinking. low, medium, high, and max set bounded thinking budgets sized to the selected model. · Allowed: none, low, medium, high, max |
thinking_budget | integer | no | 4096 | Maximum tokens reserved for reasoning when thinking is enabled. When max_tokens is lower, room is kept for the answer; a very low max_tokens can be spent entirely on reasoning. · Range: 128 – 32768 |
enable_thinking | boolean | no | true | Enable reasoning before answering. With response_format, the model answers without reasoning unless the request sets enable_thinking. |
top_k | integer | no | 20 | Limit sampling to the top K candidate tokens when supported. · Min: 1 |
presence_penalty | number | no | 0 | Penalty for tokens that already appeared in the generated text. · Range: -2 – 2 |
frequency_penalty | number | no | 0 | Penalty based on how often a token has already appeared. · Range: -2 – 2 |
repetition_penalty | number | no | 1 | Higher values discourage repeated phrasing. · Min: 0.1 |
seed | integer | no | - | Optional random seed for reproducible sampling. · Range: 0 – 2147483647 |
logprobs | boolean | no | false | Return token log probabilities when supported. |
top_logprobs | integer | no | - | Return up to this many top token log probabilities. · Range: 0 – 20 |
logit_bias | object | no | - | Bias token IDs by adding positive or negative values before sampling. |
tools | array | no | - | OpenAI-compatible function tool definitions. |
tool_choice | object | no | - | OpenAI-compatible function tool selection. |
response_format | enum | no | - | Constrain the output to valid JSON. Use JSON mode for any JSON object, or supply a JSON Schema to force an exact response shape. |
web_search_linkup | boolean | no | false | Optional web search powered by Linkup. When enabled, recent web sources are retrieved using your latest user message as the query and provided to the model as additional context. Adds $0.013 per call when invoked on top of the model’s normal token cost. Disabled by default. |
disable_formatting | boolean | no | false | Return the answer without the Sources list that web search adds. |