xAI API pricing
10 models tracked · headquartered in US · official pricing
Free tier: No free tier What xAI gives you free, in its own words
| Model | Input | Output | Context | |
|---|---|---|---|---|
| Grok Build 0.1 | $1 | $2 | 256K | reasoning vision |
| Grok 3 legacy | $1.25 | $2.5 | 131K | reasoning vision |
| Grok 4 legacy | $1.25 | $2.5 | 256K | reasoning vision |
| Grok 4.1 Fast legacy | $1.25 | $2.5 | 2M | reasoning vision |
| Grok 4.20 | $1.25 | $2.5 | 1M | reasoning vision |
| Grok 4.3 | $1.25 | $2.5 | 1M | reasoning vision |
| Grok 4.5 | $2 | $6 | 500K | reasoning vision |
| Grok 4.6 | $2 | $6 | 500K | reasoning vision |
| Grok 4.7 | $2 | $6 | 500K | reasoning vision |
| Grok 2 retired | $2 | $10 | 131K | reasoning vision |
Compare xAI’s models on your own workload
How xAI prices its models
Output prices across xAI's 6 current models run from $2 per 1M tokens (Grok Build 0.1) to $6 (Grok 4.7), a 3x spread. Picking the smallest model that does the job is usually the biggest saving available.
Discounts: caching and batch
6 of 6 current models list a cached-input rate, from 80% off the fresh input rate on Grok Build 0.1. 0 list a batch discount for work that can wait.
Recorded price changes
- 2026-08-30: Grok 3 input $3 to $1.25
- 2026-08-30: Grok 3 output $15 to $2.5
- 2026-08-30: Grok 4 input $3 to $1.25
- 2026-08-30: Grok 4 output $15 to $2.5
- 2026-08-30: Grok 4.1 Fast input $0.2 to $1.25
- 2026-08-30: Grok 4.1 Fast output $0.5 to $2.5
Where these prices come from
Every rate above is read from xAI's own pricing page (linked here) and re-checked every morning. A disputed figure is marked rather than hidden; see how PromptSpend checks prices.
Common questions
How much do xAI API models cost?
PromptSpend tracks 10 xAI models. The cheapest on a blended rate is Grok Build 0.1, at $1 per 1M input tokens and $2 per 1M output tokens; the most expensive is Grok 2, at $2 in and $10 out.
Does xAI have a free API tier?
PromptSpend's verdict is "No free tier". Its free-tier page gives xAI's own wording for each claim, with a link to the page it came from and the date it was read.
Where do the xAI prices come from?
From xAI's own pricing page, https://docs.x.ai/developers/pricing, with each model's check date shown on its page. Prices change without notice, and regional premiums, priority tiers and negotiated discounts are not included.