ModelsCompareBest forBenchmarksStatusPricingAPI
Compare / head-to-head

Claude Sonnet 4vsGemini 2.5 Flash

Claude Sonnet 4 and Gemini 2.5 Flash split their 2 shared benchmarks evenly. Gemini 2.5 Flash is 6.4x cheaper per token. Gemini 2.5 Flash has the larger context window (1.0M tokens).

Benchmarks from cited public sources; pricing from official pages; status from official provider feeds.

Shared benchmarks
1 – 1
even split
Cheaper per token
Gemini 2.5 Flash
6.4x cheaper, input + output
Larger context
Gemini 2.5 Flash
1.0M tokens
Provider uptime (30d)
100% · 100%
Anthropic · Google
Claude Sonnet 4
Anthropic · released 2025-05-22
textvision
Context
200K
Max out
64K
Input /1M
$3
Output /1M
$15
Cached /1M
$0.3
Scores
4 · 4 core
Gemini 2.5 Flash
Google · released 2025-06-17
textvisionaudio
Context
1.0M
Max out
66K
Input /1M
$0.3
Output /1M
$2.5
Cached /1M
$0.03
Scores
9 · 5 core
Quality

Benchmark matrix

BenchmarkClaude Sonnet 4Gemini 2.5 FlashΔEdge
Reported by both · 2
SWE-bench Verified72.7% 48.9% +23.8 ptClaude Sonnet 4
GPQA Diamond79.2% epoch82.8% -3.6 ptGemini 2.5 Flash
Only Claude Sonnet 4 reports · 2
AIME 2024 (no extended thinking)33.1% not reported
OTIS Mock AIME 2024-2025 (Epoch AI run)71.1% epochnot reported
Only Gemini 2.5 Flash reports · 6
AIME 2025not reported72%
Humanity's Last Exam (no tools)not reported11%
LMArena Elonot reported1417.3
Aider Polyglotnot reported56.7%
LiveCodeBenchnot reported59.3%
MMMUnot reported79.7%
Scores tagged "epoch" or "matharena" are independent runs, used only where the lab has not published its own; ⚠ marks rows MathArena flags as released after the competition. Higher is better on every row. Δ is Claude Sonnet 4 minus Gemini 2.5 Flash in the benchmark's own unit. "Not reported" means the lab has not published that figure; it is not a zero. ↗ opens the source.
Specs & pricing

Side by side

SpecClaude Sonnet 4Gemini 2.5 FlashEdge
Context window200K tokens1.0M tokensGemini 2.5 Flash
Max output64K tokens66K tokensGemini 2.5 Flash
Input price / 1M$3 $0.3 Gemini 2.5 Flash
Output price / 1M$15 $2.5 Gemini 2.5 Flash
Cached input / 1M$0.3 $0.03 Gemini 2.5 Flash
Input + output / 1M
Lower is cheaper. List prices; batch, tool and regional fees excluded.
$18$2.8Gemini 2.5 Flash
Modalitiestext · visiontext · vision · audioGemini 2.5 Flash
Released2025-05-222025-06-17
Cited benchmark scores49
Reliability

Provider status

All providers
More matchups

Claude Sonnet 4 vs …

Built by Respan
Which one wins on your data?

Public benchmarks are a starting point. Run Claude Sonnet 4 and Gemini 2.5 Flash on your own prompts with Respan evals, or route to either through one gateway key with automatic failover.