Anthropic vs xAI (Grok) Pricing
Per-million-token pricing for Anthropic and xAI (Grok), with side-by-side flagship models, cheapest tiers, and context windows. Pricing data syncs weekly from a continuously-updated model catalog — last updated May 22, 2026.
As of May 22, 2026, xAI (Grok) offers the lowest output-token price at $0.50/1M (Grok 3 Mini — $0.50/1M output).
Who wins on what
Cheapest input tokens
$0.20/1MxAI (Grok)
Grok 4 Fast — $0.20/1M input
Cheapest output tokens
$0.50/1MxAI (Grok)
Grok 3 Mini — $0.50/1M output
Longest context window
2.0MxAI (Grok)
Grok 4 Fast — 2.0M input tokens
Lowest average output cost
$6.76/1MxAI (Grok)
Provider-wide average across 43 models
Largest model catalog
43 modelsxAI (Grok)
More options to match cost vs capability
Cheapest cached input
$0.03/1MAnthropic
Claude Haiku 3 — $0.03/1M cached read
Most reasoning models
4 modelsxAI (Grok)
Models with dedicated reasoning / thinking support
Most vision models
7 modelsAnthropic
Models that accept image input
Side-by-side
Anthropic
Cheapest input
$0.250
Claude 3 Haiku
Cheapest output
$1.25
Claude 3 Haiku
Longest context
1.0M
Claude 4 Sonnet (2025-05-14)
Avg output / 1M
$24.88
Across catalog
Cheapest cached input
$0.030
Claude Haiku 3
| Model | In/1M | Out/1M | Ctx |
|---|---|---|---|
| Claude Opus 4.7 | $5.00 | $25.00 | 200K |
| Claude Opus 4.6 | $5.00 | $25.00 | 200K |
| Claude Opus 4.5 | $5.00 | $25.00 | 200K |
| Claude Haiku 4.5 | $1.00 | $5.00 | 200K |
| Claude Sonnet 4.5 | $3.00 | $15.00 | 1.0M |
| Claude 3 Haiku | $0.250 | $1.25 | 200K |
xAI (Grok)
Cheapest input
$0.200
Grok 4 Fast
Cheapest output
$0.500
Grok 3 Mini
Longest context
2.0M
Grok 4 Fast
Avg output / 1M
$6.76
Across catalog
Cheapest cached input
$0.200
Grok 4.20 (Non-Reasoning)
| Model | In/1M | Out/1M | Ctx |
|---|---|---|---|
| Grok 4.3 VisionReasoningToolsCache | $1.25 | $2.50 | 1.0M |
| Grok Build 0.1 VisionReasoningToolsCache | $1.00 | $2.00 | 256K |
| Grok 4.20 (Non-Reasoning) VisionToolsCache | $1.25 | $2.50 | 2.0M |
| Grok 4.20 (Reasoning) VisionReasoningToolsCache | $1.25 | $2.50 | 2.0M |
| Grok 4.20 Multi-Agent VisionReasoningCache | $1.25 | $2.50 | 2.0M |
| Grok 3 Mini | $0.300 | $0.500 | 131K |
All prices in USD per 1 million tokens. Showing top 6 models per provider, sorted by output cost.
Related comparisons
Run the numbers for your workload
Calcaas multiplies per-token costs by your real usage patterns — inputs, outputs, retries, and conversation history — across both providers in one model.