中文

Prices › xAI

Grok 4.20 API pricing & setup

As of 2026-10-17, the cheapest Grok 4.20 channel is Official (Intl): $1.25 input / $2.5 output per 1M tokens (blended $1.56). Context 2M.

Context: 2M · Max output: 1.8M · Modalities: text, image, file · Listed: 2026-03-31

Channel comparison (per 1M tokens)

ChannelBlendedInputOutputCachedAccess & payment (this channel)NotesSource
Official (Intl)
$1.25 / $2.5
$1.56$1.25$2.5$0.2?CN direct·unverified?Alipay·unverified?ID·unverified?Intl card·unverified
conditions source2026-10-17
Short context (<200K); long context ≥200K is 2×docs.x.ai
2026-10-17
OpenRouter
$1.25 / $2.5
$1.56$1.25$2.5$0.2✓CN direct✓Alipay✗ID✗Intl card
conditions source2026-10-17
Original vendor endpoint: xAIopenrouter.ai
2026-10-17

Access & payment conditions are verified per channel (see the column above); unverified never counts as met.

How to use Grok 4.20 in Claude Code / Codex / OpenCode

Provider-specific setup not yet verified. Generic setup: guides

Cheaper alternatives

Gemini 3.8 Flash ($1.5) · Gemini 3.6 Flash ($1.5) · Step 5 Preview ($1.43) ·

Related comparisons

Grok 4.7 vs GPT-6.1 Sol · Grok 4.7 vs Claude Sonnet 5.5 · Gemini 3.8 Flash vs GPT-6 Luna · Compare any two →

Rankings: Cheapest LLM APIs · LLM APIs usable from mainland China · All xAI models

Price history

FAQ

How much does the Grok 4.20 API cost?

Cheapest channel (Official (Intl)): $1.25 input / $2.5 output per 1M tokens, verified 2026-10-17.

Can I use Grok 4.20 from China?

Official (Intl): direct unverified, Alipay unverified, ID required unverified, overseas card unverified; OpenRouter: direct yes, Alipay yes, ID required no, overseas card no

Is Grok 4.20 free?

No free route or deal recorded for this model; pay-as-you-go.

What is Grok 4.20's context window?

2M tokens