Enter opens the highlighted result. Esc closes.

Gemini 3.1 Flash Lite Preview vs Gemma 4 31B

Gemma 4 31B leads Gemini 3.1 Flash Lite Preview on coding, 39.0 to 22.7 on the Vibe Coding Index, and Gemma 4 31B costs 3.8x less per output token ($0.40 vs $1.50 per million). Updated October 22, 2026; 47 benchmarks have a result for both.

Gemini 3.1 Flash Lite PreviewGoogle
Coding
22.7
Overall
36.6
Output $/M
$1.50
7
Gemma 4 31BGoogle
Coding
39.0
Overall
42.1
Output $/M
$0.40
40
vs boards won of 47 shared

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

Pick Gemma 4 31B for coding: it scores 39.0 on the Vibe Coding Index against 22.7 for Gemini 3.1 Flash Lite Preview, though on 2 benchmarks against 3.

Pick Gemini 3.1 Flash Lite Preview for a larger context window (1.05M against 262K tokens) and work measured by AA Intelligence Index or CaseLaw (Vals AI), where it leads.

Shared results
47
Gemini 3.1 Flash Lite Preview only
32
Gemma 4 31B only
24
Like-for-like categories
7 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 Preview 22.7 from 3 benchmarks, Gemma 4 31B 39.0 from 2 benchmarks.
Widest category
Coding, 11.0 points apart on average over 8 shared benchmarks.
Widest single gap
LMArena WebDev: React: Gemini 3.1 Flash Lite Preview 1245 against Gemma 4 31B 1359, 19.1 points apart on a 0 to 100 scale.
Output price
Gemini 3.1 Flash Lite Preview $1.50 against Gemma 4 31B $0.40 per million output tokens, 3.8x apart.
Context window
Gemini 3.1 Flash Lite 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.

