xAI Grok API Pricing
Compare live xAI Grok API pricing with current text planning centered on Grok 4.3 and Grok 4.20 at $1.25/1M input and $2.50/1M output. Grok 4.1 Fast and Grok Code Fast 1 remain on this page for historical comparison, but May 2026 xAI docs treat the 4.3/4.20 band as the real budgeting baseline.
xAI pricing reset
The table below keeps older Grok slugs for historical comparison, but live May 2026 planning should start with the refreshed Grok pricing guide and the current 4.20 vs 4.3 breakdown.
xAI Recommendation
Budget xAI with Grok 4.3 or Grok 4.20 at $1.25/1M input and $2.50/1M output. Treat Grok 4.1 Fast and Grok Code Fast 1 as legacy references, then use Grok 4.3 for general chat/coding and Grok 4.20 when the 2M context window or heavier agent-style workflows matter.
Compare xAI vs other providers
xAI Models & Pricing
| Model | Input Price | Output Price | Context Window | Max Output | Category | Capabilities |
|---|---|---|---|---|---|---|
Grok 4.3 xAI reasoning model with 1M context, vision input, and low baseline token pricing. Released: 4/30/2026 | $1.25 per 1M tokens | $2.50 per 1M tokens | 1,000,000 tokens | 131,072 tokens | reasoning | textvisionreasoning |
$1.25 per 1M tokens | $2.50 per 1M tokens | 2,000,000 tokens | 131,072 tokens | reasoning | textvisionreasoningcode | |
Grok Code Fast 1 xAI's specialized fast coding model with reasoning, optimized for code generation and debugging Released: 2/1/2026 | $0.20 per 1M tokens | $1.50 per 1M tokens | 256,000 tokens | 32,768 tokens | standard | textcodereasoning |
$0.20 per 1M tokens | $0.50 per 1M tokens | 2,000,000 tokens | 131,072 tokens | efficient | textreasoningcode | |
$3.00 per 1M tokens | $15.00 per 1M tokens | 256,000 tokens | 131,072 tokens | reasoning | textvisionreasoningcode | |
$3.00 per 1M tokens | $15.00 per 1M tokens | 131,072 tokens | 131,072 tokens | flagship | textvisionreasoningcode | |
$0.30 per 1M tokens | $0.50 per 1M tokens | 128,000 tokens | 131,072 tokens | efficient | textreasoningcode |
Calculate xAI Costs
Use our calculator to estimate costs for any xAI model based on your usage patterns.
Compare xAI Models
Grok 4.3 vs Grok 4.20
Grok 4.20 vs Grok 4
Grok Code Fast 1 vs Grok 4.1 Fast
Grok 4.1 Fast vs Grok 3 Mini
Grok 4 vs Grok 3
Grok 3 vs Grok 3 Mini
xAI Pricing FAQ
How much does the xAI Grok API cost now?
For current planning, xAI's live Grok text pricing centers on Grok 4.3 and Grok 4.20 at $1.25 per million input tokens and $2.50 per million output tokens. Grok 4.1 Fast and Grok Code Fast 1 still appear on this page as legacy references, but they should not be your budgeting baseline.
What happened to Grok 4.1 Fast and Grok Code Fast 1?
They are best treated as retired or legacy Grok text slugs. Older xAI docs made Grok 4.1 Fast look like the cheap default at $0.20/1M input, but current May 2026 planning should use Grok 4.3 and Grok 4.20 instead. Keep the old rows for historical comparisons, not forward budget forecasts.
Which Grok model should I actually use?
Start with Grok 4.3 when you want the current default xAI text model. Use Grok 4.20 when the 2,000,000-token context window or more agentic reasoning flow matters. Only use Grok 4.1 Fast or Grok Code Fast 1 as historical reference points when you are auditing older xAI content or legacy integrations.
What Grok models are shown on this page?
This page compares 7 Grok entries including live planning baselines like Grok 4.3 and Grok 4.20 plus older rows such as Grok 4.1 Fast and Grok Code Fast 1. The full table is useful for historical comparisons, but the live May 2026 planning baseline is the $1.25/$2.50 text band.
How does xAI Grok pricing compare to OpenAI and Anthropic?
At the live $1.25/$2.50 pricing band, xAI is no longer a dirt-cheap mini-tier option. It sits above the cheapest OpenAI, Google, and Mistral budget routes, but below Anthropic's top-end flagship pricing, which makes xAI more of a context-and-behavior choice than a pure bargain pick.
Related Articles
2 Million Token Context Windows: o4-mini vs Grok 4.20 vs Gemini 3 Pro Cost Comparison
Three AI models now offer 2 million token context windows, but costs vary by 15x. We compare o4-mini, Grok 4.20, and...
3/28/2026
xAI Grok Pricing Guide 2026: Live API Prices, Voice Costs, Rate Limits & Retired Models
Updated May 2026: live xAI Grok 4.3 and 4.20 pricing, voice API costs, what changed after retired Grok 4.1 Fast, and...
2/27/2026
Grok 4 vs GPT-5: xAI's Challenger Priced Against OpenAI
A detailed cost comparison between xAI's Grok 4 and OpenAI's GPT-5, covering per-token pricing, context windows, and...
2/21/2026