xAI (Grok)

Grok 4.20

xAI's Grok 4.20 flagship with reasoning variants and prompt caching for high-throughput agent loops.

ActiveAvailable from 2 providers
Tool callingCan invoke external tools and APIs (function calling) mid-response.Structured outputCan return JSON or schema-constrained responses instead of free text.ReasoningUses extended thinking / chain-of-thought for harder multi-step problems.Effort controlLets you dial thinking depth (low / medium / high) to trade cost for quality.Fine-tuningSupports training a custom variant on your own data (vendor fine-tune API or self-hosted open weights).

Source: xAI API docs, xAI console

Price per 1M tokens
$2 in / $6 out
Context window1,000,000
Cache read$0.2 / M
ModalitiesText, Image → Text
Priced across2 providers

Pricing

Every billing leg from the live catalog, in USD per 1M tokens.

Billing legRate
Input$2 / M
Output$6 / M
Cache read$0.2 / M

Cost calculator

Billing-grade math over the rate card above, including the thinking tokens most estimates miss.

Hidden reasoning tokens bill as output. 1.0x = thinking off. Medium-effort reasoning typically lands near 3x; heavy reasoning runs 6x to 8x. Set it to match your workload.

Estimated monthly cost
$760
at current list prices
Fresh input$400
Cached input$0.00
Output incl. thinking$360
Track this automatically →

Compare providers

The same model, priced across every platform that serves it. Lowest combined in/out rate is flagged.

PlatformInput / MOutput / MCache read / MBatchAccess
xAI
$2$6$0.2First-party API
xAILowest
$1.25$2.5$0.2via OpenRouter

Price history

Has this model gotten cheaper or more expensive?

No changePriced at $2 / $6 per 1M since May 11, 2026.

More from xAI (Grok)

Other models from the same provider.

Stop estimating. Track it.

SuperPenguin meters every Grok 4.20 call your team makes, prices it with this exact rate card, and shows spend by feature, customer, and team.

Get started free

Rates are generated from SuperPenguin's live pricing catalog.