xAI AI Models
Elon Musk-founded AI company building Grok models
xAI Models & Pricing
| Model | Input Price | Output Price | Context Window | Max Output | Category | Capabilities |
|---|---|---|---|---|---|---|
$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 |
$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.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 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.
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: Every Model, Cost & How to Save
Grok 4.1 Fast costs $0.20/$0.50 per million tokens — cheaper than GPT-4o mini. Full xAI Grok pricing: Grok 4 vs Grok...
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