Skip to main content

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.

7Models
$1.25Live planning baseline
Try xAI

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.

$1.25
Live text baseline
Grok 4.3
$1.314286
Average Input Price
per 1M tokens
$3.00
Most Expensive
Grok 4

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.

xAI Models & Pricing

ModelInput PriceOutput PriceContext WindowMax OutputCategoryCapabilities
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
Grok 4.20
xAI's most advanced multi-agent reasoning model with 2M context
Released: 2/17/2026
$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
Grok 4.1 Fast
Fast and affordable reasoning model with 2M context window
Released: 1/15/2026
$0.20
per 1M tokens
$0.50
per 1M tokens
2,000,000
tokens
131,072
tokens
efficient
textreasoningcode
Grok 4
Most advanced reasoning model from xAI with exceptional problem-solving
Released: 7/9/2025
$3.00
per 1M tokens
$15.00
per 1M tokens
256,000
tokens
131,072
tokens
reasoning
textvisionreasoningcode
Grok 3
Flagship reasoning model from xAI
Released: 2/17/2025
$3.00
per 1M tokens
$15.00
per 1M tokens
131,072
tokens
131,072
tokens
flagship
textvisionreasoningcode
Grok 3 Mini
Fast and affordable reasoning model from xAI
Released: 2/17/2025
$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

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.

About xAI

Elon Musk-founded AI company building Grok models