xAI API Pricing 2026
Creator of Grok models, known for real-time knowledge and reasoning capabilities.
xAI API Pricing Quick Summary (January 2026)
Cheapest Model
$0.2/1M in
grok-4.1-fast
Premium Model
$3/1M in
grok-3
Total Models
7
Available
Quick Answer: xAI pricing starts at $0.2/1M input tokens with grok-4.1-fast. Output tokens cost $0.5/1M. For advanced capabilities, grok-3 costs $3/$15 per 1M tokens.
Text / LLM Models
(6)| Model | Input / 1M | Output / 1M | Context | Tier | Notes |
|---|---|---|---|---|---|
| grok-4 | $3.00 | $15.00 | 256K | frontier | - |
| grok-4.1-fast | $0.200 | $0.500 | 256K | budget | - |
| grok-4-fast | $0.200 | $0.500 | 256K | budget | - |
| grok-3 | $3.00 | $15.00 | 128K | high | - |
| grok-3-mini | $0.300 | $0.500 | 128K | budget | - |
| grok-2-vision | $2.00 | $10.00 | 32K | mid | Vision |
Image Generation Models
(1)| Model | Resolution | Price / Image | Notes |
|---|---|---|---|
| grok-2-image | Standard | $0.070 | Aurora |
Compare xAI Models
Frequently Asked Questions
How much does xAI API cost?
xAI API pricing starts at $0.2/1M input tokens with grok-4.1-fast. The most capable model, grok-3, costs $3/1M input tokens. All prices are per million tokens as of January 2026.
What is the cheapest xAI model?
The cheapest xAI model is grok-4.1-fast at $0.2/1M input tokens and $0.5/1M output tokens. It's ideal for high-volume, simple tasks.
How does xAI pricing compare to competitors?
xAI pricing varies by model capability. Budget models start around $0.2/1M tokens, while frontier models cost $3/1M tokens. Compare with OpenAI, Anthropic, and Google on our AI Pricing page.