Enter opens the highlighted result. Esc closes.

Gemini 3.7 Flash vs GLM 5.4

GLM 5.4 leads Gemini 3.7 Flash on coding, 72.7 to 53.9 on the Vibe Coding Index, at about the same output price ($4.40 vs $3.75 per million). Updated December 3, 2026; 3 benchmarks have a result for both.

Gemini 3.7 FlashGoogle
Coding
53.9
Overall
73.8
Output $/M
$3.75
0
GLM 5.4Z.ai
Coding
72.7
Overall
No data
Output $/M
$4.40
3
vs boards won of 3 shared

Gemini 3.7 Flash or GLM 5.4: which to pick

Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 53.9 for Gemini 3.7 Flash, though on 2 benchmarks against 5.

Pick Gemini 3.7 Flash for output tokens 1.2x cheaper ($3.75 vs $4.40 per million).

Shared results
3
Gemini 3.7 Flash only
108
GLM 5.4 only
7
Like-for-like categories
1 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.7 Flash 53.9 from 5 benchmarks, GLM 5.4 72.7 from 2 benchmarks.
Widest category
Coding, 6.1 points apart on average over 3 shared benchmarks.
Widest single gap
LMArena WebDev: Gemini 3.7 Flash 1588 against GLM 5.4 1690, 14.5 points apart on a 0 to 100 scale.
Output price
Gemini 3.7 Flash $3.75 against GLM 5.4 $4.40 per million output tokens, 1.2x apart.
Context window
Both take 1.05M tokens.

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.7 FlashBarsGLM 5.4Ties
Coding03
All shared boards03
CodingLike-for-likeSix of these boards feed the Vibe Coding Index03
Coding benchmarks for Gemini 3.7 Flash and GLM 5.4
BenchmarkGemini 3.7 FlashGLM 5.4Leader
LiveBench codingNot measured74.5%Only GLM 5.4 measured
LMArena WebDev15881690GLM 5.4
LiveCodeBench (Vals AI)88.7%Not measuredOnly Gemini 3.7 Flash measured
SWE-bench Verified (Vals AI)80.8%Not measuredOnly Gemini 3.7 Flash measured
Terminal-Bench 4 (Vals AI)12.1%Not measuredOnly Gemini 3.7 Flash measured
Vibe Code Bench (Vals AI)70.4%Not measuredOnly Gemini 3.7 Flash measured
Code migration (Vals AI)34.8%Not measuredOnly Gemini 3.7 Flash measured
ProgramBench (Vals AI)0.0%Not measuredOnly Gemini 3.7 Flash measured
IOI (Vals AI)67.8%Not measuredOnly Gemini 3.7 Flash measured
Terminal-Bench 2.1 (Vals AI)77.5%Not measuredOnly Gemini 3.7 Flash measured
SkillsBench (Vals AI)65.9%Not measuredOnly Gemini 3.7 Flash measured
CyberBench (Vals AI)43.8%Not measuredOnly Gemini 3.7 Flash measured
SciCode59.8%Not measuredOnly Gemini 3.7 Flash measured
Terminal-Bench 4.0 (Artificial Analysis run)13.6%Not measuredOnly Gemini 3.7 Flash measured
FrontierCode43.6%Not measuredOnly Gemini 3.7 Flash measured
FrontierSWE20.3%Not measuredOnly Gemini 3.7 Flash measured
MirrorCode41.1%Not measuredOnly Gemini 3.7 Flash measured
ALE-Bench904.3Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: coding1501Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: software and IT1500Not measuredOnly Gemini 3.7 Flash measured
LMArena WebDev: React15841739GLM 5.4
LMArena WebDev: HTML15941675GLM 5.4
LMArena WebDev: from an image1601Not measuredOnly Gemini 3.7 Flash measured
SciCode13.8%Not measuredOnly Gemini 3.7 Flash measured
Terminal-Bench 4.011.2%Not measuredOnly Gemini 3.7 Flash measured
ProgramBench0.0%Not measuredOnly Gemini 3.7 Flash measured
Neither model has a result on the other 26 boards here
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
Intelligence benchmarks for Gemini 3.7 Flash and GLM 5.4
BenchmarkGemini 3.7 FlashGLM 5.4Leader
Epoch Capabilities Index158.2Not measuredOnly Gemini 3.7 Flash measured
Neither model has a result on the other 1 board here
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index19 boards, none shared
Agentic work benchmarks for Gemini 3.7 Flash and GLM 5.4
BenchmarkGemini 3.7 FlashGLM 5.4Leader
Design Arena: agents building web apps1194Not measuredOnly Gemini 3.7 Flash measured
Design Arena: agents building full-stack apps1254Not measuredOnly Gemini 3.7 Flash measured
Design Arena: agents building mobile apps1226Not measuredOnly Gemini 3.7 Flash measured
Design Arena: agents building Android apps1217Not measuredOnly Gemini 3.7 Flash measured
Design Arena: agents building Godot games1232Not measuredOnly Gemini 3.7 Flash measured
Design Arena: agents building games1180Not measuredOnly Gemini 3.7 Flash measured
Design Arena: PowerPoint slides1064Not measuredOnly Gemini 3.7 Flash measured
Design Arena: spreadsheets1043Not measuredOnly Gemini 3.7 Flash measured
LiveBench researchNot measured86.0%Only GLM 5.4 measured
LiveBench browserNot measured64.5%Only GLM 5.4 measured
LiveBench long agenticNot measured41.3%Only GLM 5.4 measured
SREBench (Vals AI)4.6%Not measuredOnly Gemini 3.7 Flash measured
Finance Agent (Vals AI)59.0%Not measuredOnly Gemini 3.7 Flash measured
Tax Agent Bench (Vals AI)22.8%Not measuredOnly Gemini 3.7 Flash measured
Legal Research Bench (Vals AI)34.6%Not measuredOnly Gemini 3.7 Flash measured
Excel Modeling Benchmark (Vals AI)71.3%Not measuredOnly Gemini 3.7 Flash measured
Terminal-Bench-Science (Vals AI)7.1%Not measuredOnly Gemini 3.7 Flash measured
APEX-Agents67.8%Not measuredOnly Gemini 3.7 Flash measured
Remote Labor Index5.0%Not measuredOnly Gemini 3.7 Flash measured
Neither model has a result on the other 25 boards here
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index15 boards, none shared
Reasoning benchmarks for Gemini 3.7 Flash and GLM 5.4
BenchmarkGemini 3.7 FlashGLM 5.4Leader
GPQA Diamond93.9%Not measuredOnly Gemini 3.7 Flash measured
LiveBench reasoningNot measured85.2%Only GLM 5.4 measured
MMMU Pro (Vals AI)89.0%Not measuredOnly Gemini 3.7 Flash measured
GPQA Diamond (Artificial Analysis run)94.5%Not measuredOnly Gemini 3.7 Flash measured
Humanity's Last Exam (Artificial Analysis run)47.9%Not measuredOnly Gemini 3.7 Flash measured
GPQA Diamond (Epoch AI run)94.8%Not measuredOnly Gemini 3.7 Flash measured
ARC-AGI95.5%Not measuredOnly Gemini 3.7 Flash measured
ARC-AGI-284.6%Not measuredOnly Gemini 3.7 Flash measured
Chess puzzles66.0%Not measuredOnly Gemini 3.7 Flash measured
Mystery game puzzles37.0%Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: hard prompts1498Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: expert1516Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: hard prompts in English1489Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision: diagrams1330Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision: homework1327Not measuredOnly Gemini 3.7 Flash measured
Neither model has a result on the other 11 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
Math benchmarks for Gemini 3.7 Flash and GLM 5.4
BenchmarkGemini 3.7 FlashGLM 5.4Leader
OTIS Mock AIME97.2%Not measuredOnly Gemini 3.7 Flash measured
FrontierMath, tiers 1 to 371.6%Not measuredOnly Gemini 3.7 Flash measured
FrontierMath, tier 436.6%Not measuredOnly Gemini 3.7 Flash measured
ProofBench58.0%Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: math1507Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: mathematical work1501Not measuredOnly Gemini 3.7 Flash measured
MathArena23.4%Not measuredOnly Gemini 3.7 Flash measured
Neither model has a result on the other 7 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index10 boards, none shared
Knowledge benchmarks for Gemini 3.7 Flash and GLM 5.4
BenchmarkGemini 3.7 FlashGLM 5.4Leader
MMLU Pro90.1%Not measuredOnly Gemini 3.7 Flash measured
LegalBench (Vals AI)87.3%Not measuredOnly Gemini 3.7 Flash measured
TaxEval (Vals AI)74.7%Not measuredOnly Gemini 3.7 Flash measured
MortgageTax (Vals AI)66.7%Not measuredOnly Gemini 3.7 Flash measured
MedCode (Vals AI)53.4%Not measuredOnly Gemini 3.7 Flash measured
SimpleQA Verified69.2%Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: science1512Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: medicine and healthcare1500Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: legal and government1498Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: business and finance1481Not measuredOnly Gemini 3.7 Flash measured
Neither model has a result on the other 11 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
Web design benchmarks for Gemini 3.7 Flash and GLM 5.4
BenchmarkGemini 3.7 FlashGLM 5.4Leader
Design Arena: websites1343Not measuredOnly Gemini 3.7 Flash measured
Design Arena: UI components1280Not measuredOnly Gemini 3.7 Flash measured
Design Arena: game dev1291Not measuredOnly Gemini 3.7 Flash measured
Design Arena: data viz1304Not measuredOnly Gemini 3.7 Flash measured
Design Arena: 3D1270Not measuredOnly Gemini 3.7 Flash measured
Design Arena: all code categories1351Not measuredOnly Gemini 3.7 Flash measured
Design Arena: SVG1327Not measuredOnly Gemini 3.7 Flash measured
Design Arena: ASCII art1251Not measuredOnly Gemini 3.7 Flash measured
LiveBench designNot measured74.2%Only GLM 5.4 measured
GeneralDirectional onlyPublic boards, shown as published, kept out of the index31 boards, none shared
General benchmarks for Gemini 3.7 Flash and GLM 5.4
BenchmarkGemini 3.7 FlashGLM 5.4Leader
LiveBench data analysisNot measured72.2%Only GLM 5.4 measured
MedScribe (Vals AI)83.9%Not measuredOnly Gemini 3.7 Flash measured
Long context reasoning (AA-LCR)83.0%Not measuredOnly Gemini 3.7 Flash measured
GDPval-AA1404Not measuredOnly Gemini 3.7 Flash measured
DTBench96.8%Not measuredOnly Gemini 3.7 Flash measured
LMCA50.4%Not measuredOnly Gemini 3.7 Flash measured
Furniture assembly26.7%Not measuredOnly Gemini 3.7 Flash measured
LMArena Text1489Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: instruction following1485Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: creative writing1485Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision1314Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: English1485Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: non-English1486Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: Chinese1555Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: German1514Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: Japanese1518Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: Korean1484Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: French1492Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: Spanish1485Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: Russian1513Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: Polish1507Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: multi-turn1487Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: longer queries1495Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: writing and language1489Not measuredOnly Gemini 3.7 Flash measured
LMArena Text: entertainment and media1474Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision: English1308Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision: Chinese1388Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision: reading text1321Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision: humor1300Not measuredOnly Gemini 3.7 Flash measured
LMArena Vision: creative writing1320Not measuredOnly Gemini 3.7 Flash measured
LMArena Document1479Not measuredOnly Gemini 3.7 Flash measured
Neither model has a result on the other 18 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Gemini 3.7 Flash and GLM 5.4
BenchmarkGemini 3.7 FlashGLM 5.4Leader
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.7 Flash$0.0026Fits in one request
GLM 5.4$0.0036Fits in one request

