SpaceXAI: Grok 4.20
x-ai/grok-4.20- Modalities
- text+image+file->text
- In / out price
- $1.25 / $2.5
- Context
- 2M
- Released
- Mar 31, 2026
- Knowledge cutoff
- 2025-09-01
per 1M
Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering...
Supported parameters
include_reasoningInclude reasoning
Include a reasoning summary in the response.
logprobsLogprobs
Return the log probability of each output token.
max_tokensMax tokens
Upper bound on generated tokens. Output stops at the limit.
reasoningReasoning
Enable or configure reasoning. The fields differ by model.
response_formatResponse format
For example json_object or json_schema, to constrain the shape.
seedSeed
A fixed seed helps reproduce sampling. It does not guarantee byte-identical output.
structured_outputsStructured outputs
Generate a parseable structure that follows a JSON Schema.
temperatureTemperature
Sampling temperature. Lower is steadier, higher is more varied. Often 0 to 2.
tool_choiceTool choice
Whether to call a tool: auto, none, or a named function.
toolsTools
Function definitions the model may call via tool_calls.
top_logprobsTop logprobs
Also return the most likely alternatives at each position.
top_pTop-p
Sample only from tokens whose cumulative probability reaches top_p.