Updated March 25, 2026· Based on independent benchmark data
Anthropic: Claude Sonnet 4 leads in intelligence with a score of 51.7 vs 48.5. For speed, xAI: Grok 4 wins at 124 tok/s vs 65 tok/s.
| Metric | Anthropic: Claude Sonnet 4 | xAI: Grok 4 |
|---|---|---|
| Intelligence Score | 51.7 | 48.5 |
| Coding Score | 50.9 | 42.2 |
| Math Score | N/A | N/A |
| Speed (tok/s) | 65 tok/s | 124 tok/s |
| Latency (TTFT) | 38.68s | 15.96s |
| Input Price / 1M tokens | $3.00 | $3.00 |
| Output Price / 1M tokens | $15 | $15 |
| Context Window | 200K |
Anthropic: Claude Sonnet 4 outperforms xAI: Grok 4 on the Artificial Analysis intelligence index with a score of 51.7 compared to 48.5. For coding tasks, Anthropic: Claude Sonnet 4 has the edge with a coding score of 50.9 vs 42.2.
xAI: Grok 4 generates output significantly faster at 124 tok/s compared to Anthropic: Claude Sonnet 4's 65 tok/s, making it 1.9x faster for streaming responses. Time to first token is 15.96s for xAI: Grok 4 vs 38.68s for Anthropic: Claude Sonnet 4, which affects perceived responsiveness in interactive applications.
xAI: Grok 4 is more affordable at $3.00/1M input tokens ($15/1M output), while Anthropic: Claude Sonnet 4 costs $3.00/1M input ($15/1M output). For a typical workload of 100 requests per day at 2,000 tokens each, Anthropic: Claude Sonnet 4 would cost approximately $18.00/month vs $18.00/month for xAI: Grok 4 in input costs alone.
xAI: Grok 4 offers a larger context window at 256K tokens compared to Anthropic: Claude Sonnet 4's 200K.
Choose Anthropic: Claude Sonnet 4 when you need higher intelligence (51.7), stronger coding performance (50.9). Choose xAI: Grok 4 when you need faster output (124 tok/s).
Anthropic: Claude Sonnet 4 scores higher on coding benchmarks (50.9 vs 42.2), making it the better choice for programming tasks.
xAI: Grok 4 is cheaper at $3.00/1M input tokens vs $3.00/1M for Anthropic: Claude Sonnet 4.
xAI: Grok 4 is faster, producing output at 124 tok/s compared to Anthropic: Claude Sonnet 4's 65 tok/s.
Yes, Anthropic: Claude Sonnet 4 supports image input. xAI: Grok 4 also supports images.
Benchmark data by Artificial Analysis
Data last synced: March 25, 2026
| 256K |
| Max Output Tokens | 64K | N/A |
| Input Modalities | Image + Text + File | Image + Text |
| Output Modalities | Text | Text |
| Free Tier | No | No |
xAI: Grok 4 has a larger context window at 256K compared to Anthropic: Claude Sonnet 4's 200K.
It depends on your priorities. Anthropic: Claude Sonnet 4 scores higher on intelligence (51.7), but xAI: Grok 4 may be better for specific use cases like budget-conscious projects or speed-critical applications.