Enter opens the highlighted result. Esc closes.

Gemini 3.1 Flash Lite Preview vs GLM 5

GLM 5 leads Gemini 3.1 Flash Lite Preview on coding, 41.7 to 22.7 on the Vibe Coding Index, and Gemini 3.1 Flash Lite Preview costs 2.1x less per output token ($1.50 vs $3.20 per million). Updated October 22, 2026; 51 benchmarks have a result for both.

Gemini 3.1 Flash Lite PreviewGoogle
Coding
22.7
Overall
36.6
Output $/M
$1.50
6
GLM 5Z.ai
Coding
41.7
Overall
54.3
Output $/M
$3.20
45
vs boards won of 51 shared

Gemini 3.1 Flash Lite Preview or GLM 5: which to pick

Pick GLM 5 for coding: it scores 41.7 on the Vibe Coding Index against 22.7 for Gemini 3.1 Flash Lite Preview.

Pick Gemini 3.1 Flash Lite Preview for output tokens 2.1x cheaper ($1.50 vs $3.20 per million) and a lower cost per solved task ($0.18 against $0.63).

Shared results
51
Gemini 3.1 Flash Lite Preview only
28
GLM 5 only
25
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, GLM 5 41.7 from 3 benchmarks.
Widest category
Web design, 18.8 points apart on average over 8 shared benchmarks.
Widest single gap
LMArena WebDev: React: Gemini 3.1 Flash Lite Preview 1245 against GLM 5 1424, 29.9 points apart on a 0 to 100 scale.
Output price
Gemini 3.1 Flash Lite Preview $1.50 against GLM 5 $3.20 per million output tokens, 2.1x apart.
Context window
Gemini 3.1 Flash Lite Preview takes 1.05M tokens, GLM 5 205K.

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 PreviewBarsGLM 5Ties
Coding18
Intelligence01
Reasoning04
Math03
Knowledge36
Web design17
General116
All shared boards645
CodingLike-for-likeSix of these boards feed the Vibe Coding Index18
Coding benchmarks for Gemini 3.1 Flash Lite Preview and GLM 5
BenchmarkGemini 3.1 Flash Lite PreviewGLM 5Leader
SWE-bench VerifiedNot measured72.8%Only GLM 5 measured
SWE-bench MultilingualNot measured69.7%Only GLM 5 measured
LMArena WebDev12571435GLM 5
AA Coding Index34.7Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LiveCodeBench (Vals AI)80.1%81.9%GLM 5
SWE-bench Verified (Vals AI)62.8%71.4%GLM 5
Vibe Code Bench (Vals AI)0.0%23.4%GLM 5
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
Terminal-Bench Hard (Artificial Analysis run)Not measured43.2%Only GLM 5 measured
Terminal-BenchNot measured52.4%Only GLM 5 measured
WeirdMLNot measured48.2%Only GLM 5 measured
ALE-Bench797.7765.6Gemini 3.1 Flash Lite Preview
LMArena Text: coding14001461GLM 5
LMArena Text: software and IT14131460GLM 5
LMArena WebDev: React12451424GLM 5
LMArena WebDev: HTML12761450GLM 5
LMArena WebDev: from an image1336Not measuredOnly Gemini 3.1 Flash Lite Preview measured
SciCode4.6%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Neither model has a result on the other 19 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Gemini 3.1 Flash Lite Preview and GLM 5
BenchmarkGemini 3.1 Flash Lite PreviewGLM 5Leader
AA Intelligence Index15.627.9GLM 5
Epoch Capabilities IndexNot measured145.8Only GLM 5 measured
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index12 boards, none shared
Agentic work benchmarks for Gemini 3.1 Flash Lite Preview and GLM 5
BenchmarkGemini 3.1 Flash Lite PreviewGLM 5Leader
AA Agentic Index1.6Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Design Arena: agents building full-stack appsNot measured1123Only GLM 5 measured
Design Arena: agents building mobile appsNot measured1136Only GLM 5 measured
Design Arena: agents building Android appsNot measured1147Only GLM 5 measured
Design Arena: agents building Godot gamesNot measured1144Only GLM 5 measured
Design Arena: HTML slidesNot measured1098Only GLM 5 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 measured98.2%Only GLM 5 measured
Vending-Bench 2Not measured$4,432Only GLM 5 measured
Neither model has a result on the other 29 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index04
Reasoning benchmarks for Gemini 3.1 Flash Lite Preview and GLM 5
BenchmarkGemini 3.1 Flash Lite PreviewGLM 5Leader
GPQA Diamond81.1%83.3%GLM 5
MMMU Pro (Vals AI)82.5%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
GPQA Diamond (Artificial Analysis run)Not measured82.0%Only GLM 5 measured
Humanity's Last Exam (Artificial Analysis run)Not measured29.3%Only GLM 5 measured
GPQA Diamond (Epoch AI run)Not measured87.8%Only GLM 5 measured
ARC-AGINot measured44.7%Only GLM 5 measured
ARC-AGI-2Not measured4.9%Only GLM 5 measured
SimpleBenchNot measured53.2%Only GLM 5 measured
LMArena Text: hard prompts14071452GLM 5
LMArena Text: expert13981454GLM 5
LMArena Text: hard prompts in English14031460GLM 5
LMArena Vision: diagrams1242Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Vision: homework1271Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Kagi LLM BenchmarkNot measured75.0%Only GLM 5 measured
Neither model has a result on the other 8 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index03
Math benchmarks for Gemini 3.1 Flash Lite Preview and GLM 5
BenchmarkGemini 3.1 Flash Lite PreviewGLM 5Leader
AIME83.3%91.7%GLM 5
OTIS Mock AIMENot measured80.0%Only GLM 5 measured
LMArena Text: math14281440GLM 5
LMArena Text: mathematical work14171451GLM 5
Neither model has a result on the other 9 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index36
Knowledge benchmarks for Gemini 3.1 Flash Lite Preview and GLM 5
BenchmarkGemini 3.1 Flash Lite PreviewGLM 5Leader
MMLU Pro86.2%86.0%Gemini 3.1 Flash Lite Preview
LegalBench (Vals AI)83.8%84.1%GLM 5
CaseLaw (Vals AI)55.0%52.5%Gemini 3.1 Flash Lite Preview
CorpFin (Vals AI)59.4%62.9%GLM 5
TaxEval (Vals AI)71.8%70.0%Gemini 3.1 Flash Lite Preview
MortgageTax (Vals AI)68.0%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
MedQA (Vals AI)Not measured94.3%Only GLM 5 measured
MedCode (Vals AI)47.6%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Text: science14251460GLM 5
LMArena Text: medicine and healthcare14281455GLM 5
LMArena Text: legal and government14181453GLM 5
LMArena Text: business and finance13891430GLM 5
FACTS Benchmark Suite51.4%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index17
Web design benchmarks for Gemini 3.1 Flash Lite Preview and GLM 5
BenchmarkGemini 3.1 Flash Lite PreviewGLM 5Leader
Design Arena: websites10821247GLM 5
Design Arena: UI components10691227GLM 5
Design Arena: game dev10291234GLM 5
Design Arena: data viz10451228GLM 5
Design Arena: 3D10471228GLM 5
Design Arena: all code categories10721246GLM 5
Design Arena: SVG10521168GLM 5
Design Arena: ASCII art11671147Gemini 3.1 Flash Lite Preview
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index116
General benchmarks for Gemini 3.1 Flash Lite Preview and GLM 5
BenchmarkGemini 3.1 Flash Lite PreviewGLM 5Leader
SAGE (Vals AI)49.5%Not measuredOnly Gemini 3.1 Flash Lite Preview measured
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 measured72.3%Only GLM 5 measured
Long context reasoning (AA-LCR)Not measured75.7%Only GLM 5 measured
CL-benchNot measured18.7%Only GLM 5 measured
LMArena Text14161446GLM 5
LMArena Text: instruction following13771428GLM 5
LMArena Text: creative writing14011438GLM 5
LMArena Vision1240Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Text: English14141458GLM 5
LMArena Text: non-English14101430GLM 5
LMArena Text: Chinese14601511GLM 5
LMArena Text: German14301447GLM 5
LMArena Text: Japanese14131416GLM 5
LMArena Text: Korean13921423GLM 5
LMArena Text: French14241456GLM 5
LMArena Text: Spanish14211454GLM 5
LMArena Text: Russian14201436GLM 5
LMArena Text: Polish14431434Gemini 3.1 Flash Lite Preview
LMArena Text: multi-turn14171456GLM 5
LMArena Text: longer queries13941446GLM 5
LMArena Text: writing and language14081437GLM 5
LMArena Text: entertainment and media13861426GLM 5
LMArena Vision: English1232Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Vision: Chinese1278Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Vision: reading text1246Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Vision: humor1266Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Vision: captioning1259Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Vision: recognizing things1308Not measuredOnly Gemini 3.1 Flash Lite Preview measured
LMArena Vision: creative writing1248Not measuredOnly Gemini 3.1 Flash Lite Preview measured
Neither model has a result on the other 15 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 GLM 5
BenchmarkGemini 3.1 Flash Lite PreviewGLM 5Leader
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
GLM 5$0.0026Fits in one request

