Gemini 3.5 Flash vs GLM 5.4
GLM 5.4 leads Gemini 3.5 Flash on coding, 72.7 to 39.8 on the Vibe Coding Index, and GLM 5.4 costs 2.0x less per output token ($4.40 vs $9.00 per million). Updated December 3, 2026; 3 benchmarks have a result for both.
Gemini 3.5 Flash or GLM 5.4: which to pick
Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 39.8 for Gemini 3.5 Flash, though on 2 benchmarks against 4.
Gemini 3.5 Flash is neither cheaper nor larger in context, and leads no benchmark both models were measured on.
- Shared results
- 3
- Gemini 3.5 Flash only
- 116
- 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.
Coding
Vibe Coding Index, six public coding benchmarks
GLM 5.4
GLM 5.4 scores 72.7 against 39.8.
4 and 2 benchmarks behind the scores
Reasoning
GPQA Diamond
No call
Only Gemini 3.5 Flash has a GPQA Diamond result, 92.7%.
Directional only
Knowledge
MMLU Pro
No call
Only Gemini 3.5 Flash has a MMLU Pro result, 89.5%.
Directional only
Web design
Design Arena: websites
No call
Only Gemini 3.5 Flash has a Design Arena: websites result, 1309.
Directional only
Long documents
Listed context window
No call
Both take 1.05M tokens.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GLM 5.4
Gemini 3.5 Flash $0.0060, GLM 5.4 $0.0036 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only Gemini 3.5 Flash has the number, $1.21.
Directional only
At a glance
- Coding index
- Gemini 3.5 Flash 39.8 from 4 benchmarks, GLM 5.4 72.7 from 2 benchmarks.
- Widest category
- Coding, 19.2 points apart on average over 3 shared benchmarks.
- Widest single gap
- LMArena WebDev: Gemini 3.5 Flash 1500 against GLM 5.4 1690, 27.1 points apart on a 0 to 100 scale.
- Output price
- Gemini 3.5 Flash $9.00 against GLM 5.4 $4.40 per million output tokens, 2.0x 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.
| Category | Gemini 3.5 Flash | Bars | GLM 5.4 | Ties |
|---|---|---|---|---|
| Coding | 0 | 3 | ||
| All shared boards | 0 | 3 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index03
| Benchmark | Gemini 3.5 Flash | GLM 5.4 | Leader |
|---|---|---|---|
| LiveBench coding | Not measured | 74.5% | Only GLM 5.4 measured |
| LMArena WebDev | 1500 | 1690 | GLM 5.4 |
| LiveCodeBench (Vals AI) | 87.6% | Not measured | Only Gemini 3.5 Flash measured |
| SWE-bench Verified (Vals AI) | 78.8% | Not measured | Only Gemini 3.5 Flash measured |
| Terminal-Bench 4 (Vals AI) | 6.1% | Not measured | Only Gemini 3.5 Flash measured |
| Vibe Code Bench (Vals AI) | 48.7% | Not measured | Only Gemini 3.5 Flash measured |
| Code migration (Vals AI) | 26.8% | Not measured | Only Gemini 3.5 Flash measured |
| ProgramBench (Vals AI) | 0.0% | Not measured | Only Gemini 3.5 Flash measured |
| Terminal-Bench 2.1 (Vals AI) | 74.2% | Not measured | Only Gemini 3.5 Flash measured |
| SkillsBench (Vals AI) | 52.7% | Not measured | Only Gemini 3.5 Flash measured |
| SciCode | 53.9% | Not measured | Only Gemini 3.5 Flash measured |
| Terminal-Bench Hard (Artificial Analysis run) | 46.2% | Not measured | Only Gemini 3.5 Flash measured |
| Terminal-Bench 4.0 (Artificial Analysis run) | 6.6% | Not measured | Only Gemini 3.5 Flash measured |
| WeirdML | 62.6% | Not measured | Only Gemini 3.5 Flash measured |
| ALE-Bench | 911.0 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: coding | 1493 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: software and IT | 1494 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena WebDev: React | 1494 | 1739 | GLM 5.4 |
| LMArena WebDev: HTML | 1523 | 1675 | GLM 5.4 |
| LMArena WebDev: from an image | 1505 | Not measured | Only Gemini 3.5 Flash measured |
| SciCode | 12.3% | Not measured | Only Gemini 3.5 Flash measured |
| GameBench 2 | 63.4 | Not measured | Only Gemini 3.5 Flash measured |
| ProgramBench | 0.0% | Not measured | Only Gemini 3.5 Flash measured |
| Neither model has a result on the other 29 boards here | |||
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
| Benchmark | Gemini 3.5 Flash | GLM 5.4 | Leader |
|---|---|---|---|
| Epoch Capabilities Index | 155.3 | Not measured | Only Gemini 3.5 Flash measured |
| Neither model has a result on the other 1 board here | |||
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index22 boards, none shared
| Benchmark | Gemini 3.5 Flash | GLM 5.4 | Leader |
|---|---|---|---|
| Design Arena: agents building web apps | 1166 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: agents building full-stack apps | 1243 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: agents building mobile apps | 1167 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: agents building Android apps | 1157 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: agents building Godot games | 1075 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: agents building games | 1127 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: HTML slides | 1044 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: PowerPoint slides | 1144 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: spreadsheets | 1016 | Not measured | Only Gemini 3.5 Flash measured |
| LiveBench research | Not measured | 86.0% | Only GLM 5.4 measured |
| LiveBench browser | Not measured | 64.5% | Only GLM 5.4 measured |
| LiveBench long agentic | Not measured | 41.3% | Only GLM 5.4 measured |
| Finance Agent (Vals AI) | 57.9% | Not measured | Only Gemini 3.5 Flash measured |
| Tax Agent Bench (Vals AI) | 21.6% | Not measured | Only Gemini 3.5 Flash measured |
| Legal Research Bench (Vals AI) | 30.8% | Not measured | Only Gemini 3.5 Flash measured |
| Excel Modeling Benchmark (Vals AI) | 63.5% | Not measured | Only Gemini 3.5 Flash measured |
| Terminal-Bench-Science (Vals AI) | 5.7% | Not measured | Only Gemini 3.5 Flash measured |
| τ²-Bench Telecom | 95.6% | Not measured | Only Gemini 3.5 Flash measured |
| APEX-Agents | 27.5% | Not measured | Only Gemini 3.5 Flash measured |
| Vending-Bench 2 | $5,396 | Not measured | Only Gemini 3.5 Flash measured |
| MCP Atlas | 83.6% | Not measured | Only Gemini 3.5 Flash measured |
| Toolathlon-Verified | 67.3% | Not measured | Only Gemini 3.5 Flash measured |
| Neither model has a result on the other 22 boards here | |||
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index17 boards, none shared
| Benchmark | Gemini 3.5 Flash | GLM 5.4 | Leader |
|---|---|---|---|
| GPQA Diamond | 92.7% | Not measured | Only Gemini 3.5 Flash measured |
| LiveBench reasoning | Not measured | 85.2% | Only GLM 5.4 measured |
| MMMU Pro (Vals AI) | 88.3% | Not measured | Only Gemini 3.5 Flash measured |
| GPQA Diamond (Artificial Analysis run) | 92.2% | Not measured | Only Gemini 3.5 Flash measured |
| Humanity's Last Exam (Artificial Analysis run) | 42.7% | Not measured | Only Gemini 3.5 Flash measured |
| GPQA Diamond (Epoch AI run) | 92.8% | Not measured | Only Gemini 3.5 Flash measured |
| ARC-AGI | 92.5% | Not measured | Only Gemini 3.5 Flash measured |
| ARC-AGI-2 | 72.1% | Not measured | Only Gemini 3.5 Flash measured |
| SimpleBench | 76.7% | Not measured | Only Gemini 3.5 Flash measured |
| Chess puzzles | 45.0% | Not measured | Only Gemini 3.5 Flash measured |
| Mystery game puzzles | 32.0% | Not measured | Only Gemini 3.5 Flash measured |
| EBR-bench | 4.8% | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: hard prompts | 1489 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: expert | 1494 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: hard prompts in English | 1483 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision: diagrams | 1323 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision: homework | 1327 | Not measured | Only Gemini 3.5 Flash measured |
| Neither model has a result on the other 9 boards here | |||
MathDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
| Benchmark | Gemini 3.5 Flash | GLM 5.4 | Leader |
|---|---|---|---|
| OTIS Mock AIME | 95.6% | Not measured | Only Gemini 3.5 Flash measured |
| FrontierMath, tiers 1 to 3 | 62.8% | Not measured | Only Gemini 3.5 Flash measured |
| FrontierMath, tier 4 | 26.8% | Not measured | Only Gemini 3.5 Flash measured |
| ProofBench | 31.0% | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: math | 1505 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: mathematical work | 1496 | Not measured | Only Gemini 3.5 Flash measured |
| MathArena | 23.4% | Not measured | Only Gemini 3.5 Flash measured |
| Neither model has a result on the other 7 boards here | |||
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index12 boards, none shared
| Benchmark | Gemini 3.5 Flash | GLM 5.4 | Leader |
|---|---|---|---|
| MMLU Pro | 89.5% | Not measured | Only Gemini 3.5 Flash measured |
| LegalBench (Vals AI) | 83.6% | Not measured | Only Gemini 3.5 Flash measured |
| CorpFin (Vals AI) | 64.7% | Not measured | Only Gemini 3.5 Flash measured |
| TaxEval (Vals AI) | 74.4% | Not measured | Only Gemini 3.5 Flash measured |
| MortgageTax (Vals AI) | 68.1% | Not measured | Only Gemini 3.5 Flash measured |
| MedCode (Vals AI) | 55.8% | Not measured | Only Gemini 3.5 Flash measured |
| SimpleQA Verified | 66.2% | Not measured | Only Gemini 3.5 Flash measured |
| GeoBench | 85.0% | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: science | 1495 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: medicine and healthcare | 1484 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: legal and government | 1486 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: business and finance | 1467 | Not measured | Only Gemini 3.5 Flash measured |
| Neither model has a result on the other 9 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
| Benchmark | Gemini 3.5 Flash | GLM 5.4 | Leader |
|---|---|---|---|
| Design Arena: websites | 1309 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: UI components | 1259 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: game dev | 1230 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: data viz | 1233 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: 3D | 1207 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: all code categories | 1310 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: SVG | 1297 | Not measured | Only Gemini 3.5 Flash measured |
| Design Arena: ASCII art | 1231 | Not measured | Only Gemini 3.5 Flash measured |
| LiveBench design | Not measured | 74.2% | Only GLM 5.4 measured |
GeneralDirectional onlyPublic boards, shown as published, kept out of the index35 boards, none shared
| Benchmark | Gemini 3.5 Flash | GLM 5.4 | Leader |
|---|---|---|---|
| LiveBench data analysis | Not measured | 72.2% | Only GLM 5.4 measured |
| Public Benefits Bench (Vals AI) | 59.5% | Not measured | Only Gemini 3.5 Flash measured |
| MedScribe (Vals AI) | 76.6% | Not measured | Only Gemini 3.5 Flash measured |
| Vals Multimodal Index | 62.9% | Not measured | Only Gemini 3.5 Flash measured |
| IFBench | 76.3% | Not measured | Only Gemini 3.5 Flash measured |
| Long context reasoning (AA-LCR) | 74.3% | Not measured | Only Gemini 3.5 Flash measured |
| GDPval-AA | 1211 | Not measured | Only Gemini 3.5 Flash measured |
| DTBench | 94.7% | Not measured | Only Gemini 3.5 Flash measured |
| LMCA | 47.1% | Not measured | Only Gemini 3.5 Flash measured |
| Surface Evolver Bench | 58.1% | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text | 1483 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: instruction following | 1467 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: creative writing | 1471 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision | 1307 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: English | 1481 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: non-English | 1477 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: Chinese | 1527 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: German | 1491 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: Japanese | 1492 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: Korean | 1458 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: French | 1491 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: Spanish | 1481 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: Russian | 1494 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: Polish | 1517 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: multi-turn | 1481 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: longer queries | 1483 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: writing and language | 1478 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Text: entertainment and media | 1459 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision: English | 1304 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision: Chinese | 1377 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision: reading text | 1315 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision: humor | 1327 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Vision: creative writing | 1301 | Not measured | Only Gemini 3.5 Flash measured |
| LMArena Document | 1461 | Not measured | Only Gemini 3.5 Flash measured |
| EQ-Bench 4 | 1077 | Not measured | Only Gemini 3.5 Flash measured |
| Neither model has a result on the other 14 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemini 3.5 Flash | GLM 5.4 | Leader |
|---|---|---|---|
| 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
GLM 5.4 costs less
Repository review
50K input + 3K output tokens
GLM 5.4 costs less
Agent loop
200K input + 10K output tokens
GLM 5.4 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.
| Specification | Google Gemini 3.5 Flash | Z.ai GLM 5.4 |
|---|---|---|
| Maker | Z.ai | |
| Weights | No public weights listed | Open weights |
| Released | May 19, 2026 | December 2, 2026 |
| Context window | 1.05M | 1.05M |
| Input $/Mtok | $1.50 | $1.40 |
| Output $/Mtok | $9.00 | $4.40 |
| Coding index | 39.8 | 72.7 |
| Independent measurements behind it | 4 | 2 |
| Cost per solved task | $1.21 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemini 3.5 Flash better than GLM 5.4 for coding?
Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 39.8 for Gemini 3.5 Flash, though on 2 benchmarks against 4. Gemini 3.5 Flash is neither cheaper nor larger in context, and leads no benchmark both models were measured on.
Which is cheaper, Gemini 3.5 Flash or GLM 5.4?
Gemini 3.5 Flash costs $1.50 per million input tokens and $9.00 per million output tokens; GLM 5.4 costs $1.40 and $4.40. Cost per solved task is known for Gemini 3.5 Flash only.
Which has the bigger context window, Gemini 3.5 Flash or GLM 5.4?
Neither: both take 1.05M tokens.
How many benchmarks is the Gemini 3.5 Flash vs GLM 5.4 comparison based on?
3 benchmarks have a result for both models as of December 3, 2026. Gemini 3.5 Flash's coding index rests on 4 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.