x-ai / text-generation API-only released 2026-03-31

Grok 4.20

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...

Input / 1M
$1.25
Output / 1M
$2.50
Context
2M
AA Intelligence
25.7
Closed weights — available only as a hosted API text + image + file → text Knowledge cutoff Sep 2025 View on OpenRouter ↗

Pricing

via OpenRouter · USD per 1M tokens · synced 2026-10-24
$1.25
input / 1M
$2.50
output / 1M
$0.20
cached input / 1M
$3.75
1M in + 1M out
Price tiers
  • Above 200K prompt tokens: input $2.50/M, output $5.00/M (2× base)
Context window
2,000,000 tokens
Max output
1,800,000 tokens
Providers
1
Cheapest provider
xAI · $1.25 / $2.50
Best throughput
—
AA Intelligence / Coding / Agentic
25.7 / — / —
✓ Tool calling ✓ Reasoning ✓ Structured outputs ✓ Image input ✓ File input ✗ Audio input ✓ Prompt caching

Price history

tracking started — chart appears after 7 days of snapshots (6 recorded)
Current: $1.25 input · $2.50 output per 1M tokens

Benchmarks

Third-party indices as published through OpenRouter — Artificial Analysis and Design Arena. Not measured by us.

AA Intelligence Index
25.7
AA Coding Index
—
AA Agentic Index
—
Design Arena
CategoryEloWin %Rank
androidnative 1047 35% #36
fullstack 1054 41.1% #34
godotgamedev 1089 38.5% #31
htmlslides 1180 45.7% #3
mobileapps 1090 45.4% #43
webapps 1144 49.7% #31
3d 1193 52.1% #52
asciiart 1175 48.2% #30
codecategories 1220 51.8% #54
dataviz 1217 52% #53
gamedev 1193 50.1% #60
svg 1165 52.4% #40
uicomponent 1197 49% #60
website 1229 51.8% #54

Providers

1 provider · per 1M tokens · last 30 min metrics
ProviderQuantContextInputOutputUptimeTok/s
xAI unknown 2M $1.25 $2.50 100% —
xAI unknown 2M $1.25 $2.50 100% —
xAI unknown 2M $2.50 $5.00 — —
xAI unknown 2M $2.50 $5.00 100% —
Provider data from OpenRouter's endpoint listing, refreshed daily.

Specifications

Organisation
x-ai
Released on OpenRouter
2026-03-31
Context window
2,000,000 tokens
Max output
1,800,000 tokens
Input
text, image, file
Output
text
Knowledge cutoff
September 2025
Tokenizer
Grok
Moderated by provider
No
OpenRouter id
x-ai/grok-4.20
Compare with
Prices, context and providers from the public OpenRouter API, snapshotted daily; benchmark indices from Artificial Analysis. See /methodology.