Boards won, where both have a result
CategoryGemini 3.1 Flash Lite PreviewBarsGemma 4 31BTies
Coding08
Intelligence10
Agentic work01
Reasoning05
Math02
Knowledge34
General320
All shared boards740
CodingLike-for-likeSix of these boards feed the Vibe Coding Index08
Coding benchmarks for Gemini 3.1 Flash Lite Preview and Gemma 4 31B
BenchmarkGemini 3.1 Flash Lite PreviewGemma 4 31BLeader
LiveBench codingNot measured49.0%Only Gemma 4 31B measured
LMArena WebDev12571367Gemma 4 31B
AA Coding Index34.743.4Gemma 4 31B
LiveCodeBench (Vals AI)80.1%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
SWE-bench Verified (Vals AI)62.8%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Vibe Code Bench (Vals AI)0.0%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Code migration (Vals AI)4.6%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
ProgramBench (Vals AI)0.0%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Terminal-Bench 2.1 (Vals AI)34.1%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
SciCodeNot measured45.5%Only Gemma 4 31B measured
Terminal-Bench Hard (Artificial Analysis run)Not measured36.4%Only Gemma 4 31B measured
WeirdMLNot measured52.3%Only Gemma 4 31B measured
ALE-Bench797.7925.5Gemma 4 31B
LMArena Text: coding14001459Gemma 4 31B
LMArena Text: software and IT14131463Gemma 4 31B
LMArena WebDev: React12451359Gemma 4 31B
LMArena WebDev: HTML12761380Gemma 4 31B
LMArena WebDev: from an image1336Not measuredOnly Gemini 3.1 Flash Lite Preview measured
SciCode4.6%8.9%Gemma 4 31B
Neither model has a result on the other 20 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Gemini 3.1 Flash Lite Preview and Gemma 4 31B
BenchmarkGemini 3.1 Flash Lite PreviewGemma 4 31BLeader
AA Intelligence Index15.614.7Gemini 3.1 Flash Lite Preview
Epoch Capabilities IndexNot measured143.0Only Gemma 4 31B measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for Gemini 3.1 Flash Lite Preview and Gemma 4 31B
BenchmarkGemini 3.1 Flash Lite PreviewGemma 4 31BLeader
AA Agentic Index1.64.2Gemma 4 31B
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
Finance Agent (Vals AI)30.0%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Tax Agent Bench (Vals AI)3.1%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Legal Research Bench (Vals AI)3.4%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Excel Modeling Benchmark (Vals AI)8.6%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
τ²-Bench TelecomNot measured65.5%Only Gemma 4 31B measured
Neither model has a result on the other 32 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index05
Reasoning benchmarks for Gemini 3.1 Flash Lite Preview and Gemma 4 31B
BenchmarkGemini 3.1 Flash Lite PreviewGemma 4 31BLeader
GPQA Diamond81.1%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LiveBench reasoningNot measured68.3%Only Gemma 4 31B measured
MMMU Pro (Vals AI)82.5%Not measuredOnly Gemini 3.1 Flash Lite Preview 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
GPQA Diamond (Epoch AI run)Not measured75.8%Only Gemma 4 31B measured
LMArena Text: hard prompts14071448Gemma 4 31B
LMArena Text: expert13981464Gemma 4 31B
LMArena Text: hard prompts in English14031456Gemma 4 31B
LMArena Vision: diagrams12421283Gemma 4 31B
LMArena Vision: homework12711310Gemma 4 31B
Kagi LLM BenchmarkNot measured63.5%Only Gemma 4 31B measured
Neither model has a result on the other 10 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index02
Math benchmarks for Gemini 3.1 Flash Lite Preview and Gemma 4 31B
BenchmarkGemini 3.1 Flash Lite PreviewGemma 4 31BLeader
AIME83.3%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
OTIS Mock AIMENot measured73.3%Only Gemma 4 31B measured
LMArena Text: math14281463Gemma 4 31B
LMArena Text: mathematical work14171465Gemma 4 31B
Neither model has a result on the other 9 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index34
Knowledge benchmarks for Gemini 3.1 Flash Lite Preview and Gemma 4 31B
BenchmarkGemini 3.1 Flash Lite PreviewGemma 4 31BLeader
MMLU Pro86.2%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LegalBench (Vals AI)83.8%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
CaseLaw (Vals AI)55.0%52.6%Gemini 3.1 Flash Lite Preview
CorpFin (Vals AI)59.4%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
TaxEval (Vals AI)71.8%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
MortgageTax (Vals AI)68.0%61.4%Gemini 3.1 Flash Lite Preview
MedCode (Vals AI)47.6%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
SimpleQA VerifiedNot measured10.4%Only Gemma 4 31B measured
LMArena Text: science14251457Gemma 4 31B
LMArena Text: medicine and healthcare14281451Gemma 4 31B
LMArena Text: legal and government14181438Gemma 4 31B
LMArena Text: business and finance13891430Gemma 4 31B
FACTS Benchmark Suite51.4%45.3%Gemini 3.1 Flash Lite Preview
Neither model has a result on the other 5 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
Web design benchmarks for Gemini 3.1 Flash Lite Preview and Gemma 4 31B
BenchmarkGemini 3.1 Flash Lite PreviewGemma 4 31BLeader
Design Arena: websites1082Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: UI components1069Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: game dev1029Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: data viz1045Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: 3D1047Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: all code categories1072Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: SVG1052Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: ASCII art1167Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LiveBench designNot measured58.4%Only Gemma 4 31B measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index320
General benchmarks for Gemini 3.1 Flash Lite Preview and Gemma 4 31B
BenchmarkGemini 3.1 Flash Lite PreviewGemma 4 31BLeader
LiveBench data analysisNot measured53.3%Only Gemma 4 31B measured
SAGE (Vals AI)49.5%55.0%Gemma 4 31B
MedScribe (Vals AI)63.9%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Vals Multimodal Index41.4%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
IFBenchNot measured75.6%Only Gemma 4 31B measured
Long context reasoning (AA-LCR)Not measured69.7%Only 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 Text14161443Gemma 4 31B
LMArena Text: instruction following13771433Gemma 4 31B
LMArena Text: creative writing14011417Gemma 4 31B
LMArena Vision12401276Gemma 4 31B
LMArena Text: English14141451Gemma 4 31B
LMArena Text: non-English14101430Gemma 4 31B
LMArena Text: Chinese14601475Gemma 4 31B
LMArena Text: German1430Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Text: Japanese1413Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Text: Korean1392Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Text: French14241436Gemma 4 31B
LMArena Text: Spanish14211442Gemma 4 31B
LMArena Text: Russian14201460Gemma 4 31B
LMArena Text: Polish14431433Gemini 3.1 Flash Lite Preview
LMArena Text: multi-turn14171452Gemma 4 31B
LMArena Text: longer queries13941446Gemma 4 31B
LMArena Text: writing and language14081432Gemma 4 31B
LMArena Text: entertainment and media13861405Gemma 4 31B
LMArena Vision: English12321271Gemma 4 31B
LMArena Vision: Chinese12781326Gemma 4 31B
LMArena Vision: reading text12461282Gemma 4 31B
LMArena Vision: humor12661280Gemma 4 31B
LMArena Vision: captioning12591218Gemini 3.1 Flash Lite Preview
LMArena Vision: recognizing things13081226Gemini 3.1 Flash Lite Preview
LMArena Vision: creative writing12481285Gemma 4 31B
LMArena DocumentNot measured1425Only 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
Image generation benchmarks for Gemini 3.1 Flash Lite Preview and Gemma 4 31B
BenchmarkGemini 3.1 Flash Lite PreviewGemma 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 Preview$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 Preview$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 Preview$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 Preview and Gemma 4 31B
SpecificationGoogle Gemini 3.1 Flash Lite PreviewGoogle Gemma 4 31B
MakerGoogleGoogle
WeightsNo public weights listedOpen weights
ReleasedMarch 3, 2026April 2, 2026
Context window1.05M262K
Input $/Mtok$0.25$0.14
Output $/Mtok$1.50$0.40
Coding index22.739.0
Independent measurements behind it32
Cost per solved task$0.18Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick Gemma 4 31B for coding: it scores 39.0 on the Vibe Coding Index against 22.7 for Gemini 3.1 Flash Lite Preview, though on 2 benchmarks against 3. Pick Gemini 3.1 Flash Lite Preview for a larger context window (1.05M against 262K tokens) and work measured by AA Intelligence Index or CaseLaw (Vals AI), where it leads.

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

Gemini 3.1 Flash Lite Preview 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 Gemini 3.1 Flash Lite Preview only.

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

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

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

47 benchmarks have a result for both models as of October 22, 2026. Gemini 3.1 Flash Lite Preview's coding index rests on 3 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/gemini-3-1-flash-lite-preview-vs-gemma-4-31b-it" title="Gemini 3.1 Flash Lite Preview 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/gemini-3-1-flash-lite-preview-vs-gemma-4-31b-it">LLMBenchmark.ai, Gemini 3.1 Flash Lite Preview vs Gemma 4 31B</a></p>