← Back to all comparisons
Side-by-side
Grok 4 vs Claude Haiku 4.5
xAI vs Anthropic — head-to-head specs and pricing.
xAI
Grok 4
xAI's flagship model with real-time X data.
Grok 4 from xAI — strong reasoning with real-time context from X (formerly Twitter).
Anthropic
Claude Haiku 4.5
Fast and cheap from Anthropic.
Haiku is Anthropic's small model — optimized for throughput and cost.
| Spec | Grok 4 | Claude Haiku 4.5 |
|---|---|---|
| Provider | xAI | Anthropic |
| Input cost / 1M tokens | $3.60 | $0.96 |
| Output cost / 1M tokens | $18.00 | $4.80 |
| Context window | 256,000 tokens | 200,000 tokens |
| Max output tokens | — | 8,000 |
| Streaming support | ✓ | ✓ |
| Tool calling | ✓ | ✓ |
| Vision input | — | — |
| JSON mode | — | — |
| Status | ACTIVE | ACTIVE |
Use both via OneAPIKey — one key, one bill
OneAPIKey aggregates xAI, Anthropic, and 10 more providers behind a single API. Smart Routing automatically picks the best model per request — or you choose explicitly.
More comparisons: