Enter opens the highlighted result. Esc closes.

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 ErgoAmazon
Coding
65.8
Overall
64.7
Output $/M
$3.00
17
Gemma 4 31BGoogle
Coding
21.9
Overall
35.6
Output $/M
$0.37
0
vs boards won of 18 shared, 1 tied

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.

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.

Boards won, where both have a result
CategoryAmazon ErgoBarsGemma 4 31BTies
Coding50
Intelligence10
Agentic work201 tie
Reasoning40
Math10
Knowledge20
Web design10
General10
All shared boards1701 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index50
Coding benchmarks for Amazon Ergo and Gemma 4 31B
BenchmarkAmazon ErgoGemma 4 31BLeader
LiveBench coding84.4%20.3%Amazon Ergo
LMArena WebDev16121371Amazon Ergo
Terminal-Bench 4 (Vals AI)42.9%Not measuredOnly Amazon Ergo measured
Vibe Code Bench (Vals AI)66.0%Not measuredOnly Amazon Ergo measured
SciCodeNot measured45.5%Only Gemma 4 31B measured
Terminal-Bench Hard (Artificial Analysis run)Not measured36.4%Only Gemma 4 31B measured
Terminal-Bench 4.0 (Artificial Analysis run)Not measured0.0%Only Gemma 4 31B measured
FrontierCode 2.028.8%0.0%Amazon Ergo
WeirdMLNot measured52.3%Only Gemma 4 31B measured
ALE-BenchNot measured925.5Only Gemma 4 31B measured
LMArena Text: codingNot measured1459Only Gemma 4 31B measured
LMArena Text: software and ITNot measured1463Only Gemma 4 31B measured
LMArena WebDev: React16361363Amazon Ergo
LMArena WebDev: HTML15861380Amazon Ergo
SciCodeNot measured8.9%Only Gemma 4 31B measured
GameBench 2Not measured34.9Only 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
Intelligence benchmarks for Amazon Ergo and Gemma 4 31B
BenchmarkAmazon ErgoGemma 4 31BLeader
AA Intelligence Index38.04.0Amazon Ergo
Epoch Capabilities IndexNot measured144.1Only Gemma 4 31B measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index20
Agentic work benchmarks for Amazon Ergo and Gemma 4 31B
BenchmarkAmazon ErgoGemma 4 31BLeader
LiveBench research81.7%38.1%Amazon Ergo
LiveBench browser0.0%0.0%Tie
LiveBench long agentic43.9%8.5%Amazon Ergo
Tax Agent Bench (Vals AI)23.7%Not measuredOnly Amazon Ergo measured
Legal Research Bench (Vals AI)33.6%Not measuredOnly Amazon Ergo measured
Harvey's Legal Agent Benchmark (Vals AI)12.1%Not measuredOnly Amazon Ergo measured
BioMysteryBench (Vals AI)64.8%Not measuredOnly Amazon Ergo measured
Terminal-Bench-Science (Vals AI)15.7%Not measuredOnly Amazon Ergo measured
Vals Science Index31.8%Not measuredOnly Amazon Ergo measured
τ²-Bench TelecomNot measured65.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
Reasoning benchmarks for Amazon Ergo and Gemma 4 31B
BenchmarkAmazon ErgoGemma 4 31BLeader
LiveBench reasoning87.7%68.3%Amazon Ergo
MysteryMechanism (Vals AI)14.9%Not measuredOnly Amazon Ergo measured
GPQA Diamond (Artificial Analysis run)Not measured85.7%Only Gemma 4 31B measured
Humanity's Last Exam (Artificial Analysis run)Not measured23.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 puzzles41.0%Not measuredOnly Amazon Ergo measured
LMArena Text: hard promptsNot measured1448Only Gemma 4 31B measured
LMArena Text: expertNot measured1465Only Gemma 4 31B measured
LMArena Text: hard prompts in EnglishNot measured1456Only Gemma 4 31B measured
LMArena Vision: diagramsNot measured1287Only Gemma 4 31B measured
LMArena Vision: homeworkNot measured1310Only Gemma 4 31B measured
Kagi LLM BenchmarkNot measured63.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
Math benchmarks for Amazon Ergo and Gemma 4 31B
BenchmarkAmazon ErgoGemma 4 31BLeader
OTIS Mock AIME97.2%73.3%Amazon Ergo
FrontierMath, tiers 1 to 369.8%Not measuredOnly Amazon Ergo measured
FrontierMath, tier 451.2%Not measuredOnly Amazon Ergo measured
LMArena Text: mathNot measured1463Only Gemma 4 31B measured
LMArena Text: mathematical workNot measured1464Only 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
Knowledge benchmarks for Amazon Ergo and Gemma 4 31B
BenchmarkAmazon ErgoGemma 4 31BLeader
CaseLaw (Vals AI)Not measured52.6%Only Gemma 4 31B measured
MortgageTax (Vals AI)Not measured61.4%Only Gemma 4 31B measured
AA-Omniscience19.1-48.5Amazon Ergo
SimpleQA Verified39.3%10.4%Amazon Ergo
LMArena Text: scienceNot measured1456Only Gemma 4 31B measured
LMArena Text: medicine and healthcareNot measured1450Only Gemma 4 31B measured
LMArena Text: legal and governmentNot measured1438Only Gemma 4 31B measured
LMArena Text: business and financeNot measured1431Only Gemma 4 31B measured
FACTS Benchmark SuiteNot measured50.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
Web design benchmarks for Amazon Ergo and Gemma 4 31B
BenchmarkAmazon ErgoGemma 4 31BLeader
LiveBench design70.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
General benchmarks for Amazon Ergo and Gemma 4 31B
BenchmarkAmazon ErgoGemma 4 31BLeader
Vals Index56.2%Not measuredOnly Amazon Ergo measured
LiveBench data analysis79.1%53.3%Amazon Ergo
SAGE (Vals AI)Not measured82.8%Only Gemma 4 31B measured
IFBenchNot measured75.6%Only Gemma 4 31B measured
Long context reasoning (AA-LCR)Not measured69.7%Only Gemma 4 31B measured
GDPval-AANot measured627Only Gemma 4 31B measured
DTBenchNot measured82.7%Only Gemma 4 31B measured
LMCANot measured39.3%Only Gemma 4 31B measured
Surface Evolver BenchNot measured30.6%Only Gemma 4 31B measured
LMArena TextNot measured1443Only Gemma 4 31B measured
LMArena Text: instruction followingNot measured1434Only Gemma 4 31B measured
LMArena Text: creative writingNot measured1415Only Gemma 4 31B measured
LMArena VisionNot measured1279Only Gemma 4 31B measured
LMArena Text: EnglishNot measured1451Only Gemma 4 31B measured
LMArena Text: non-EnglishNot measured1431Only Gemma 4 31B measured
LMArena Text: ChineseNot measured1476Only Gemma 4 31B measured
LMArena Text: FrenchNot measured1435Only Gemma 4 31B measured
LMArena Text: SpanishNot measured1444Only Gemma 4 31B measured
LMArena Text: RussianNot measured1461Only Gemma 4 31B measured
LMArena Text: PolishNot measured1431Only Gemma 4 31B measured
LMArena Text: multi-turnNot measured1452Only Gemma 4 31B measured
LMArena Text: longer queriesNot measured1445Only Gemma 4 31B measured
LMArena Text: writing and languageNot measured1431Only Gemma 4 31B measured
LMArena Text: entertainment and mediaNot measured1405Only Gemma 4 31B measured
LMArena Vision: EnglishNot measured1273Only Gemma 4 31B measured
LMArena Vision: ChineseNot measured1328Only Gemma 4 31B measured
LMArena Vision: reading textNot measured1285Only Gemma 4 31B measured
LMArena Vision: humorNot measured1279Only Gemma 4 31B measured
LMArena Vision: captioningNot measured1209Only Gemma 4 31B measured
LMArena Vision: recognizing thingsNot measured1228Only Gemma 4 31B measured
LMArena Vision: creative writingNot measured1287Only Gemma 4 31B measured
LMArena DocumentNot measured1435Only Gemma 4 31B measured
EQ-Bench 4Not measured1110Only 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
Image generation benchmarks for Amazon Ergo and Gemma 4 31B
BenchmarkAmazon ErgoGemma 4 31BLeader
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

Amazon Ergo$0.0025Fits in one request
Gemma 4 31B$0.0003Fits in one request

Gemma 4 31B costs less

Repository review

50K input + 3K output tokens

Amazon Ergo$0.059Fits in one request
Gemma 4 31B$0.0081Fits in one request

Gemma 4 31B costs less

Agent loop

200K input + 10K output tokens

Amazon Ergo$0.230Fits in one request
Gemma 4 31B$0.032Fits in one request

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.

Specifications of Amazon Ergo and Gemma 4 31B
SpecificationAmazon ErgoGoogle Gemma 4 31B
MakerAmazonGoogle
WeightsOpen weightsOpen weights
ReleasedDecember 1, 2026April 2, 2026
Context window1.05M262K
Input $/Mtok$1.00$0.14
Output $/Mtok$3.00$0.37
Coding index65.821.9
Independent measurements behind it42
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter 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.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/amazon-ergo-1-0-vs-gemma-4-31b-it" title="Amazon Ergo vs Gemma 4 31B, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/amazon-ergo-1-0-vs-gemma-4-31b-it">LLMBenchmark.ai, Amazon Ergo vs Gemma 4 31B</a></p>