Gemma 4 31B vs o3 Mini
Updated October 21, 2026. 40 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Pick o3 Mini for coding: it scores 52.1 on the Vibe Coding Index against 38.3 for Gemma 4 31B.
Pick Gemma 4 31B when output tokens cost 11.0x less, or when the context window is larger, 262K against 200K tokens.
- Shared results
- 40
- Gemma 4 31B only
- 28
- o3 Mini only
- 30
- Like-for-like categories
- 7 of 9
Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.
Which one for your work
Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.
Coding
Vibe Coding Index, four public coding benchmarks
o3 Mini
o3 Mini scores 52.1 against 38.3.
2 benchmarks behind each score
Intelligence
AA Intelligence Index
Gemma 4 31B
Gemma 4 31B leads, 14.7 against 12.5.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Gemma 4 31B has a AA Agentic Index result, 4.2.
Directional only
Reasoning
GPQA Diamond
No call
Only o3 Mini has a GPQA Diamond result, 75.5%.
Directional only
Math
AIME
No call
Only o3 Mini has a AIME result, 86.5%.
Directional only
Knowledge
MMLU Pro
No call
Only o3 Mini has a MMLU Pro result, 78.7%.
Directional only
Long documents
Listed context window
Gemma 4 31B
Gemma 4 31B takes 262K tokens against 200K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 4 31B
Gemma 4 31B $0.0004, o3 Mini $0.0033 per turn.
List prices
At a glance
- Coding index
- Gemma 4 31B 38.3 from 2 benchmarks, o3 Mini 52.1 from 2 benchmarks.
- Widest category
- Agentic work, 34.2 points apart on average over 1 shared benchmark.
- Widest single gap
- τ²-Bench Telecom: Gemma 4 31B 65.5% against o3 Mini 31.3%, 34.2 points apart on a 0 to 100 scale.
- Output price
- Gemma 4 31B $0.40 against o3 Mini $4.40 per million output tokens, 11.0x apart.
- Context window
- Gemma 4 31B takes 262K tokens, o3 Mini 200K.
Benchmark by benchmark
First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.
| Category | Gemma 4 31B | Bars | o3 Mini | Ties |
|---|---|---|---|---|
| Coding | 5 | 0 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 5 | 1 | ||
| Math | 2 | 1 | ||
| Knowledge | 4 | 1 | ||
| General | 18 | 0 | ||
| All shared boards | 37 | 3 |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index50
| Benchmark | Gemma 4 31B | o3 Mini | Leader |
|---|---|---|---|
| Aider polyglot | Not measured | 60.4% | Only o3 Mini measured |
| SWE-bench Verified | Not measured | 42.4% | Only o3 Mini measured |
| SWE-bench Lite | Not measured | 32.3% | Only o3 Mini measured |
| LiveBench coding | 49.0% | Not measured | Only Gemma 4 31B measured |
| LMArena WebDev | 1367 | Not measured | Only Gemma 4 31B measured |
| AA Coding Index | 43.4 | Not measured | Only Gemma 4 31B measured |
| LiveCodeBench (Vals AI) | Not measured | 71.5% | Only o3 Mini measured |
| LiveCodeBench (Artificial Analysis run) | Not measured | 73.4% | Only o3 Mini measured |
| SciCode | 45.5% | 42.8% | Gemma 4 31B |
| Terminal-Bench Hard (Artificial Analysis run) | 36.4% | 6.8% | Gemma 4 31B |
| GSO-Bench | Not measured | 1.3% | Only o3 Mini measured |
| WeirdML | 52.3% | 43.7% | Gemma 4 31B |
| Cybench | Not measured | 22.5% | Only o3 Mini measured |
| ALE-Bench | 925.5 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: coding | 1459 | 1378 | Gemma 4 31B |
| LMArena Text: software and IT | 1463 | 1364 | Gemma 4 31B |
| LMArena WebDev: React | 1359 | Not measured | Only Gemma 4 31B measured |
| LMArena WebDev: HTML | 1380 | Not measured | Only Gemma 4 31B measured |
| Neither model has a result on the other 20 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | Gemma 4 31B | o3 Mini | Leader |
|---|---|---|---|
| AA Intelligence Index | 14.7 | 12.5 | Gemma 4 31B |
| Epoch Capabilities Index | 143.0 | 140.2 | Gemma 4 31B |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Gemma 4 31B | o3 Mini | Leader |
|---|---|---|---|
| AA Agentic Index | 4.2 | Not measured | Only Gemma 4 31B measured |
| LiveBench research | 44.4% | Not measured | Only Gemma 4 31B measured |
| LiveBench browser | 4.0% | Not measured | Only Gemma 4 31B measured |
| LiveBench long agentic | 13.3% | Not measured | Only Gemma 4 31B measured |
| τ²-Bench Telecom | 65.5% | 31.3% | Gemma 4 31B |
| Neither model has a result on the other 34 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index51
| Benchmark | Gemma 4 31B | o3 Mini | Leader |
|---|---|---|---|
| GPQA Diamond | Not measured | 75.5% | Only o3 Mini measured |
| LiveBench reasoning | 68.3% | Not measured | Only Gemma 4 31B measured |
| GPQA Diamond (Artificial Analysis run) | 85.7% | 77.3% | Gemma 4 31B |
| Humanity's Last Exam (Artificial Analysis run) | 23.6% | 12.0% | Gemma 4 31B |
| GPQA Diamond (Epoch AI run) | 75.8% | 77.0% | o3 Mini |
| ARC-AGI | Not measured | 34.5% | Only o3 Mini measured |
| ARC-AGI-2 | Not measured | 3.0% | Only o3 Mini measured |
| SimpleBench | Not measured | 22.8% | Only o3 Mini measured |
| Chess puzzles | Not measured | 15.0% | Only o3 Mini measured |
| Mystery game puzzles | Not measured | 7.0% | Only o3 Mini measured |
| LMArena Text: hard prompts | 1448 | 1365 | Gemma 4 31B |
| LMArena Text: expert | 1464 | 1364 | Gemma 4 31B |
| LMArena Text: hard prompts in English | 1456 | 1375 | Gemma 4 31B |
| LMArena Vision: diagrams | 1283 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: homework | 1310 | Not measured | Only Gemma 4 31B measured |
| Neither model has a result on the other 6 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index21
| Benchmark | Gemma 4 31B | o3 Mini | Leader |
|---|---|---|---|
| AIME | Not measured | 86.5% | Only o3 Mini measured |
| MATH 500 (Vals AI) | Not measured | 91.8% | Only o3 Mini measured |
| MGSM (Vals AI) | Not measured | 91.3% | Only o3 Mini measured |
| OTIS Mock AIME | 73.3% | 76.9% | o3 Mini |
| FrontierMath, tiers 1 to 3 | Not measured | 18.6% | Only o3 Mini measured |
| FrontierMath, tier 4 | Not measured | 0.0% | Only o3 Mini measured |
| MATH level 5 | Not measured | 96.5% | Only o3 Mini measured |
| LMArena Text: math | 1463 | 1396 | Gemma 4 31B |
| LMArena Text: mathematical work | 1465 | 1399 | Gemma 4 31B |
| Neither model has a result on the other 4 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index41
| Benchmark | Gemma 4 31B | o3 Mini | Leader |
|---|---|---|---|
| MMLU Pro | Not measured | 78.7% | Only o3 Mini measured |
| LegalBench (Vals AI) | Not measured | 71.5% | Only o3 Mini measured |
| CaseLaw (Vals AI) | 52.6% | Not measured | Only Gemma 4 31B measured |
| CorpFin (Vals AI) | Not measured | 45.3% | Only o3 Mini measured |
| TaxEval (Vals AI) | Not measured | 69.4% | Only o3 Mini measured |
| MortgageTax (Vals AI) | 61.4% | Not measured | Only Gemma 4 31B measured |
| MedQA (Vals AI) | Not measured | 94.8% | Only o3 Mini measured |
| MMLU Pro (Artificial Analysis run) | Not measured | 80.2% | Only o3 Mini measured |
| SimpleQA Verified | 10.4% | 15.3% | o3 Mini |
| LMArena Text: science | 1457 | 1339 | Gemma 4 31B |
| LMArena Text: medicine and healthcare | 1451 | 1330 | Gemma 4 31B |
| LMArena Text: legal and government | 1438 | 1328 | Gemma 4 31B |
| LMArena Text: business and finance | 1430 | 1313 | Gemma 4 31B |
| Neither model has a result on the other 4 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
| Benchmark | Gemma 4 31B | o3 Mini | Leader |
|---|---|---|---|
| LiveBench design | 58.4% | Not measured | Only Gemma 4 31B measured |
| Neither model has a result on the other 8 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index180
| Benchmark | Gemma 4 31B | o3 Mini | Leader |
|---|---|---|---|
| LiveBench data analysis | 53.3% | Not measured | Only Gemma 4 31B measured |
| SAGE (Vals AI) | 55.0% | Not measured | Only Gemma 4 31B measured |
| IFBench | 75.6% | 67.1% | Gemma 4 31B |
| Long context reasoning (AA-LCR) | 69.7% | 43.0% | Gemma 4 31B |
| DTBench | 82.7% | 68.8% | Gemma 4 31B |
| LMCA | 39.3% | 19.0% | Gemma 4 31B |
| Fiction.LiveBench | Not measured | 50.0% | Only o3 Mini measured |
| Creative writing (Lech Mazur) | Not measured | 61.7% | Only o3 Mini measured |
| Surface Evolver Bench | 30.6% | Not measured | Only Gemma 4 31B measured |
| LMArena Text | 1443 | 1337 | Gemma 4 31B |
| LMArena Text: instruction following | 1433 | 1337 | Gemma 4 31B |
| LMArena Text: creative writing | 1417 | 1286 | Gemma 4 31B |
| LMArena Vision | 1276 | Not measured | Only Gemma 4 31B measured |
| LMArena Text: English | 1451 | 1351 | Gemma 4 31B |
| LMArena Text: non-English | 1430 | 1319 | Gemma 4 31B |
| LMArena Text: Chinese | 1475 | 1379 | Gemma 4 31B |
| LMArena Text: German | Not measured | 1303 | Only o3 Mini measured |
| LMArena Text: Japanese | Not measured | 1286 | Only o3 Mini measured |
| LMArena Text: Korean | Not measured | 1313 | Only o3 Mini measured |
| LMArena Text: French | 1436 | 1334 | Gemma 4 31B |
| LMArena Text: Spanish | 1442 | 1321 | Gemma 4 31B |
| LMArena Text: Russian | 1460 | 1304 | Gemma 4 31B |
| LMArena Text: Polish | 1433 | 1294 | Gemma 4 31B |
| LMArena Text: multi-turn | 1452 | 1320 | Gemma 4 31B |
| LMArena Text: longer queries | 1446 | 1343 | Gemma 4 31B |
| LMArena Text: writing and language | 1432 | 1313 | Gemma 4 31B |
| LMArena Text: entertainment and media | 1405 | 1283 | Gemma 4 31B |
| LMArena Vision: English | 1271 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: Chinese | 1326 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: reading text | 1282 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: humor | 1280 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: captioning | 1218 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: recognizing things | 1226 | Not measured | Only Gemma 4 31B measured |
| LMArena Vision: creative writing | 1285 | Not measured | Only Gemma 4 31B measured |
| LMArena Document | 1425 | Not measured | Only Gemma 4 31B measured |
| Neither model has a result on the other 11 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemma 4 31B | o3 Mini | Leader |
|---|---|---|---|
| Neither model has a result on 5 boards here | |||
What each workload costs
Three fixed token mixes at each model's listed price, so per-token rates become a bill.
Chat turn
1K input + 500 output tokens
Gemma 4 31B costs less
Repository review
50K input + 3K output tokens
Gemma 4 31B costs less
Agent loop
200K input + 10K output tokens
Gemma 4 31B costs less
Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.
Specification differences
The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.
| Specification | Google Gemma 4 31B | OpenAI o3 Mini |
|---|---|---|
| Maker | OpenAI | |
| Weights | Open weights | No public weights listed |
| Released | April 2, 2026 | January 31, 2025 |
| Context window | 262K | 200K |
| Input $/Mtok | $0.20 | $1.10 |
| Output $/Mtok | $0.40 | $4.40 |
| Coding index | 38.3 | 52.1 |
| Independent measurements behind it | 2 | 2 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemma 4 31B better than o3 Mini for coding?
Pick o3 Mini for coding: it scores 52.1 on the Vibe Coding Index against 38.3 for Gemma 4 31B. Pick Gemma 4 31B when output tokens cost 11.0x less, or when the context window is larger, 262K against 200K tokens.
Which is cheaper, Gemma 4 31B or o3 Mini?
Gemma 4 31B costs $0.20 per million input tokens and $0.40 per million output tokens; o3 Mini costs $1.10 and $4.40. Cost per solved task is known for neither of them.
Which has the bigger context window, Gemma 4 31B or o3 Mini?
Gemma 4 31B, with 262K tokens against 200K.
How many benchmarks is the Gemma 4 31B vs o3 Mini comparison based on?
40 benchmarks have a result for both models as of October 21, 2026. Gemma 4 31B's coding index rests on 2 independent benchmarks and o3 Mini's on 2. Where only one model has a result, the page says so instead of naming a winner.