Key Takeaways
Claude Sonnet 4 wins:
- Cheaper input tokens
- Cheaper output tokens
- Larger context window
- Faster response time
- Higher intelligence benchmark
- Better at coding
- Better at math
- Supports vision
- Has reasoning mode
GPT-4 wins:
- No clear advantages in compared metrics
Price Advantage
Claude Sonnet 4
Benchmark Advantage
Claude Sonnet 4
Context Window
Claude Sonnet 4
Speed
Claude Sonnet 4
Pricing Comparison
Price Comparison
| Metric | Claude Sonnet 4 | GPT-4 | Winner |
|---|---|---|---|
| Input (per 1M tokens) | $3.00 | $30.00 | Claude Sonnet 4 |
| Output (per 1M tokens) | $15.00 | $60.00 | Claude Sonnet 4 |
| Cache Read (per 1M) | $300000.00 | N/A | Claude Sonnet 4 |
| Cache Write (per 1M) | $3750000.00 | N/A | Claude Sonnet 4 |
Using a 3:1 input/output ratio, Claude Sonnet 4 is 84% cheaper overall.
Claude Sonnet 4 Providers
Amazon Bedrock $3.00 (Cheapest)
OpenRouter $3.00 (Cheapest)
Google $3.00 (Cheapest)
Anthropic $3.00 (Cheapest)
GPT-4 Providers
OpenAI $30.00 (Cheapest)
OpenRouter $30.00 (Cheapest)
Azure $30.00 (Cheapest)
Benchmark Comparison
8
Benchmarks Compared
2
Claude Sonnet 4 Wins
1
GPT-4 Wins
Benchmark Scores
| Benchmark | Claude Sonnet 4 | GPT-4 | Winner |
|---|---|---|---|
Intelligence Index Overall intelligence score | 32.7 | 12.8 | |
Coding Index Code generation & understanding | 29.4 | 13.1 | |
Math Index Mathematical reasoning | 38.0 | - | - |
MMLU Pro Academic knowledge | 83.7 | - | - |
GPQA Graduate-level science | 68.3 | - | - |
LiveCodeBench Competitive programming | 44.9 | - | - |
Aider Real-world code editing | 61.3 | 67.7 | |
AIME Competition math | 40.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-4
8,191
tokens
Max output: 4,096 tokens
Claude Sonnet 4 has a 99% larger context window.
Speed Performance
| Metric | Claude Sonnet 4 | GPT-4 | Winner |
|---|---|---|---|
| Tokens/second | 66.3 tok/s | 25.4 tok/s | |
| Time to First Token | 1.90s | 0.81s |
Claude Sonnet 4 responds 162% faster on average.
Capabilities
Feature Comparison
| Feature | Claude Sonnet 4 | GPT-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 | GPT-4 |
|---|---|---|
| License | Proprietary | Proprietary |
| Author | Anthropic | OpenAI |
| Released | May 2025 | May 2023 |
Claude Sonnet 4 Modalities
Input
imagetextfile
Output
text
GPT-4 Modalities
Input
text
Output
text