Skip to main content

xAI AI Models

Elon Musk-founded AI company building Grok models

6Models
$0.20Starting from
Try xAI
$0.20
Cheapest Input Price
Grok 4.1 Fast
$1.45
Average Input Price
per 1M tokens
$3.00
Most Expensive
Grok 4

xAI Models & Pricing

ModelInput PriceOutput PriceContext WindowMax OutputCategoryCapabilities
Grok 4.20
xAI's most advanced multi-agent reasoning model with 2M context
Released: 2/17/2026
$2.00
per 1M tokens
$6.00
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 xAI API cost?

xAI offers 6 models with input pricing ranging from $0.20 to $3.00 per million tokens. The most affordable option is Grok 4.1 Fast at $0.20/1M input and $0.50/1M output tokens.

What is the cheapest xAI model?

Grok 4.1 Fast is the cheapest xAI model at $0.20 per million input tokens and $0.50 per million output tokens. It supports a 2,000,000-token context window.

Which xAI model should I use?

It depends on your use case. Grok 4.1 Fast is best for cost-sensitive applications. Grok 4 ($3.00/1M input) offers the strongest capabilities. For complex reasoning tasks, consider xAI's reasoning models. For high-volume workloads, their efficient-tier models offer the best cost-performance ratio.

What models does xAI offer?

xAI currently offers 6 models: Grok 4.20, Grok 4, Grok 4.1 Fast, Grok Code Fast 1, Grok 3, Grok 3 Mini. These span reasoning, efficient, standard, flagship categories with context windows up to 2000K tokens.

How does xAI pricing compare to competitors?

xAI's pricing starts at $0.20/1M input tokens with Grok 4.1 Fast. Use our comparison tool to see side-by-side pricing against other providers like OpenAI, Anthropic, and Google.

About xAI

Elon Musk-founded AI company building Grok models