LLMCost
x-ai

xAI: Grok 4.20 API Pricing

xAI: Grok 4.20 costs $1.25 per 1M input tokens and $2.50 per 1M output tokens (cache reads: $0.200). Context window: 2M. Prices verified 2026-10-21 · source

🔔 Price alerts coming soon

Alternatives to consider

💰 Save money
DeepSeek: DeepSeek V4.1 Flash (batch)
$0.050 in / $0.150 out
Quality score: 24.7

95% cheaper with nearly identical quality (24.7 vs 25.7)

⬆️ Upgrade smart
Z.ai: GLM 5.2
$0.034 in / $7.00 out
Quality score: 53

+27.3 quality points for 14% more

🏠 Same provider
xAI: Grok Build 0.1
$1.00 in / $2.00 out
Quality score: 27.2

Cheapest x-ai model — 20% less per month

Price history
2026-08-23 → 2026-10-21 · 59 daily snapshots
inputoutput

Rebuilt daily from our snapshot archive — the chart appears once a model has 5+ snapshots of history.

Pricing behavior
Stable — no price moves across our 59 daily snapshots (2026-08-23 → 2026-10-21).

From our own daily snapshot archive — independent of provider announcements.

Intelligence & capability
via Artificial Analysis
25.7
Intelligence index · top 39% of 288 scored
$1.5625
Blended $/1M (3:1 in:out)

Intelligence measures reasoning/knowledge/coding benchmarks. A high score with a low blended price = value pick; check the value chart to see where this model lands.

Input / 1M tokens
$1.25
Output / 1M tokens
$2.50
Context window
2M
Max output
1.8M

Token economics

Token typePricevs base input
Standard input$1.25—
Cache read$0.200−84%
Output$2.50—
Web search tool$5/1k searches—

Prompt caching stores repeated context server-side: reads cost far less, but writes carry a one-time premium.

Reasoning behavior
Mode: Off by default (opt-in)

Higher effort = deeper thinking = more reasoning tokens billed as output.

Knowledge cutoff
2025-09-01

Training data ends here — newer events require retrieval or web search.

What would xAI: Grok 4.20 cost you per month?

WorkloadRequests/moAvg tokens (in/out)Est. monthly cost
Light chatbot10,000800 / 400$20.00
Coding agent5,0008,000 / 2,000$75.00
RAG pipeline30,0004,000 / 500$187.50
Doc summarizer2,00020,000 / 1,000$55.00

Estimates use list prices without prompt caching. Caching can cut input cost by up to 90% on repeated context.

About xAI: Grok 4.20

Grok 4.20 is a reasoning model from xAI with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering...

Compare xAI: Grok 4.20 with

Popular head-to-heads — see all on the comparisons index.

Frequently asked questions

How much does xAI: Grok 4.20 cost?

xAI: Grok 4.20 costs $1.25 per 1M input tokens and $2.50 per 1M output tokens; cached input tokens cost $0.200 per 1M. Verified 2026-10-21 — provider source.

What is the context window?

2M tokens, with up to 1.8M output tokens per response. That's roughly 2500 pages of text in a single request.

Does it support prompt caching?

Yes — cached input is $0.200/1M, about 84% cheaper than standard input. Agents and RAG workloads with repeated context benefit most.

What's a cheaper alternative?

ScaleDown: Summarize saves about 98% on a typical workload with comparable quality.

Official resources