Gemini 3.7 Flash costs less

Repository review

50K input + 3K output tokens

Gemini 3.7 Flash$0.049Fits in one request
GLM 5.4$0.083Fits in one request

Gemini 3.7 Flash costs less

Agent loop

200K input + 10K output tokens

Gemini 3.7 Flash$0.188Fits in one request
GLM 5.4$0.324Fits in one request

Gemini 3.7 Flash 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.7 Flash and GLM 5.4
SpecificationGoogle Gemini 3.7 FlashZ.ai GLM 5.4
MakerGoogleZ.ai
WeightsNo public weights listedOpen weights
ReleasedAugust 13, 2026December 2, 2026
Context window1.05M1.05M
Input $/Mtok$0.75$1.40
Output $/Mtok$3.75$4.40
Coding index53.972.7
Independent measurements behind it52
Cost per solved task$1.78Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Gemini 3.7 Flash better than GLM 5.4 for coding?

Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 53.9 for Gemini 3.7 Flash, though on 2 benchmarks against 5. Pick Gemini 3.7 Flash for output tokens 1.2x cheaper ($3.75 vs $4.40 per million).

Which is cheaper, Gemini 3.7 Flash or GLM 5.4?

Gemini 3.7 Flash costs $0.75 per million input tokens and $3.75 per million output tokens; GLM 5.4 costs $1.40 and $4.40. Cost per solved task is known for Gemini 3.7 Flash only.

Which has the bigger context window, Gemini 3.7 Flash or GLM 5.4?

Neither: both take 1.05M tokens.

How many benchmarks is the Gemini 3.7 Flash vs GLM 5.4 comparison based on?

3 benchmarks have a result for both models as of December 3, 2026. Gemini 3.7 Flash's coding index rests on 5 independent benchmarks and GLM 5.4'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-7-flash-vs-glm-5-4" title="Gemini 3.7 Flash vs GLM 5.4, 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-7-flash-vs-glm-5-4">LLMBenchmark.ai, Gemini 3.7 Flash vs GLM 5.4</a></p>