Enter opens the highlighted result. Esc closes.

Gemini 3.1 Flash Lite vs Gemma 4 31B

Gemma 4 31B costs 3.8x less per output token than Gemini 3.1 Flash Lite ($0.40 vs $1.50 per million). Updated October 21, 2026; 14 benchmarks have a result for both.

Gemini 3.1 Flash LiteGoogle
Coding
No data
Overall
No data
Output $/M
$1.50
6
Gemma 4 31BGoogle
Coding
39.0
Overall
42.1
Output $/M
$0.40
8
vs boards won of 14 shared

Gemini 3.1 Flash Lite or Gemma 4 31B: which to pick

Only Gemma 4 31B has a coding score, 39.0 on the Vibe Coding Index; Gemini 3.1 Flash Lite has none, so the two cannot be ranked on coding.

Pick Gemini 3.1 Flash Lite for a larger context window (1.05M against 262K tokens) and work measured by Epoch Capabilities Index or GPQA Diamond (Epoch AI run), where it leads.

Shared results
14
Gemini 3.1 Flash Lite only
2
Gemma 4 31B only
57
Like-for-like categories
6 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
Gemini 3.1 Flash Lite not benchmarked, Gemma 4 31B 39.0 from 2 benchmarks.
Widest category
Agentic work, 34.2 points apart on average over 1 shared benchmark.
Widest single gap
τ²-Bench Telecom: Gemini 3.1 Flash Lite 31.3% against Gemma 4 31B 65.5%, 34.2 points apart on a 0 to 100 scale.
Output price
Gemini 3.1 Flash Lite $1.50 against Gemma 4 31B $0.40 per million output tokens, 3.8x apart.
Context window
Gemini 3.1 Flash Lite 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
CategoryGemini 3.1 Flash LiteBarsGemma 4 31BTies
Coding03
Intelligence10
Agentic work01
Reasoning22
Math10
General22
All shared boards68
CodingLike-for-likeSix of these boards feed the Vibe Coding Index03
Coding benchmarks for Gemini 3.1 Flash Lite and Gemma 4 31B
BenchmarkGemini 3.1 Flash LiteGemma 4 31BLeader
LiveBench codingNot measured49.0%Only Gemma 4 31B measured
LMArena WebDevNot measured1367Only Gemma 4 31B measured
AA Coding IndexNot measured43.4Only Gemma 4 31B measured
SciCode43.4%45.5%Gemma 4 31B
Terminal-Bench Hard (Artificial Analysis run)24.2%36.4%Gemma 4 31B
WeirdML52.2%52.3%Gemma 4 31B
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: ReactNot measured1359Only Gemma 4 31B measured
LMArena WebDev: HTMLNot measured1380Only Gemma 4 31B measured
SciCodeNot measured8.9%Only Gemma 4 31B measured
Neither model has a result on the other 27 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Gemini 3.1 Flash Lite and Gemma 4 31B
BenchmarkGemini 3.1 Flash LiteGemma 4 31BLeader
AA Intelligence IndexNot measured14.7Only Gemma 4 31B measured
Epoch Capabilities Index144.3143.0Gemini 3.1 Flash Lite
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for Gemini 3.1 Flash Lite and Gemma 4 31B
BenchmarkGemini 3.1 Flash LiteGemma 4 31BLeader
AA Agentic IndexNot measured4.2Only Gemma 4 31B measured
LiveBench researchNot measured44.4%Only Gemma 4 31B measured
LiveBench browserNot measured4.0%Only Gemma 4 31B measured
LiveBench long agenticNot measured13.3%Only Gemma 4 31B measured
τ²-Bench Telecom31.3%65.5%Gemma 4 31B
DeepResearch Bench37.3%Not measuredOnly Gemini 3.1 Flash Lite measured
Neither model has a result on the other 35 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index22
Reasoning benchmarks for Gemini 3.1 Flash Lite and Gemma 4 31B
BenchmarkGemini 3.1 Flash LiteGemma 4 31BLeader
LiveBench reasoningNot measured68.3%Only Gemma 4 31B measured
GPQA Diamond (Artificial Analysis run)82.2%85.7%Gemma 4 31B
Humanity's Last Exam (Artificial Analysis run)17.2%23.6%Gemma 4 31B
GPQA Diamond (Epoch AI run)81.8%75.8%Gemini 3.1 Flash Lite
LMArena Text: hard promptsNot measured1448Only Gemma 4 31B measured
LMArena Text: expertNot measured1464Only Gemma 4 31B measured
LMArena Text: hard prompts in EnglishNot measured1456Only Gemma 4 31B measured
LMArena Vision: diagramsNot measured1283Only Gemma 4 31B measured
LMArena Vision: homeworkNot measured1310Only Gemma 4 31B measured
Kagi LLM Benchmark67.2%63.5%Gemini 3.1 Flash Lite
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 Gemini 3.1 Flash Lite and Gemma 4 31B
BenchmarkGemini 3.1 Flash LiteGemma 4 31BLeader
OTIS Mock AIME80.0%73.3%Gemini 3.1 Flash Lite
FrontierMath, tiers 1 to 327.7%Not measuredOnly Gemini 3.1 Flash Lite measured
LMArena Text: mathNot measured1463Only Gemma 4 31B measured
LMArena Text: mathematical workNot measured1465Only Gemma 4 31B measured
Neither model has a result on the other 9 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Knowledge benchmarks for Gemini 3.1 Flash Lite and Gemma 4 31B
BenchmarkGemini 3.1 Flash LiteGemma 4 31BLeader
CaseLaw (Vals AI)Not measured52.6%Only Gemma 4 31B measured
MortgageTax (Vals AI)Not measured61.4%Only Gemma 4 31B measured
SimpleQA VerifiedNot measured10.4%Only Gemma 4 31B measured
LMArena Text: scienceNot measured1457Only Gemma 4 31B measured
LMArena Text: medicine and healthcareNot measured1451Only Gemma 4 31B measured
LMArena Text: legal and governmentNot measured1438Only Gemma 4 31B measured
LMArena Text: business and financeNot measured1430Only Gemma 4 31B measured
FACTS Benchmark SuiteNot measured45.3%Only Gemma 4 31B measured
Neither model has a result on the other 10 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
Web design benchmarks for Gemini 3.1 Flash Lite and Gemma 4 31B
BenchmarkGemini 3.1 Flash LiteGemma 4 31BLeader
LiveBench designNot measured58.4%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 index22
General benchmarks for Gemini 3.1 Flash Lite and Gemma 4 31B
BenchmarkGemini 3.1 Flash LiteGemma 4 31BLeader
LiveBench data analysisNot measured53.3%Only Gemma 4 31B measured
SAGE (Vals AI)Not measured55.0%Only Gemma 4 31B measured
IFBench77.2%75.6%Gemini 3.1 Flash Lite
Long context reasoning (AA-LCR)74.3%69.7%Gemini 3.1 Flash Lite
DTBench76.8%82.7%Gemma 4 31B
LMCA35.0%39.3%Gemma 4 31B
Surface Evolver BenchNot measured30.6%Only Gemma 4 31B measured
LMArena TextNot measured1443Only Gemma 4 31B measured
LMArena Text: instruction followingNot measured1433Only Gemma 4 31B measured
LMArena Text: creative writingNot measured1417Only Gemma 4 31B measured
LMArena VisionNot measured1276Only Gemma 4 31B measured
LMArena Text: EnglishNot measured1451Only Gemma 4 31B measured
LMArena Text: non-EnglishNot measured1430Only Gemma 4 31B measured
LMArena Text: ChineseNot measured1475Only Gemma 4 31B measured
LMArena Text: FrenchNot measured1436Only Gemma 4 31B measured
LMArena Text: SpanishNot measured1442Only Gemma 4 31B measured
LMArena Text: RussianNot measured1460Only Gemma 4 31B measured
LMArena Text: PolishNot measured1433Only Gemma 4 31B measured
LMArena Text: multi-turnNot measured1452Only Gemma 4 31B measured
LMArena Text: longer queriesNot measured1446Only Gemma 4 31B measured
LMArena Text: writing and languageNot measured1432Only Gemma 4 31B measured
LMArena Text: entertainment and mediaNot measured1405Only Gemma 4 31B measured
LMArena Vision: EnglishNot measured1271Only Gemma 4 31B measured
LMArena Vision: ChineseNot measured1326Only Gemma 4 31B measured
LMArena Vision: reading textNot measured1282Only Gemma 4 31B measured
LMArena Vision: humorNot measured1280Only Gemma 4 31B measured
LMArena Vision: captioningNot measured1218Only Gemma 4 31B measured
LMArena Vision: recognizing thingsNot measured1226Only Gemma 4 31B measured
LMArena Vision: creative writingNot measured1285Only Gemma 4 31B measured
LMArena DocumentNot measured1425Only 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 Gemini 3.1 Flash Lite and Gemma 4 31B
BenchmarkGemini 3.1 Flash LiteGemma 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

