Key Takeaways
Claude Sonnet 4 wins:
- Higher intelligence benchmark
- Better at coding
Gemini 2.5 Flash wins:
- Cheaper input tokens
- Cheaper output tokens
- Larger context window
- Faster response time
- Better at math
Price Advantage
Gemini 2.5 Flash
Benchmark Advantage
Claude Sonnet 4
Context Window
Gemini 2.5 Flash
Speed
Gemini 2.5 Flash
Pricing Comparison
Price Comparison
| Metric | Claude Sonnet 4 | Gemini 2.5 Flash | Winner |
|---|---|---|---|
| Input (per 1M tokens) | $3.00 | $0.30 | Gemini 2.5 Flash |
| Output (per 1M tokens) | $15.00 | $2.50 | Gemini 2.5 Flash |
| Cache Read (per 1M) | $0.30 | $0.03 | Gemini 2.5 Flash |
| Cache Write (per 1M) | $3.75 | $0.08 | Gemini 2.5 Flash |
Using a 3:1 input/output ratio, Gemini 2.5 Flash is 86% cheaper overall.
Claude Sonnet 4 Providers
Amazon Bedrock $3.00 (Cheapest)
Google $3.00 (Cheapest)
Anthropic $3.00 (Cheapest)
Gemini 2.5 Flash Providers
Vercel $0.30 (Cheapest)
Google AI Studio $0.30 (Cheapest)
Google $0.30 (Cheapest)
Benchmark Comparison
8
Benchmarks Compared
4
Claude Sonnet 4 Wins
3
Gemini 2.5 Flash Wins
Benchmark Scores
| Benchmark | Claude Sonnet 4 | Gemini 2.5 Flash | Winner |
|---|---|---|---|
Intelligence Index Overall intelligence score | 33.0 | 21.1 | |
Coding Index Code generation & understanding | 30.6 | 17.8 | |
Math Index Mathematical reasoning | 38.0 | 60.3 | |
MMLU Pro Academic knowledge | 83.7 | 80.9 | |
GPQA Graduate-level science | 68.3 | 68.3 | - |
LiveCodeBench Competitive programming | 44.9 | 49.5 | |
Aider Real-world code editing | 61.3 | 55.1 | |
AIME Competition math | 40.7 | 50.0 |
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
Gemini 2.5 Flash
1,048,576
tokens
Max output: 65,535 tokens
Gemini 2.5 Flash has a 5% larger context window.
Speed Performance
| Metric | Claude Sonnet 4 | Gemini 2.5 Flash | Winner |
|---|---|---|---|
| Tokens/second | 69.8 tok/s | 246.2 tok/s | |
| Time to First Token | 1.17s | 0.47s |
Gemini 2.5 Flash responds 253% faster on average.
Capabilities
Feature Comparison
| Feature | Claude Sonnet 4 | Gemini 2.5 Flash |
|---|---|---|
| Vision (Image Input) | ||
| Tool/Function Calls | ||
| Reasoning Mode | ||
| Audio Input | ||
| Audio Output | ||
| PDF Input | ||
| Prompt Caching | ||
| Web Search |
License & Release
| Property | Claude Sonnet 4 | Gemini 2.5 Flash |
|---|---|---|
| License | Proprietary | Proprietary |
| Author | Anthropic | |
| Released | May 2025 | Jun 2025 |
Claude Sonnet 4 Modalities
Input
imagetextfile
Output
text
Gemini 2.5 Flash Modalities
Input
fileimagetextaudiovideo
Output
text
