Key Takeaways
Claude Sonnet 4 wins:
- Larger context window
- Faster response time
- Has reasoning mode
Grok 4 wins:
- Higher intelligence benchmark
- Better at coding
- Better at math
Price Advantage
Claude Sonnet 4
Benchmark Advantage
Grok 4
Context Window
Claude Sonnet 4
Speed
Claude Sonnet 4
Pricing Comparison
Price Comparison
| Metric | Claude Sonnet 4 | Grok 4 | Winner |
|---|---|---|---|
| Input (per 1M tokens) | $3.00 | $3.00 | Tie |
| Output (per 1M tokens) | $15.00 | $15.00 | Tie |
| Cache Read (per 1M) | $300000.00 | $750000.00 | Claude Sonnet 4 |
| Cache Write (per 1M) | $3750000.00 | N/A | Claude Sonnet 4 |
Both models have similar overall pricing.
Claude Sonnet 4 Providers
Amazon Bedrock $3.00 (Cheapest)
Google $3.00 (Cheapest)
Anthropic $3.00 (Cheapest)
Grok 4 Providers
Vercel $3.00 (Cheapest)
xAI $3.00 (Cheapest)
Benchmark Comparison
8
Benchmarks Compared
0
Claude Sonnet 4 Wins
8
Grok 4 Wins
Benchmark Scores
| Benchmark | Claude Sonnet 4 | Grok 4 | Winner |
|---|---|---|---|
Intelligence Index Overall intelligence score | 33.0 | 41.4 | |
Coding Index Code generation & understanding | 30.6 | 40.5 | |
Math Index Mathematical reasoning | 38.0 | 92.7 | |
MMLU Pro Academic knowledge | 83.7 | 86.6 | |
GPQA Graduate-level science | 68.3 | 87.7 | |
LiveCodeBench Competitive programming | 44.9 | 81.9 | |
Aider Real-world code editing | 61.3 | 79.6 | |
AIME Competition math | 40.7 | 94.3 |
Grok 4 significantly outperforms in coding benchmarks.
Cost vs Quality
X-axis:
Y-axis:
Loading chart...
Claude Sonnet 4
Other models
Context & Performance
Context Window
Claude Sonnet 4
1,000,000
tokens
Max output: 64,000 tokens
Grok 4
256,000
tokens
Claude Sonnet 4 has a 74% larger context window.
Speed Performance
| Metric | Claude Sonnet 4 | Grok 4 | Winner |
|---|---|---|---|
| Tokens/second | 70.3 tok/s | 38.3 tok/s | |
| Time to First Token | 1.14s | 15.55s |
Claude Sonnet 4 responds 83% faster on average.
Capabilities
Feature Comparison
| Feature | Claude Sonnet 4 | Grok 4 |
|---|---|---|
| Vision (Image Input) | ||
| Tool/Function Calls | ||
| Reasoning Mode | ||
| Audio Input | ||
| Audio Output | ||
| PDF Input | ||
| Prompt Caching | ||
| Web Search |
License & Release
| Property | Claude Sonnet 4 | Grok 4 |
|---|---|---|
| License | Proprietary | Proprietary |
| Author | Anthropic | Xai |
| Released | May 2025 | Jul 2025 |
Claude Sonnet 4 Modalities
Input
imagetextfile
Output
text
Grok 4 Modalities
Input
imagetext
Output
text