Gemini 3.1 Flash Lite$0.0010Fits in one request
Gemma 4 31B$0.0003Fits in one request

Gemma 4 31B costs less

Repository review

50K input + 3K output tokens

Gemini 3.1 Flash Lite$0.017Fits in one request
Gemma 4 31B$0.0082Fits in one request

Gemma 4 31B costs less

Agent loop

200K input + 10K output tokens

Gemini 3.1 Flash Lite$0.065Fits 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 Gemini 3.1 Flash Lite and Gemma 4 31B
SpecificationGoogle Gemini 3.1 Flash LiteGoogle Gemma 4 31B
MakerGoogleGoogle
WeightsNo public weights listedOpen weights
ReleasedMay 7, 2026April 2, 2026
Context window1.05M262K
Input $/Mtok$0.25$0.14
Output $/Mtok$1.50$0.40
Coding indexNot benchmarked39.0
Independent measurements behind it02
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 3.1 Flash Lite better than Gemma 4 31B for coding?

Only Gemma 4 31B has a coding score, 39.0 on the Vibe Coding Index; Gemini 3.1 Flash Lite has none, so the two cannot be ranked on coding. Pick Gemini 3.1 Flash Lite for a larger context window (1.05M against 262K tokens) and work measured by Epoch Capabilities Index or GPQA Diamond (Epoch AI run), where it leads.

Which is cheaper, Gemini 3.1 Flash Lite or Gemma 4 31B?

Gemini 3.1 Flash Lite costs $0.25 per million input tokens and $1.50 per million output tokens; Gemma 4 31B costs $0.14 and $0.40. Cost per solved task is known for neither of them.

Which has the bigger context window, Gemini 3.1 Flash Lite or Gemma 4 31B?

Gemini 3.1 Flash Lite, with 1.05M tokens against 262K.

How many benchmarks is the Gemini 3.1 Flash Lite vs Gemma 4 31B comparison based on?

14 benchmarks have a result for both models as of October 21, 2026. Gemini 3.1 Flash Lite's coding index rests on 0 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