Compare / head-to-head
Claude Sonnet 5vsGemini 3.1 Pro Preview
Gemini 3.1 Pro Preview leads 3 of 5 shared benchmarks. Claude Sonnet 5 is 1.2x cheaper per token. Gemini 3.1 Pro Preview has the larger context window (1.0M tokens).
Benchmarks from cited public sources; pricing from official pages; status from official provider feeds.
Shared benchmarks
2 – 3
Gemini 3.1 Pro Preview leads
Cheaper per token
Claude Sonnet 5
1.2x cheaper, input + output
Larger context
Gemini 3.1 Pro Preview
1.0M tokens
Provider uptime (30d)
100% · 100%
Anthropic · Google
Claude Sonnet 5
Anthropic · released 2026-06-30
textvision
Gemini 3.1 Pro Preview
Google · released 2026-02-19
textvisionaudio
Quality
Benchmark matrix
5 shared · 3 only Claude Sonnet 5 · 4 only Gemini 3.1 Pro Preview| Benchmark | Claude Sonnet 5 | Gemini 3.1 Pro Preview | Δ | Edge |
|---|---|---|---|---|
| Reported by both · 5 | ||||
| GPQA Diamond | 90.5% ↗epoch | 94.3% ↗ | -3.8 pt | Gemini 3.1 Pro Preview |
| FrontierMath Tier 4 v2 (Epoch AI run) | 29.3% ↗epoch | 26.8% ↗epoch | +2.5 pt | Claude Sonnet 5 |
| FrontierMath Tiers 1-3 v2 (Epoch AI run) | 65.6% ↗epoch | 59.6% ↗epoch | +6 pt | Claude Sonnet 5 |
| OTIS Mock AIME 2024-2025 (Epoch AI run) | 94.7% ↗epoch | 95.6% ↗epoch | -0.9 pt | Gemini 3.1 Pro Preview |
| SimpleQA Verified | 33.7% ↗epoch | 73.5% ↗epoch | -39.8 pt | Gemini 3.1 Pro Preview |
| Only Claude Sonnet 5 reports · 3 | ||||
| SWE-bench Verified | 85.2% ↗ | not reported | — | — |
| Humanity's Last Exam (no tools) | 43.2% ↗ | not reported | — | — |
| Humanity's Last Exam (with tools) | 57.4% ↗ | not reported | — | — |
| Only Gemini 3.1 Pro Preview reports · 4 | ||||
| AIME 2026 | not reported | 98.3% ↗matharena ⚠ | — | — |
| LMArena Elo | not reported | 1480.1 ↗ | — | — |
| ARC-AGI-2 | not reported | 77.1% ↗ | — | — |
| SWE-Bench Pro | not reported | 54.2% ↗ | — | — |
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 5 minus Gemini 3.1 Pro Preview 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
Official pricing pages and model cards| Spec | Claude Sonnet 5 | Gemini 3.1 Pro Preview | Edge |
|---|---|---|---|
| Context window | 1M tokens | 1.0M tokens | Gemini 3.1 Pro Preview |
| Max output | 128K tokens | 66K tokens | Claude Sonnet 5 |
| Input price / 1M | $2 ↗ | $2 ↗ | Tie |
| Output price / 1M | $10 ↗ | $12 ↗ | Claude Sonnet 5 |
| Cached input / 1M | $0.2 ↗ | $0.2 ↗ | Tie |
| Input + output / 1M Lower is cheaper. List prices; batch, tool and regional fees excluded. | $12 | $14 | Claude Sonnet 5 |
| Modalities | text · vision | text · vision · audio | Gemini 3.1 Pro Preview |
| Released | 2026-06-30 | 2026-02-19 | — |
| Cited benchmark scores | 8 | 10 | — |
Reliability
Provider status
Last 60 days · refreshed daily on this page · live on /statusMore matchups
Claude Sonnet 5 vs …
Models sharing the most benchmarksMore matchups
Gemini 3.1 Pro Preview vs …
Models sharing the most benchmarksBuilt by Respan
Which one wins on your data?
Public benchmarks are a starting point. Run Claude Sonnet 5 and Gemini 3.1 Pro Preview on your own prompts with Respan evals, or route to either through one gateway key with automatic failover.