Key Takeaways
Claude Sonnet 4 wins:
- Larger context window
- Has reasoning mode
GPT-5 wins:
- Cheaper input tokens
- Cheaper output tokens
- Faster response time
- Higher intelligence benchmark
- Better at coding
- Better at math
Price Advantage
GPT-5
Benchmark Advantage
GPT-5
Context Window
Claude Sonnet 4
Speed
GPT-5
Pricing Comparison
Price Comparison
| Metric | Claude Sonnet 4 | GPT-5 | Winner |
|---|---|---|---|
| Input (per 1M tokens) | $3.00 | $1.25 | GPT-5 |
| Output (per 1M tokens) | $15.00 | $10.00 | GPT-5 |
| Cache Read (per 1M) | $300000.00 | $125000.00 | GPT-5 |
| Cache Write (per 1M) | $3750000.00 | N/A | Claude Sonnet 4 |
Using a 3:1 input/output ratio, GPT-5 is 43% cheaper overall.
Claude Sonnet 4 Providers
Amazon Bedrock $3.00 (Cheapest)
OpenRouter $3.00 (Cheapest)
Google $3.00 (Cheapest)
Anthropic $3.00 (Cheapest)
GPT-5 Providers
OpenAI $1.25 (Cheapest)
OpenRouter $1.25 (Cheapest)
Azure $1.25 (Cheapest)
Benchmark Comparison
8
Benchmarks Compared
0
Claude Sonnet 4 Wins
8
GPT-5 Wins
Benchmark Scores
| Benchmark | Claude Sonnet 4 | GPT-5 | Winner |
|---|---|---|---|
Intelligence Index Overall intelligence score | 32.7 | 44.1 | |
Coding Index Code generation & understanding | 29.4 | 34.6 | |
Math Index Mathematical reasoning | 38.0 | 94.3 | |
MMLU Pro Academic knowledge | 83.7 | 87.1 | |
GPQA Graduate-level science | 68.3 | 85.4 | |
LiveCodeBench Competitive programming | 44.9 | 84.6 | |
Aider Real-world code editing | 61.3 | 88.0 | |
AIME Competition math | 40.7 | 95.7 |
GPT-5 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-5
400,000
tokens
Max output: 128,000 tokens
Claude Sonnet 4 has a 60% larger context window.
Speed Performance
| Metric | Claude Sonnet 4 | GPT-5 | Winner |
|---|---|---|---|
| Tokens/second | 66.3 tok/s | 115.8 tok/s | |
| Time to First Token | 1.90s | 100.46s |
GPT-5 responds 75% faster on average.
Capabilities
Feature Comparison
| Feature | Claude Sonnet 4 | GPT-5 |
|---|---|---|
| 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-5 |
|---|---|---|
| License | Proprietary | Proprietary |
| Author | Anthropic | OpenAI |
| Released | May 2025 | Aug 2025 |
Claude Sonnet 4 Modalities
Input
imagetextfile
Output
text
GPT-5 Modalities
Input
textimagefile
Output
text