Key Takeaways
Claude Sonnet 4 wins:
- Larger context window
- Faster response time
- Higher intelligence benchmark
- Better at coding
- Better at math
- Has reasoning mode
GPT-4o-mini wins:
- Cheaper input tokens
- Cheaper output tokens
Price Advantage
GPT-4o-mini
Benchmark Advantage
Claude Sonnet 4
Context Window
Claude Sonnet 4
Speed
Claude Sonnet 4
Pricing Comparison
Price Comparison
| Metric | Claude Sonnet 4 | GPT-4o-mini | Winner |
|---|---|---|---|
| Input (per 1M tokens) | $3.00 | $0.15 | GPT-4o-mini |
| Output (per 1M tokens) | $15.00 | $0.60 | GPT-4o-mini |
| Cache Read (per 1M) | $300000.00 | $75000.00 | GPT-4o-mini |
| Cache Write (per 1M) | $3750000.00 | N/A | Claude Sonnet 4 |
Using a 3:1 input/output ratio, GPT-4o-mini is 96% cheaper overall.
Claude Sonnet 4 Providers
Amazon Bedrock $3.00 (Cheapest)
OpenRouter $3.00 (Cheapest)
Google $3.00 (Cheapest)
Anthropic $3.00 (Cheapest)
GPT-4o-mini Providers
OpenAI $0.15 (Cheapest)
Vercel $0.15 (Cheapest)
OpenRouter $0.15 (Cheapest)
Azure $0.15 (Cheapest)
Benchmark Comparison
8
Benchmarks Compared
7
Claude Sonnet 4 Wins
0
GPT-4o-mini Wins
Benchmark Scores
| Benchmark | Claude Sonnet 4 | GPT-4o-mini | Winner |
|---|---|---|---|
Intelligence Index Overall intelligence score | 32.7 | 12.6 | |
Coding Index Code generation & understanding | 29.4 | - | - |
Math Index Mathematical reasoning | 38.0 | 14.7 | |
MMLU Pro Academic knowledge | 83.7 | 64.8 | |
GPQA Graduate-level science | 68.3 | 42.6 | |
LiveCodeBench Competitive programming | 44.9 | 23.4 | |
Aider Real-world code editing | 61.3 | 55.6 | |
AIME Competition math | 40.7 | 11.7 |
Claude Sonnet 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
GPT-4o-mini
128,000
tokens
Max output: 16,384 tokens
Claude Sonnet 4 has a 87% larger context window.
Speed Performance
| Metric | Claude Sonnet 4 | GPT-4o-mini | Winner |
|---|---|---|---|
| Tokens/second | 66.3 tok/s | 51.1 tok/s | |
| Time to First Token | 1.90s | 0.51s |
Claude Sonnet 4 responds 30% faster on average.
Capabilities
Feature Comparison
| Feature | Claude Sonnet 4 | GPT-4o-mini |
|---|---|---|
| Vision (Image Input) | ||
| Tool/Function Calls | ||
| Reasoning Mode | ||
| Audio Input | ||
| Audio Output | ||
| PDF Input | ||
| Prompt Caching | ||
| Web Search |
License & Release
| Property | Claude Sonnet 4 | GPT-4o-mini |
|---|---|---|
| License | Proprietary | Proprietary |
| Author | Anthropic | OpenAI |
| Released | May 2025 | Jul 2024 |
Claude Sonnet 4 Modalities
Input
imagetextfile
Output
text
GPT-4o-mini Modalities
Input
textimagefile
Output
text