Grok 4.20 API pricing and context window
Grok 4.20 costs $1.25 per 1M input tokens and $2.50 per 1M output tokens on the xAI API. Cached input reads cost $0.20 per 1M. It accepts up to 1,000,000 input tokens. A typical chat request (10K input, 1K output) costs about $0.015. Prices last updated November 27, 2026.
- Input
- $1.25 per 1M tokens
- Output
- $2.50 per 1M tokens
- Cached input
- $0.20 per 1M tokens
- Context window
- 1,000,000 tokens
Prices, limits and listed capabilities are identical to Grok 4.3.
Pricing options
| Input /1M | Output /1M | vs standard (input / output) | |
|---|---|---|---|
| Prompt over 200K tokens | $2.50 | $5.00 | +100% / +100% |
| Batch API | $1.00 | $2.00 | -20% / -20% |
- Prompts over 200,000 tokens are billed at $2.50 input and $5.00 output per 1M for the whole request.
- The Batch API costs $1.00 input and $2.00 output per 1M: input and output 20% cheaper.
Typical task cost
| Task | Cost |
|---|---|
| Chat request (10K in + 1K out) | $0.015 |
| Codebase question (100K in + 2K out) | $0.13 |
| Same question with cached context (100K cached + 2K out) | $0.025 |
| Long prompt (220K in + 2K out) | $0.56 |
| Filling the whole context once (1M in) | $2.50 |
| 1M tokens a month (750K in + 250K out) | $1.56 |
Estimate your own workload in the calculator
Grok 4.20 compared with the previous and next version
| Model | Input /1M | Output /1M | What changes | |
|---|---|---|---|---|
| Newer | Grok 4.3 | $1.25 0% | $2.50 0% | Same prices, limits and listed capabilities |
Capabilities and details
- Image input: Yes
- Function calling: Yes
- Reasoning: Yes
- Prompt caching: Yes
- PDF input: Not listed
- Web search: Yes
- Structured output: Yes
- Input types: text, image
Similar models by price
| Model | Provider | Input /1M | Output /1M | Context window | vs this model (input / output) |
|---|---|---|---|---|---|
| Gemini 3.8 Flash | $0.75 | $3.75 | 1M | -40% / +50% | |
| Kimi K2.6 | Moonshot AI | $0.95 | $4.00 | 256K | -24% / +60% |
| DeepSeek V4 Pro | DeepSeek | $1.32 | $3.96 | 1M | +6% / +58% |
| Claude Haiku 4.5 | Anthropic | $1.00 | $5.00 | 200K | -20% / +100% |
| Gemini 3 Flash Preview | $0.50 | $3.00 | 1M | -60% / +20% |
Price history
| Date | Input /1M | Output /1M | Cached input /1M |
|---|---|---|---|
| $1.25 | $2.50 | $0.20 |
Tracking started on November 21, 2026. A new row appears only when a price changes.
Embed this price badge
The badge shows the current list price and updates daily. Paste the HTML or Markdown into your site or README.
<a href="https://vibecodingturkey.com/models/grok-4-20"><img src="https://vibecodingturkey.com/models/badge/grok-4-20.svg" alt="Grok 4.20 API price" height="20"></a>[](https://vibecodingturkey.com/models/grok-4-20)
Questions
How is Grok 4.20 different from Grok 4.3?
Grok 4.20 has the same prices, limits and listed capabilities as Grok 4.3.
Does Grok 4.20 cost more for long prompts?
Yes. Once a prompt passes 200,000 tokens, the whole request is billed at $2.50 input and $5.00 output per 1M. A 220K-token prompt with a 2K answer costs about $0.56.
Is there a batch discount for Grok 4.20?
Yes. Through the Batch API it costs $1.00 per 1M input and $2.00 per 1M output tokens.
Does Grok 4.20 support prompt caching?
Yes. Cached input reads cost $0.20 per 1M tokens, 84% less than standard input.