Model specifications
- Context
- 2,000,000 tokens
- Maximum output
- 1,800,000 tokens
- Architecture
- text+image+file->text
- Tokenizer
- Grok
- Knowledge cutoff
- 2025-09-01
- Moderated
- No
Complete pricing
Synchronized OpenRouter rates. Token prices are shown per one million tokens.
- Input
- $1.25 per 1M tokens
- ≤200K$1.25
- >200K$2.5
- Output
- $2.5 per 1M tokens
- ≤200K$2.5
- >200K$5
- Cache read
- $0.2 per 1M tokens
- ≤200K$0.2
- >200K$0.4
- Web search
- $5 per 1,000 calls
Model configuration
Reasoning
- Reasoning required
- Yes
- Default parameters
- medium
- Capabilities
- xhigh, high, medium, low
Quick start
Set OPENROUTER_API_KEY locally. Python requires requests; JavaScript runs in Node.js. Keep the key on the server.
curl --fail-with-body https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"x-ai/grok-4.20-multi-agent","messages":[{"role":"user","content":"Hello!"}]}'Input → Output
Yes · xhigh · high · medium · low
Supported API parameters
include_reasoninglogprobsmax_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstemperaturetop_logprobstop_p4 providers
Checked: September 7, 2026
Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.
xAI
Not provided- Context
- 2M
- Maximum output
- 1.8M
- Input
- $1.25
- Output
- $2.5
- Cache read
- $0.2
- Cache write
- Not provided
xAI
Not provided- Context
- 2M
- Maximum output
- 1.8M
- Input
- $1.25
- Output
- $2.5
- Cache read
- $0.2
- Cache write
- Not provided
xAI
Not provided- Context
- 2M
- Maximum output
- 1.8M
- Input
- $2.5
- Output
- $5
- Cache read
- $0.4
- Cache write
- Not provided
xAI
Not provided- Context
- 2M
- Maximum output
- 1.8M
- Input
- $2.5
- Output
- $5
- Cache read
- $0.4
- Cache write
- Not provided