vs
0:3
overall capability wins (1 ties across 4 scored). Gemma 4 31B leads overall.
- Arena0:1
- Pricing3:0
- Speed2:0
- Specs0:2
Verdict
Gemma 4 31B ranks higher on LMArena (+184 Elo); Gemma 4 31B offers ~31.3x larger context (256K vs 8K); Gemma 2 9B is ~1.9x cheaper on a blended token basis than Gemma 4 31B.
- Gemma 4 31B ranks higher on LMArena (+184 Elo)
- Gemma 4 31B offers ~31.3x larger context (256K vs 8K)
- Gemma 2 9B is ~1.9x cheaper on a blended token basis than Gemma 4 31B
Cost for 1M in + 250K out
Illustrative chat workload at primary-provider list prices.
- Gemma 2 9B
- $0.10
- Gemma 4 31B
- $0.17
Gemma 2 9B is about 1.7x cheaper on this workload.
Price per 1M tokens
Full comparison
Organization
Family
Gemma
Gemma
License
Gemma
Apache 2.0
Open weights
Yes
Yes
Release
Jun 27, 2024
Apr 8, 2026
Knowledge cutoff
-
-
API / provider
Groq / Together (ref.)
Google AI / self-host
Modalities
text → text
text, image → text
Specs
Context window
8K
256K
Max output
8K
8K
Parameters
9B
31B
Pricing
Input $/1M
$0.08
$0.10
Output $/1M
$0.08
$0.30
Blended $/1M (3∶1)
$0.08
$0.15
Speed
tok/s
140
85
TTFT (s)
0.2
0.3
Reasoning
MMLU-Pro
—
85.2
GPQA Diamond
—
85.7
Humanity's Last Exam
—
23.6
AIME 2025
—
—
MATH-500
—
—
Humanity's Last Exam (with tools)
—
—
AA-Omniscience Accuracy
—
20.0
AA-LCR v1.1
—
69.7
CritPt
—
1.4
MMMU-Pro
—
73.4
IFBench
—
75.6
Chartography
—
—
Chartography (With Tools)
—
—
Coding
SWE-bench Verified
—
—
SWE-bench Pro
—
—
SWE-bench Multilingual
—
—
LiveCodeBench
—
80.0
Terminal-Bench 2.1
—
43.4
Aider Polyglot
—
—
Terminal-Bench 3
—
—
BigCodeBench
34.7
—
SciCode
—
45.5
CursorBench
—
—
SWE-Rebench
—
25.1
NL2Repo-Bench
—
—
DeepSWE
—
—
WebDev Arena
—
1,364
Terminal-Bench 4.0
—
—
CursorBench 4.0
—
—
FrontierCode v1.1 (Main)
—
—
Arena
LMArena Elo
1,267
1,451
| Metric | Gemma 2 9B | Gemma 4 31B | Delta |
|---|---|---|---|
| Identity | |||
| Organization | — | ||
| Family | Gemma | Gemma | — |
| License | Gemma | Apache 2.0 | — |
| Open weights | Yes | Yes | — |
| Release | Jun 27, 2024 | Apr 8, 2026 | — |
| Knowledge cutoff | - | - | — |
| API / provider | Groq / Together (ref.) | Google AI / self-host | — |
| Modalities | text → text | text, image → text | — |
| Specs | |||
| Context window | 8K | 256K | B +248K |
| Max output | 8K | 8K | tie |
| Parameters | 9B | 31B | B +22 |
| Pricing | |||
| Input $/1M | $0.08 | $0.10 | A +$0.02 |
| Output $/1M | $0.08 | $0.30 | A +$0.22 |
| Blended $/1M (3∶1) | $0.08 | $0.15 | A +$0.07 |
| Speed | |||
| tok/s | 140 | 85 | A +55 |
| TTFT (s) | 0.2 | 0.3 | A +0.10 |
| Reasoning | |||
| MMLU-Pro | — | 85.2 | — |
| GPQA Diamond | — | 85.7 | — |
| Humanity's Last Exam | — | 23.6 | — |
| AIME 2025 | — | — | — |
| MATH-500 | — | — | — |
| Humanity's Last Exam (with tools) | — | — | — |
| AA-Omniscience Accuracy | — | 20.0 | — |
| AA-LCR v1.1 | — | 69.7 | — |
| CritPt | — | 1.4 | — |
| MMMU-Pro | — | 73.4 | — |
| IFBench | — | 75.6 | — |
| Chartography | — | — | — |
| Chartography (With Tools) | — | — | — |
| Coding | |||
| SWE-bench Verified | — | — | — |
| SWE-bench Pro | — | — | — |
| SWE-bench Multilingual | — | — | — |
| LiveCodeBench | — | 80.0 | — |
| Terminal-Bench 2.1 | — | 43.4 | — |
| Aider Polyglot | — | — | — |
| Terminal-Bench 3 | — | — | — |
| BigCodeBench | 34.7 | — | — |
| SciCode | — | 45.5 | — |
| CursorBench | — | — | — |
| SWE-Rebench | — | 25.1 | — |
| NL2Repo-Bench | — | — | — |
| DeepSWE | — | — | — |
| WebDev Arena | — | 1,364 | — |
| Terminal-Bench 4.0 | — | — | — |
| CursorBench 4.0 | — | — | — |
| FrontierCode v1.1 (Main) | — | — | — |
| Arena | |||
| LMArena Elo | 1,267 | 1,451 | B +184 Elo |
Gemma 2 9B
- Context
- 8K / 8K out
- Parameters
- 9B
- Price
- $0.08 / $0.08
- Speed
- 140 tok/s · 0.2s TTFT
- Modalities
- text → text
- License
- Gemma
Efficient open 9B Gemma 2 instruct — popular local and edge chat baseline.
Gemma 4 31B
- Context
- 256K / 8K out
- Parameters
- 31B
- Price
- $0.10 / $0.30
- Speed
- 85 tok/s · 0.3s TTFT
- Modalities
- text, image → text
- License
- Apache 2.0
Open-weight Gemma 4 instruction model - strong mid-size open alternative under Apache 2.0.
Benchmark charts
Winner bars are emphasized. Per-benchmark deltas sit above each chart.