Gemini 3.1 Flash Lite Preview costs less

Repository review

50K input + 3K output tokens

Gemini 3.1 Flash Lite Preview$0.017Fits in one request
GLM 5$0.060Fits in one request

Gemini 3.1 Flash Lite Preview costs less

Agent loop

200K input + 10K output tokens

Gemini 3.1 Flash Lite Preview$0.065Fits in one request
GLM 5$0.232Exceeds the context window

Gemini 3.1 Flash Lite Preview 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 GLM 5
SpecificationGoogle Gemini 3.1 Flash Lite PreviewZ.ai GLM 5
MakerGoogleZ.ai
WeightsNo public weights listedOpen weights
ReleasedMarch 3, 2026February 11, 2026
Context window1.05M205K
Input $/Mtok$0.25$1.00
Output $/Mtok$1.50$3.20
Coding index22.741.7
Independent measurements behind it33
Cost per solved task$0.18$0.63
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 3.1 Flash Lite Preview better than GLM 5 for coding?

Pick GLM 5 for coding: it scores 41.7 on the Vibe Coding Index against 22.7 for Gemini 3.1 Flash Lite Preview. Pick Gemini 3.1 Flash Lite Preview for output tokens 2.1x cheaper ($1.50 vs $3.20 per million) and a lower cost per solved task ($0.18 against $0.63).

Which is cheaper, Gemini 3.1 Flash Lite Preview or GLM 5?

Gemini 3.1 Flash Lite Preview costs $0.25 per million input tokens and $1.50 per million output tokens; GLM 5 costs $1.00 and $3.20. Per solved SWE-bench Verified task, Gemini 3.1 Flash Lite Preview costs $0.18 and GLM 5 $0.63.

Which has the bigger context window, Gemini 3.1 Flash Lite Preview or GLM 5?

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

How many benchmarks is the Gemini 3.1 Flash Lite Preview vs GLM 5 comparison based on?

51 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 GLM 5's on 3. 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-glm-5" title="Gemini 3.1 Flash Lite Preview vs GLM 5, 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-glm-5">LLMBenchmark.ai, Gemini 3.1 Flash Lite Preview vs GLM 5</a></p>