Amazon Ergo vs Gemma 4 31B
Amazon Ergo leads Gemma 4 31B on coding, 65.8 to 21.9 on the Vibe Coding Index, and Gemma 4 31B costs 8.1x less per output token ($0.37 vs $3.00 per million). Updated December 4, 2026; 18 benchmarks have a result for both.
Amazon Ergo or Gemma 4 31B: which to pick
Pick Amazon Ergo for coding: it scores 65.8 on the Vibe Coding Index against 21.9 for Gemma 4 31B.
Pick Gemma 4 31B for output tokens 8.1x cheaper ($0.37 vs $3.00 per million).
- Shared results
- 18
- Amazon Ergo only
- 13
- Gemma 4 31B only
- 59
- Like-for-like categories
- 8 of 9
Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.
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, six public coding benchmarks
Amazon Ergo
Amazon Ergo scores 65.8 against 21.9.
4 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
Amazon Ergo
Amazon Ergo leads, 38.0 against 4.0.
Same board, both measured
General
Vals Index
No call
Only Amazon Ergo has a Vals Index result, 56.2%.
Directional only
Long documents
Listed context window
Amazon Ergo
Amazon Ergo takes 1.05M tokens against 262K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Gemma 4 31B
Amazon Ergo $0.0025, Gemma 4 31B $0.0003 per turn.
List prices
At a glance
- Coding index
- Amazon Ergo 65.8 from 4 benchmarks, Gemma 4 31B 21.9 from 2 benchmarks.
- Widest category
- Coding, 40.2 points apart on average over 5 shared benchmarks.
- Widest single gap
- LiveBench coding: Amazon Ergo 84.4% against Gemma 4 31B 20.3%, 64.1 points apart on a 0 to 100 scale.
- Output price
- Amazon Ergo $3.00 against Gemma 4 31B $0.37 per million output tokens, 8.1x apart.
- Context window
- Amazon Ergo 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 | Amazon Ergo | Bars | Gemma 4 31B | Ties |
|---|---|---|---|---|
| Coding | 5 | 0 | ||
| Intelligence | 1 | 0 | ||
| Agentic work | 2 | 0 | 1 tie | |
| Reasoning | 4 | 0 | ||
| Math | 1 | 0 | ||
| Knowledge | 2 | 0 | ||
| Web design | 1 | 0 | ||
| General | 1 | 0 | ||
| All shared boards | 17 | 0 | 1 tie |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index50
| Benchmark | Amazon Ergo | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench coding | 84.4% | 20.3% | Amazon Ergo |
| LMArena WebDev | 1612 | 1371 | Amazon Ergo |
| Terminal-Bench 4 (Vals AI) | 42.9% | Not measured | Only Amazon Ergo measured |
| Vibe Code Bench (Vals AI) | 66.0% | Not measured | Only Amazon Ergo measured |
| SciCode | Not measured | 45.5% | Only Gemma 4 31B measured |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 36.4% | Only Gemma 4 31B measured |
| Terminal-Bench 4.0 (Artificial Analysis run) | Not measured | 0.0% | Only Gemma 4 31B measured |
| FrontierCode 2.0 | 28.8% | 0.0% | Amazon Ergo |
| WeirdML | Not measured | 52.3% | Only Gemma 4 31B measured |
| ALE-Bench | Not measured | 925.5 | Only Gemma 4 31B measured |
| 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 | 1636 | 1363 | Amazon Ergo |
| LMArena WebDev: HTML | 1586 | 1380 | Amazon Ergo |
| SciCode | Not measured | 8.9% | Only Gemma 4 31B measured |
| GameBench 2 | Not measured | 34.9 | Only Gemma 4 31B measured |
| Neither model has a result on the other 36 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Amazon Ergo | Gemma 4 31B | Leader |
|---|---|---|---|
| AA Intelligence Index | 38.0 | 4.0 | Amazon Ergo |
| Epoch Capabilities Index | Not measured | 144.1 | Only Gemma 4 31B measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | Amazon Ergo | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench research | 81.7% | 38.1% | Amazon Ergo |
| LiveBench browser | 0.0% | 0.0% | Tie |
| LiveBench long agentic | 43.9% | 8.5% | Amazon Ergo |
| Tax Agent Bench (Vals AI) | 23.7% | Not measured | Only Amazon Ergo measured |
| Legal Research Bench (Vals AI) | 33.6% | Not measured | Only Amazon Ergo measured |
| Harvey's Legal Agent Benchmark (Vals AI) | 12.1% | Not measured | Only Amazon Ergo measured |
| BioMysteryBench (Vals AI) | 64.8% | Not measured | Only Amazon Ergo measured |
| Terminal-Bench-Science (Vals AI) | 15.7% | Not measured | Only Amazon Ergo measured |
| Vals Science Index | 31.8% | Not measured | Only Amazon Ergo measured |
| τ²-Bench Telecom | Not measured | 65.5% | Only Gemma 4 31B measured |
| Neither model has a result on the other 34 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index40
| Benchmark | Amazon Ergo | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench reasoning | 87.7% | 68.3% | Amazon Ergo |
| MysteryMechanism (Vals AI) | 14.9% | Not measured | Only Amazon Ergo measured |
| GPQA Diamond (Artificial Analysis run) | Not measured | 85.7% | Only Gemma 4 31B measured |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 23.6% | Only Gemma 4 31B measured |
| HLE-Diamond (Artificial Analysis run) | 20.5% | 7.2% | Amazon Ergo |
| CritPt v2, hard subset (Artificial Analysis run) | 38.0% | 4.0% | Amazon Ergo |
| GPQA Diamond (Epoch AI run) | 91.5% | 75.8% | Amazon Ergo |
| Mystery game puzzles | 41.0% | Not measured | Only Amazon Ergo measured |
| LMArena Text: hard prompts | Not measured | 1448 | Only Gemma 4 31B measured |
| LMArena Text: expert | Not measured | 1465 | Only Gemma 4 31B measured |
| LMArena Text: hard prompts in English | Not measured | 1456 | Only Gemma 4 31B measured |
| LMArena Vision: diagrams | Not measured | 1287 | Only Gemma 4 31B measured |
| LMArena Vision: homework | Not measured | 1310 | Only Gemma 4 31B measured |
| Kagi LLM Benchmark | Not measured | 63.5% | Only Gemma 4 31B measured |
| Neither model has a result on the other 12 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Amazon Ergo | Gemma 4 31B | Leader |
|---|---|---|---|
| OTIS Mock AIME | 97.2% | 73.3% | Amazon Ergo |
| FrontierMath, tiers 1 to 3 | 69.8% | Not measured | Only Amazon Ergo measured |
| FrontierMath, tier 4 | 51.2% | Not measured | Only Amazon Ergo measured |
| LMArena Text: math | Not measured | 1463 | Only Gemma 4 31B measured |
| LMArena Text: mathematical work | Not measured | 1464 | Only Gemma 4 31B measured |
| Neither model has a result on the other 9 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index20
| Benchmark | Amazon Ergo | Gemma 4 31B | Leader |
|---|---|---|---|
| CaseLaw (Vals AI) | Not measured | 52.6% | Only Gemma 4 31B measured |
| MortgageTax (Vals AI) | Not measured | 61.4% | Only Gemma 4 31B measured |
| AA-Omniscience | 19.1 | -48.5 | Amazon Ergo |
| SimpleQA Verified | 39.3% | 10.4% | Amazon Ergo |
| LMArena Text: science | Not measured | 1456 | Only Gemma 4 31B measured |
| LMArena Text: medicine and healthcare | Not measured | 1450 | 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 | 1431 | Only Gemma 4 31B measured |
| FACTS Benchmark Suite | Not measured | 50.1% | Only Gemma 4 31B measured |
| Neither model has a result on the other 12 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Amazon Ergo | Gemma 4 31B | Leader |
|---|---|---|---|
| LiveBench design | 70.2% | 56.5% | Amazon Ergo |
| Neither model has a result on the other 8 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Amazon Ergo | Gemma 4 31B | Leader |
|---|---|---|---|
| Vals Index | 56.2% | Not measured | Only Amazon Ergo measured |
| LiveBench data analysis | 79.1% | 53.3% | Amazon Ergo |
| SAGE (Vals AI) | Not measured | 82.8% | Only Gemma 4 31B measured |
| IFBench | Not measured | 75.6% | Only Gemma 4 31B measured |
| Long context reasoning (AA-LCR) | Not measured | 69.7% | Only Gemma 4 31B measured |
| GDPval-AA | Not measured | 627 | Only Gemma 4 31B measured |
| DTBench | Not measured | 82.7% | Only Gemma 4 31B measured |
| LMCA | Not measured | 39.3% | Only Gemma 4 31B measured |
| 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 | 1434 | Only Gemma 4 31B measured |
| LMArena Text: creative writing | Not measured | 1415 | Only Gemma 4 31B measured |
| LMArena Vision | Not measured | 1279 | Only Gemma 4 31B measured |
| LMArena Text: English | Not measured | 1451 | Only Gemma 4 31B measured |
| LMArena Text: non-English | Not measured | 1431 | Only Gemma 4 31B measured |
| LMArena Text: Chinese | Not measured | 1476 | Only Gemma 4 31B measured |
| LMArena Text: French | Not measured | 1435 | Only Gemma 4 31B measured |
| LMArena Text: Spanish | Not measured | 1444 | Only Gemma 4 31B measured |
| LMArena Text: Russian | Not measured | 1461 | Only Gemma 4 31B measured |
| LMArena Text: Polish | Not measured | 1431 | Only Gemma 4 31B measured |
| LMArena Text: multi-turn | Not measured | 1452 | Only Gemma 4 31B measured |
| LMArena Text: longer queries | Not measured | 1445 | Only Gemma 4 31B measured |
| LMArena Text: writing and language | Not measured | 1431 | Only Gemma 4 31B measured |
| LMArena Text: entertainment and media | Not measured | 1405 | Only Gemma 4 31B measured |
| LMArena Vision: English | Not measured | 1273 | Only Gemma 4 31B measured |
| LMArena Vision: Chinese | Not measured | 1328 | Only Gemma 4 31B measured |
| LMArena Vision: reading text | Not measured | 1285 | Only Gemma 4 31B measured |
| LMArena Vision: humor | Not measured | 1279 | Only Gemma 4 31B measured |
| LMArena Vision: captioning | Not measured | 1209 | Only Gemma 4 31B measured |
| LMArena Vision: recognizing things | Not measured | 1228 | Only Gemma 4 31B measured |
| LMArena Vision: creative writing | Not measured | 1287 | Only Gemma 4 31B measured |
| LMArena Document | Not measured | 1435 | Only Gemma 4 31B measured |
| EQ-Bench 4 | Not measured | 1110 | Only Gemma 4 31B measured |
| Neither model has a result on the other 16 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Amazon Ergo | 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 | Amazon Ergo | Google Gemma 4 31B |
|---|---|---|
| Maker | Amazon | |
| Weights | Open weights | Open weights |
| Released | December 1, 2026 | April 2, 2026 |
| Context window | 1.05M | 262K |
| Input $/Mtok | $1.00 | $0.14 |
| Output $/Mtok | $3.00 | $0.37 |
| Coding index | 65.8 | 21.9 |
| Independent measurements behind it | 4 | 2 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Amazon Ergo better than Gemma 4 31B for coding?
Pick Amazon Ergo for coding: it scores 65.8 on the Vibe Coding Index against 21.9 for Gemma 4 31B. Pick Gemma 4 31B for output tokens 8.1x cheaper ($0.37 vs $3.00 per million).
Which is cheaper, Amazon Ergo or Gemma 4 31B?
Amazon Ergo costs $1.00 per million input tokens and $3.00 per million output tokens; Gemma 4 31B costs $0.14 and $0.37. Cost per solved task is known for neither of them.
Which has the bigger context window, Amazon Ergo or Gemma 4 31B?
Amazon Ergo, with 1.05M tokens against 262K.
How many benchmarks is the Amazon Ergo vs Gemma 4 31B comparison based on?
18 benchmarks have a result for both models as of December 4, 2026. Amazon Ergo's coding index rests on 4 independent benchmarks and Gemma 4 31B's on 2. Where only one model has a result, the page says so instead of naming a winner.