Claude Sonnet 4 vs Gemini 2.0 Flash
Too close to call on our weighted score (Gemini 2.0 Flash 65, Claude Sonnet 4 63). The right pick depends on what you value most.
Anthropic
Claude Sonnet 4
63/100- ECI141.7
- Price$3.00 / $15.00
- Context200K
Google
Gemini 2.0 Flash
65/100- ECI134.7
- Price—
- Context1.05M
Add a model
Make it a three-way comparison.
Too close to call
It is close. Our weighted score puts them within 2 points (Gemini 2.0 Flash 65/100, Claude Sonnet 4 63/100), so choose by what matters most for your work: Claude Sonnet 4 for raw capability and Gemini 2.0 Flash for long inputs. The score weighs capability 67%, inputs & features 20%, context window 13%.
- CapabilityClaude Sonnet 4Capabilities Index (ECI): Claude Sonnet 4 141.7 · Gemini 2.0 Flash 134.7
- Lowest priceClaude Sonnet 4Claude Sonnet 4 $6.00 per 1M tokens (3:1 blend) · Gemini 2.0 Flash unpriced
- Longest contextGemini 2.0 FlashGemini 2.0 Flash 1,048,576 · Claude Sonnet 4 200,000 tokens
- Widest inputsGemini 2.0 FlashClaude Sonnet 4: Text, Images, PDFs · Gemini 2.0 Flash: Text, Images, PDFs, Audio, Video
- Self-hostingNo open weightsBoth are available only through APIs
| Measure | Weight | Claude Sonnet 4 | Gemini 2.0 Flash |
|---|---|---|---|
| CapabilityCapabilities Index (ECI) | 67% | 68 | 59 |
| Inputs & features | 20% | 70 | 90 |
| Context window | 13% | 32 | 61 |
| Overall | 100% | 63/100 | 65/100 |
Left out because at least one model lacks the data: price. The remaining weights were rescaled.
Every spec in one table
Highlighted cells lead their row. Dashes mean the data is not published.
| Specification | ||
|---|---|---|
| Capability | ||
| Capabilities Index (ECI) | 141.7 (best) | 134.7 |
| ECI rank | #94 of 148 (best) | #116 of 148 |
| GPQA DiamondGraduate-level science questions | 79.2% | — |
| OTIS Mock AIME 2024–2025Competition mathematics | 71.1% | — |
| Price per million tokens | ||
| Input | $3.00 | — |
| Output | $15.00 | — |
| Cached input | — | — |
| Blended (3:1) | $6.00 | — |
| Long-context rate | Same rate | — |
| Price source | Median of 9 providers | — |
| Limits | ||
| Context window | 200,000 tokens | 1,048,576 tokens (best) |
| Max output | 64,000 tokens (best) | 8,192 tokens |
| Inputs and features | ||
| Text | Yes | Yes |
| Images | Yes | Yes |
| PDFs | Yes | Yes |
| Audio | No | Yes |
| Video | No | Yes |
| Reasoning | Yes | No |
| Tool calling | Yes | Yes |
| Structured output | No | Yes |
| Availability | ||
| Weights | Proprietary | Proprietary |
| API model ID | — | — |
| API providers | 9 | — |
| Released | May 22, 2025 | Dec 11, 2024 |
| Knowledge cutoff | Mar 31, 2025 | Jun 2024 |
What would a month cost?
Enter your expected volume in millions of tokens. List prices only; caching and batch discounts would lower these.
Claude Sonnet 4$60.00
Gemini 2.0 Flash—
Which should you choose?
Which is better: Claude Sonnet 4 or Gemini 2.0 Flash?
It is close. Our weighted score puts them within 2 points (Gemini 2.0 Flash 65/100, Claude Sonnet 4 63/100), so choose by what matters most for your work: Claude Sonnet 4 for raw capability and Gemini 2.0 Flash for long inputs. The score weighs capability 67%, inputs & features 20%, context window 13%.
Which is cheaper, Claude Sonnet 4 or Gemini 2.0 Flash?
Claude Sonnet 4 is cheaper at $3.00 input / $15.00 output per million tokens (median across 9 API providers). . At a typical mix of three input tokens to one output token, that is $6.00 per million tokens for Claude Sonnet 4 versus . Gemini 2.0 Flash has no published per-token price.
Which scores higher on benchmarks?
Claude Sonnet 4 scores higher on the Capabilities Index (ECI): Claude Sonnet 4 141.7 (#94 of 148) and Gemini 2.0 Flash 134.7 (#116 of 148). Their confidence ranges do not overlap (139.2–142.9 vs 124.3–136.7), so the gap is a real one.
Which is better for coding?
There are no published SWE-bench Verified results for Claude Sonnet 4 and Gemini 2.0 Flash yet, so there is no like-for-like coding score. On overall capability, Claude Sonnet 4 leads, which tends to carry over to coding, but test on your own codebase. Both support tool calling for agent workflows.
Which has the bigger context window?
Gemini 2.0 Flash has the largest context window at 1,048,576 tokens, against 200,000 for Claude Sonnet 4. Maximum output per response: Claude Sonnet 4 up to 64,000, Gemini 2.0 Flash up to 8,192 tokens.
Which can read images, PDFs, audio or video?
Claude Sonnet 4 accepts text, images and PDFs; Gemini 2.0 Flash accepts text, images, PDFs, audio and video. Gemini 2.0 Flash handles the widest range of inputs.
Are any of these open source?
No. Claude Sonnet 4 and Gemini 2.0 Flash are proprietary and only available through APIs and apps.
Which is newer?
Claude Sonnet 4 is the newest, released May 22, 2025. Gemini 2.0 Flash came out Dec 11, 2024. Knowledge cutoff: Claude Sonnet 4 Mar 31, 2025, Gemini 2.0 Flash Jun 2024.
How do you decide the winner?
Each model gets a 0–100 score on capability (50%, independent benchmark results); price (25%, blended price per million tokens (3 input : 1 output), log scale); inputs & features (15%, image, PDF, audio and video input, tool calling, structured output and reasoning); context window (10%, maximum tokens per request, log scale). Dimensions missing for any model are dropped and the remaining weights rescaled, so every model is judged on the same evidence. Specs and prices come from public model listings and the labs’ own API pages; capability scores come from independent benchmark runs. Data updated Oct 4, 2026.