Back to models
deprecated

Grok 4

xai/grok-4

Prices

Input

$1.25 per 1M tokens

unverified · disputed
Input (>200k ctx)

$2.50 per 1M tokens

low
Input (cached read, >200k ctx)

$0.40 per 1M tokens

low
Input (cached read)

$0.20 per 1M tokens

unverified · disputed
Output

$2.50 per 1M tokens

unverified · disputed
Output (>200k ctx)

$5.00 per 1M tokens

low

Also available on

The same model, sold by someone else. The price above is the maker's own.

13 sales channels for this model.
ChannelWhatPrice
Microsoft Azure · azure-aiInput$3.00 per 1M tokens
Output$15.00 per 1M tokens
OpenRouterInput$3.00 per 1M tokens
Output$15.00 per 1M tokens
Other · abacusInput$3.00 per 1M tokens
Output$15.00 per 1M tokens
Other · fastrouterInput$3.00 per 1M tokens
Input (cache write)$15.00 per 1M tokens
Input (cached read)$0.75 per 1M tokens
Output$15.00 per 1M tokens
Other · heliconeInput$3.00 per 1M tokens
Input (cached read)$0.75 per 1M tokens
Output$15.00 per 1M tokens
Other · jiekouInput$2.85 per 1M tokens
Output$14.25 per 1M tokens
Other · llmgatewayInput$3.00 per 1M tokens
Input (cached read)$0.75 per 1M tokens
Output$15.00 per 1M tokens
Other · llmgateway-providersInput$3.00 per 1M tokens
Input (cached read)$0.75 per 1M tokens
Output$15.00 per 1M tokens
Other · ociInput$3.00 per 1M tokens
Output$15.00 per 1M tokens
Other · poeInput$3.00 per 1M tokens
Input (cached read)$0.75 per 1M tokens
Output$15.00 per 1M tokens
Other · replicateInput$7.20 per 1M tokens
Output$36.00 per 1M tokens
Other · vercel-ai-gatewayInput$3.00 per 1M tokens
Output$15.00 per 1M tokens
Other · zenmuxInput$3.00 per 1M tokens
Input (cached read)$0.75 per 1M tokens
Output$15.00 per 1M tokens

Specifications

Provider
xai
Context window
256,000
Max output tokens
256,000
Open weights
no
Released
07/09/2025
Retires
01/31/2027
First seen by this tracker

Price history

Input — per 1M tokens

3009/14/2026today
Recorded changes for Input
FromAmount
09/14/20263
09/14/20261.25

Input (cached read) — per 1M tokens

0.75009/14/2026today
Recorded changes for Input (cached read)
FromAmount
09/14/20260.75
09/14/20260.2

Output — per 1M tokens

15009/14/2026today
Recorded changes for Output
FromAmount
09/14/202615
09/14/20262.5

No changes recorded

Input (>200k ctx)
2.5 per 1M tokens, unchanged since 09/14/2026
Output (>200k ctx)
5 per 1M tokens, unchanged since 09/14/2026
Input (cached read, >200k ctx)
0.4 per 1M tokens, unchanged since 09/14/2026

Last updated 11/16/2026, 01:12