Compare / head-to-head
Claude 3.7 SonnetvsGemma 4 31B
Gemma 4 31B leads 1 of 1 shared benchmark. Gemma 4 31B has the larger context window (256K tokens).
Benchmarks from cited public sources; pricing from official pages; status from official provider feeds.
Shared benchmarks
0 – 1
Gemma 4 31B leads
Cheaper per token
—
list price, input + output
Larger context
Gemma 4 31B
256K tokens
Provider uptime (30d)
100% · 100%
Anthropic · Google
Claude 3.7 Sonnet
Anthropic · released 2025-02-24
textvision
Gemma 4 31B
Google · released 2026-04-02
textvision
- Context
- 256K
- Max out
- —
- Input /1M
- —
- Output /1M
- —
- Cached /1M
- —
- Scores
- 6 · 5 core
Quality
Benchmark matrix
1 shared · 4 only Claude 3.7 Sonnet · 5 only Gemma 4 31B| Benchmark | Claude 3.7 Sonnet | Gemma 4 31B | Δ | Edge |
|---|---|---|---|---|
| Reported by both · 1 | ||||
| GPQA Diamond | 79.7% ↗epoch | 84.3% ↗ | -4.6 pt | Gemma 4 31B |
| Only Claude 3.7 Sonnet reports · 4 | ||||
| SWE-bench Verified | 70.3% ↗ | not reported | — | — |
| AIME 2025 | 49.2% ↗matharena ⚠ | not reported | — | — |
| OTIS Mock AIME 2024-2025 (Epoch AI run) | 57.8% ↗epoch | not reported | — | — |
| SWE-bench Verified (Epoch AI run) | 61% ↗epoch | not reported | — | — |
| Only Gemma 4 31B reports · 5 | ||||
| MMLU-Pro | not reported | 85.2% ↗ | — | — |
| AIME 2026 | not reported | 89.2% ↗ | — | — |
| Humanity's Last Exam (no tools) | not reported | 19.5% ↗ | — | — |
| LMArena Elo | not reported | 1441.7 ↗ | — | — |
| LiveCodeBench v6 | not reported | 80% ↗ | — | — |
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 3.7 Sonnet minus Gemma 4 31B 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 3.7 Sonnet | Gemma 4 31B | Edge |
|---|---|---|---|
| Context window | 200K tokens | 256K tokens | Gemma 4 31B |
| Max output | 128K tokens | — | — |
| Input price / 1M | $3 ↗ | — | — |
| Output price / 1M | $15 ↗ | — | — |
| Cached input / 1M | $0.3 ↗ | — | — |
| Input + output / 1M Lower is cheaper. List prices; batch, tool and regional fees excluded. | $18 | — | — |
| Modalities | text · vision | text · vision | Tie |
| Released | 2025-02-24 | 2026-04-02 | — |
| Cited benchmark scores | 5 | 6 | — |
Reliability
Provider status
Last 60 days · refreshed daily on this page · live on /statusMore matchups
Claude 3.7 Sonnet vs …
Models sharing the most benchmarksMore matchups
Gemma 4 31B vs …
Models sharing the most benchmarksBuilt by Respan
Which one wins on your data?
Public benchmarks are a starting point. Run Claude 3.7 Sonnet and Gemma 4 31B on your own prompts with Respan evals, or route to either through one gateway key with automatic failover.