Gemini 3 Flash Preview vs Gemma 4 31B
Updated October 21, 2026. 17 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.
Decision reading
Pick Gemini 3 Flash Preview for coding: it scores 75.8 on the Vibe Coding Index against 38.3 for Gemma 4 31B, though on 1 benchmark against 2.
Pick Gemma 4 31B when output tokens cost 7.5x less, or when the benchmark that matters is SAGE (Vals AI), where it leads.
- Shared results
- 17
- Gemini 3 Flash Preview only
- 52
- Gemma 4 31B only
- 51
- 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
Gemini 3 Flash Preview
Gemini 3 Flash Preview scores 75.8 against 38.3.
1 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
Gemini 3 Flash Preview
Gemini 3 Flash Preview leads, 26.3 against 14.7.
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 Gemini 3 Flash Preview has a GPQA Diamond result, 87.9%.
Directional only
Math
AIME
No call
Only Gemini 3 Flash Preview has a AIME result, 95.6%.
Directional only
Knowledge
MMLU Pro
No call
Only Gemini 3 Flash Preview has a MMLU Pro result, 88.6%.
Directional only
Web design
Design Arena: websites
No call
Only Gemini 3 Flash Preview has a Design Arena: websites result, 1196.
Directional only
Long documents
Listed context window
Gemini 3 Flash Preview
Gemini 3 Flash Preview takes 1.05M tokens against 262K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 4 31B
Gemini 3 Flash Preview $0.0020, Gemma 4 31B $0.0004 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only Gemini 3 Flash Preview has the number, $0.37.
Directional only
At a glance
- Coding index
- Gemini 3 Flash Preview 75.8 from 1 benchmark, Gemma 4 31B 38.3 from 2 benchmarks.
- Widest category
- Knowledge, 22.3 points apart on average over 3 shared benchmarks.
- Widest single gap
- SimpleQA Verified: Gemini 3 Flash Preview 66.8% against Gemma 4 31B 10.4%, 56.4 points apart on a 0 to 100 scale.
- Output price
- Gemini 3 Flash Preview $3.00 against Gemma 4 31B $0.40 per million output tokens, 7.5x apart.
- Context window
- Gemini 3 Flash Preview takes 1.05M tokens, Gemma 4 31B 262K.
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 | Gemini 3 Flash Preview | Bars | Gemma 4 31B | Ties |
|---|---|---|---|---|
| Coding | 3 | 0 | ||
| Intelligence | 1 | 0 | ||
| Agentic work | 1 | 0 | ||
| Reasoning | 3 | 0 | ||
| Math | 1 | 0 | ||
| Knowledge | 3 | 0 | ||
| General | 4 | 1 | ||
| All shared boards | 16 | 1 |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index30
| Benchmark | Gemini 3 Flash Preview | Gemma 4 31B | Leader |
|---|---|---|---|
| SWE-bench Verified | 75.8% | Not measured | Only Gemini 3 Flash Preview measured |
| LiveBench coding | Not measured | 49.0% | Only Gemma 4 31B measured |
| LMArena WebDev | Not measured | 1367 | Only Gemma 4 31B measured |
| AA Coding Index | Not measured | 43.4 | Only Gemma 4 31B measured |
| LiveCodeBench (Vals AI) | 85.6% | Not measured | Only Gemini 3 Flash Preview measured |
| SWE-bench Verified (Vals AI) | 75.0% | Not measured | Only Gemini 3 Flash Preview measured |
| Vibe Code Bench (Vals AI) | 20.2% | Not measured | Only Gemini 3 Flash Preview measured |
| Code migration (Vals AI) | 6.4% | Not measured | Only Gemini 3 Flash Preview measured |
| ProgramBench (Vals AI) | 0.0% | Not measured | Only Gemini 3 Flash Preview measured |
| Terminal-Bench 2.1 (Vals AI) | 53.9% | Not measured | Only Gemini 3 Flash Preview measured |
| LiveCodeBench (Artificial Analysis run) | 90.8% | Not measured | Only Gemini 3 Flash Preview measured |
| SciCode | Not measured | 45.5% | Only Gemma 4 31B measured |
| Terminal-Bench Hard (Artificial Analysis run) | 38.6% | 36.4% | Gemini 3 Flash Preview |
| Terminal-Bench | 64.3% | Not measured | Only Gemini 3 Flash Preview measured |
| GSO-Bench | 9.8% | Not measured | Only Gemini 3 Flash Preview measured |
| WeirdML | 61.6% | 52.3% | Gemini 3 Flash Preview |
| ALE-Bench | 1367.2 | 925.5 | Gemini 3 Flash Preview |
| LMArena Text: coding | Not measured | 1459 | Only Gemma 4 31B measured |
| LMArena Text: software and IT | Not measured | 1463 | Only Gemma 4 31B measured |
| LMArena WebDev: React | Not measured | 1359 | Only Gemma 4 31B measured |
| LMArena WebDev: HTML | Not measured | 1380 | Only Gemma 4 31B measured |
| Neither model has a result on the other 17 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Gemini 3 Flash Preview | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Intelligence Index | 26.3 | 14.7 | Gemini 3 Flash Preview |
| Epoch Capabilities Index | Not measured | 143.0 | Only Gemma 4 31B measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Gemini 3 Flash Preview | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Agentic Index | Not measured | 4.2 | Only Gemma 4 31B measured |
| Design Arena: agents building web apps | 1111 | Not measured | Only Gemini 3 Flash Preview measured |
| Design Arena: agents building full-stack apps | 1063 | Not measured | Only Gemini 3 Flash Preview measured |
| Design Arena: agents building mobile apps | 1090 | Not measured | Only Gemini 3 Flash Preview measured |
| Design Arena: agents building Android apps | 1056 | Not measured | Only Gemini 3 Flash Preview measured |
| Design Arena: agents building Godot games | 1161 | Not measured | Only Gemini 3 Flash Preview measured |
| Design Arena: PowerPoint slides | 1036 | Not measured | Only Gemini 3 Flash Preview measured |
| LiveBench research | Not measured | 44.4% | Only Gemma 4 31B measured |
| LiveBench browser | Not measured | 4.0% | Only Gemma 4 31B measured |
| LiveBench long agentic | Not measured | 13.3% | Only Gemma 4 31B measured |
| Finance Agent (Vals AI) | 42.5% | Not measured | Only Gemini 3 Flash Preview measured |
| Tax Agent Bench (Vals AI) | 11.8% | Not measured | Only Gemini 3 Flash Preview measured |
| Legal Research Bench (Vals AI) | 18.3% | Not measured | Only Gemini 3 Flash Preview measured |
| Excel Modeling Benchmark (Vals AI) | 26.0% | Not measured | Only Gemini 3 Flash Preview measured |
| τ²-Bench Telecom | 80.4% | 65.5% | Gemini 3 Flash Preview |
| BALROG | 48.1% | Not measured | Only Gemini 3 Flash Preview measured |
| DeepResearch Bench | 49.8% | Not measured | Only Gemini 3 Flash Preview measured |
| Vending-Bench 2 | $3,635 | Not measured | Only Gemini 3 Flash Preview measured |
| Neither model has a result on the other 21 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | Gemini 3 Flash Preview | Gemma 4 31B | Leader |
|---|---|---|---|
| GPQA Diamond | 87.9% | Not measured | Only Gemini 3 Flash Preview measured |
| LiveBench reasoning | Not measured | 68.3% | Only Gemma 4 31B measured |
| MMMU Pro (Vals AI) | 87.6% | Not measured | Only Gemini 3 Flash Preview measured |
| GPQA Diamond (Artificial Analysis run) | 89.8% | 85.7% | Gemini 3 Flash Preview |
| Humanity's Last Exam (Artificial Analysis run) | 36.6% | 23.6% | Gemini 3 Flash Preview |
| GPQA Diamond (Epoch AI run) | 89.4% | 75.8% | Gemini 3 Flash Preview |
| ARC-AGI | 84.7% | Not measured | Only Gemini 3 Flash Preview measured |
| ARC-AGI-2 | 33.6% | Not measured | Only Gemini 3 Flash Preview measured |
| SimpleBench | 61.1% | Not measured | Only Gemini 3 Flash Preview measured |
| Chess puzzles | 39.0% | Not measured | Only Gemini 3 Flash Preview measured |
| Mystery game puzzles | 26.0% | Not measured | Only Gemini 3 Flash Preview measured |
| VPCT | 72.6% | Not measured | Only Gemini 3 Flash Preview measured |
| LMArena Text: hard prompts | Not measured | 1448 | Only Gemma 4 31B measured |
| LMArena Text: expert | Not measured | 1464 | Only Gemma 4 31B measured |
| LMArena Text: hard prompts in English | Not measured | 1456 | Only Gemma 4 31B measured |
| LMArena Vision: diagrams | Not measured | 1283 | Only Gemma 4 31B measured |
| LMArena Vision: homework | Not measured | 1310 | Only Gemma 4 31B measured |
| Neither model has a result on the other 4 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Gemini 3 Flash Preview | Gemma 4 31B | Leader |
|---|---|---|---|
| AIME | 95.6% | Not measured | Only Gemini 3 Flash Preview measured |
| MGSM (Vals AI) | 93.3% | Not measured | Only Gemini 3 Flash Preview measured |
| AA Math Index | 97.0 | Not measured | Only Gemini 3 Flash Preview measured |
| AIME 2025 (Artificial Analysis run) | 97.0% | Not measured | Only Gemini 3 Flash Preview measured |
| OTIS Mock AIME | 95.6% | 73.3% | Gemini 3 Flash Preview |
| FrontierMath, tiers 1 to 3 | 51.2% | Not measured | Only Gemini 3 Flash Preview measured |
| FrontierMath, tier 4 | 17.1% | Not measured | Only Gemini 3 Flash Preview measured |
| ProofBench | 15.0% | Not measured | Only Gemini 3 Flash Preview measured |
| LMArena Text: math | Not measured | 1463 | Only Gemma 4 31B measured |
| LMArena Text: mathematical work | Not measured | 1465 | Only Gemma 4 31B measured |
| Neither model has a result on the other 3 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | Gemini 3 Flash Preview | Gemma 4 31B | Leader |
|---|---|---|---|
| MMLU Pro | 88.6% | Not measured | Only Gemini 3 Flash Preview measured |
| LegalBench (Vals AI) | 86.9% | Not measured | Only Gemini 3 Flash Preview measured |
| CaseLaw (Vals AI) | 55.8% | 52.6% | Gemini 3 Flash Preview |
| CorpFin (Vals AI) | 66.4% | Not measured | Only Gemini 3 Flash Preview measured |
| TaxEval (Vals AI) | 73.9% | Not measured | Only Gemini 3 Flash Preview measured |
| MortgageTax (Vals AI) | 68.7% | 61.4% | Gemini 3 Flash Preview |
| MedQA (Vals AI) | 95.8% | Not measured | Only Gemini 3 Flash Preview measured |
| MedCode (Vals AI) | 55.9% | Not measured | Only Gemini 3 Flash Preview measured |
| MMLU Pro (Artificial Analysis run) | 89.0% | Not measured | Only Gemini 3 Flash Preview measured |
| SimpleQA Verified | 66.8% | 10.4% | Gemini 3 Flash Preview |
| GeoBench | 88.0% | Not measured | Only Gemini 3 Flash Preview measured |
| LMArena Text: science | Not measured | 1457 | Only Gemma 4 31B measured |
| LMArena Text: medicine and healthcare | Not measured | 1451 | Only Gemma 4 31B measured |
| LMArena Text: legal and government | Not measured | 1438 | Only Gemma 4 31B measured |
| LMArena Text: business and finance | Not measured | 1430 | Only Gemma 4 31B measured |
| Neither model has a result on the other 2 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index5 boards, none shared
| Benchmark | Gemini 3 Flash Preview | Gemma 4 31B | Leader |
|---|---|---|---|
| Design Arena: websites | 1196 | Not measured | Only Gemini 3 Flash Preview measured |
| Design Arena: game dev | 1166 | Not measured | Only Gemini 3 Flash Preview measured |
| Design Arena: 3D | 1184 | Not measured | Only Gemini 3 Flash Preview measured |
| Design Arena: all code categories | 1189 | Not measured | Only Gemini 3 Flash Preview measured |
| LiveBench design | Not measured | 58.4% | Only Gemma 4 31B measured |
| Neither model has a result on the other 4 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index41
| Benchmark | Gemini 3 Flash Preview | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench data analysis | Not measured | 53.3% | Only Gemma 4 31B measured |
| SAGE (Vals AI) | 51.8% | 55.0% | Gemma 4 31B |
| MedScribe (Vals AI) | 69.9% | Not measured | Only Gemini 3 Flash Preview measured |
| Vals Multimodal Index | 52.2% | Not measured | Only Gemini 3 Flash Preview measured |
| IFBench | 78.0% | 75.6% | Gemini 3 Flash Preview |
| Long context reasoning (AA-LCR) | 78.0% | 69.7% | Gemini 3 Flash Preview |
| DTBench | 89.1% | 82.7% | Gemini 3 Flash Preview |
| LMCA | 43.1% | 39.3% | Gemini 3 Flash Preview |
| Surface Evolver Bench | Not measured | 30.6% | Only Gemma 4 31B measured |
| LMArena Text | Not measured | 1443 | Only Gemma 4 31B measured |
| LMArena Text: instruction following | Not measured | 1433 | Only Gemma 4 31B measured |
| LMArena Text: creative writing | Not measured | 1417 | Only Gemma 4 31B measured |
| LMArena Vision | Not measured | 1276 | Only Gemma 4 31B measured |
| LMArena Text: English | Not measured | 1451 | Only Gemma 4 31B measured |
| LMArena Text: non-English | Not measured | 1430 | Only Gemma 4 31B measured |
| LMArena Text: Chinese | Not measured | 1475 | Only Gemma 4 31B measured |
| LMArena Text: French | Not measured | 1436 | Only Gemma 4 31B measured |
| LMArena Text: Spanish | Not measured | 1442 | Only Gemma 4 31B measured |
| LMArena Text: Russian | Not measured | 1460 | Only Gemma 4 31B measured |
| LMArena Text: Polish | Not measured | 1433 | Only Gemma 4 31B measured |
| LMArena Text: multi-turn | Not measured | 1452 | Only Gemma 4 31B measured |
| LMArena Text: longer queries | Not measured | 1446 | Only Gemma 4 31B measured |
| LMArena Text: writing and language | Not measured | 1432 | Only Gemma 4 31B measured |
| LMArena Text: entertainment and media | Not measured | 1405 | Only Gemma 4 31B measured |
| LMArena Vision: English | Not measured | 1271 | Only Gemma 4 31B measured |
| LMArena Vision: Chinese | Not measured | 1326 | Only Gemma 4 31B measured |
| LMArena Vision: reading text | Not measured | 1282 | Only Gemma 4 31B measured |
| LMArena Vision: humor | Not measured | 1280 | Only Gemma 4 31B measured |
| LMArena Vision: captioning | Not measured | 1218 | Only Gemma 4 31B measured |
| LMArena Vision: recognizing things | Not measured | 1226 | Only Gemma 4 31B measured |
| LMArena Vision: creative writing | Not measured | 1285 | Only Gemma 4 31B measured |
| LMArena Document | Not measured | 1425 | Only Gemma 4 31B measured |
| Neither model has a result on the other 14 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemini 3 Flash Preview | Gemma 4 31B | 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 Gemini 3 Flash Preview | Google Gemma 4 31B |
|---|---|---|
| Maker | ||
| Weights | No public weights listed | Open weights |
| Released | December 17, 2025 | April 2, 2026 |
| Context window | 1.05M | 262K |
| Input $/Mtok | $0.50 | $0.20 |
| Output $/Mtok | $3.00 | $0.40 |
| Coding index | 75.8 | 38.3 |
| Independent measurements behind it | 1 | 2 |
| Cost per solved task | $0.37 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemini 3 Flash Preview better than Gemma 4 31B for coding?
Pick Gemini 3 Flash Preview for coding: it scores 75.8 on the Vibe Coding Index against 38.3 for Gemma 4 31B, though on 1 benchmark against 2. Pick Gemma 4 31B when output tokens cost 7.5x less, or when the benchmark that matters is SAGE (Vals AI), where it leads.
Which is cheaper, Gemini 3 Flash Preview or Gemma 4 31B?
Gemini 3 Flash Preview costs $0.50 per million input tokens and $3.00 per million output tokens; Gemma 4 31B costs $0.20 and $0.40. Cost per solved task is known for Gemini 3 Flash Preview only.
Which has the bigger context window, Gemini 3 Flash Preview or Gemma 4 31B?
Gemini 3 Flash Preview, with 1.05M tokens against 262K.
How many benchmarks is the Gemini 3 Flash Preview vs Gemma 4 31B comparison based on?
17 benchmarks have a result for both models as of October 21, 2026. Gemini 3 Flash Preview's coding index rests on 1 independent benchmark and Gemma 4 31B's on 2. Where only one model has a result, the page says so instead of naming a winner.