xAI
API key
6 params
xAI Grok 4.3 parameters
These are the parameters modelparams.dev tracks for xAI Grok 4.3. Each row gives the type, default, valid range or values, and the conditions that gate it. It's the same data the JSON API serves.
| Parameter | Type | Default | Description | Condition |
|---|---|---|---|---|
| Length · 1 param | ||||
|
Max completion tokens
max_completion_tokens
|
integer (1…+∞) | — | Upper bound for visible output tokens generated in the chat completion. | — |
| Sampling · 3 params | ||||
|
Temperature
temperature
|
number (0…2 step 0.1) | 1 | Controls randomness. Lower values make outputs more focused; higher values make them more varied. | — |
|
Top P
top_p
|
number (0…1 step 0.01) | 1 | Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability. | — |
|
Seed
seed
|
integer | — | Optional seed used for decoding when reproducible sampling is desired. | — |
| Reasoning · 1 param | ||||
|
Reasoning effort
reasoning_effort
|
enum (none | low | medium | high) | "low" | Controls how much reasoning Grok performs before responding. Set to none for non-reasoning requests. | — |
| Output · 1 param | ||||
|
Response format
response_format.type
|
enum (text | json_object | json_schema) | "text" | Controls whether the model returns text, JSON mode output, or structured JSON schema output. | — |