temperature to 1.0). We will also transmit some provider-specific parameters, such as safe_prompt for Mistral or raw_mode for Hyperbolic directly to the respective providers if specified.
Please refer to the model’s provider section to confirm which parameters are supported. For detailed guidance on managing provider-specific parameters, click here.
Temperature
-
Key:
temperature - Optional, float, 0.0 to 2.0
- Default: 1.0
- Explainer Video: Watch
Top P
-
Key:
top_p - Optional, float, 0.0 to 1.0
- Default: 1.0
- Explainer Video: Watch
Top K
-
Key:
top_k - Optional, integer, 0 or above
- Default: 0
- Explainer Video: Watch
Frequency Penalty
-
Key:
frequency_penalty - Optional, float, -2.0 to 2.0
- Default: 0.0
- Explainer Video: Watch
Presence Penalty
-
Key:
presence_penalty - Optional, float, -2.0 to 2.0
- Default: 0.0
- Explainer Video: Watch
Repetition Penalty
-
Key:
repetition_penalty - Optional, float, 0.0 to 2.0
- Default: 1.0
- Explainer Video: Watch
Min P
-
Key:
min_p - Optional, float, 0.0 to 1.0
- Default: 0.0
Top A
-
Key:
top_a - Optional, float, 0.0 to 1.0
- Default: 0.0
Seed
-
Key:
seed - Optional, integer
Max Tokens
-
Key:
max_tokens - Optional, integer, 1 or above
Max Completion Tokens
-
Key:
max_completion_tokens - Optional, integer, 1 or above
Logit Bias
-
Key:
logit_bias - Optional, map
Logprobs
-
Key:
logprobs - Optional, boolean
Top Logprobs
-
Key:
top_logprobs - Optional, integer
Response Format
-
Key:
response_format - Optional, map
{ "type": "json_object" } enables JSON mode, which guarantees the message the model generates is valid JSON.
Note: when using JSON mode, you should also instruct the model to produce JSON yourself via a system or user message.
Structured Outputs
-
Key:
structured_outputs - Optional, boolean
Stop
-
Key:
stop - Optional, array
Tools
-
Key:
tools - Optional, array
Tool Choice
-
Key:
tool_choice - Optional, string or object
{"type": "function", "function": {"name": "my_function"}} forces the model to call that tool.
Parallel Tool Calls
-
Key:
parallel_tool_calls - Optional, boolean
- Default: true
Include Reasoning
-
Key:
include_reasoning - Optional, boolean
Reasoning
-
Key:
reasoning - Optional, map
Reasoning Effort
-
Key:
reasoning_effort - Optional, enum (xhigh, high, medium, low, minimal, none)
Web Search Options
-
Key:
web_search_options - Optional, map
Verbosity
-
Key:
verbosity - Optional, enum (low, medium, high, xhigh, max)
- Default: medium
output_config.effort. The ‘xhigh’ level is supported by Anthropic Claude 4.7 Opus and later models. The ‘max’ level is supported by Anthropic Claude 4.6 Opus and later models.