Gemini 4 Carbon vs GLM 5.4
Gemini 4 Carbon leads GLM 5.4 on coding, 86.4 to 72.7 on the Vibe Coding Index, and GLM 5.4 costs 4.5x less per output token ($4.40 vs $20.00 per million). Updated December 3, 2026; 10 benchmarks have a result for both.
Gemini 4 Carbon or GLM 5.4: which to pick
Pick Gemini 4 Carbon for coding: it scores 86.4 on the Vibe Coding Index against 72.7 for GLM 5.4.
Pick GLM 5.4 for output tokens 4.5x cheaper ($4.40 vs $20.00 per million).
- Shared results
- 10
- Gemini 4 Carbon only
- 74
- GLM 5.4 only
- 0
- Like-for-like categories
- 5 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
Gemini 4 Carbon
Gemini 4 Carbon scores 86.4 against 72.7.
4 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
No call
Only Gemini 4 Carbon has a AA Intelligence Index result, 60.0.
Directional only
Web design
Design Arena: websites
No call
Only Gemini 4 Carbon has a Design Arena: websites result, 1379.
Directional only
General
Vals Index
No call
Only Gemini 4 Carbon has a Vals Index result, 68.8%.
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 4 Carbon $0.014, GLM 5.4 $0.0036 per turn.
List prices
At a glance
- Coding index
- Gemini 4 Carbon 86.4 from 4 benchmarks, GLM 5.4 72.7 from 2 benchmarks.
- Widest category
- Agentic work, 17.5 points apart on average over 3 shared benchmarks.
- Widest single gap
- LiveBench long agentic: Gemini 4 Carbon 71.8% against GLM 5.4 41.3%, 30.5 points apart on a 0 to 100 scale.
- Output price
- Gemini 4 Carbon $20.00 against GLM 5.4 $4.40 per million output tokens, 4.5x 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 4 Carbon | Bars | GLM 5.4 | Ties |
|---|---|---|---|---|
| Coding | 4 | 0 | ||
| Agentic work | 3 | 0 | ||
| Reasoning | 1 | 0 | ||
| Web design | 1 | 0 | ||
| General | 1 | 0 | ||
| All shared boards | 10 | 0 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index40
| Benchmark | Gemini 4 Carbon | GLM 5.4 | Leader |
|---|---|---|---|
| LiveBench coding | 91.0% | 74.5% | Gemini 4 Carbon |
| LMArena WebDev | 1760 | 1690 | Gemini 4 Carbon |
| Terminal-Bench 4 (Vals AI) | 63.1% | Not measured | Only Gemini 4 Carbon measured |
| Vibe Code Bench (Vals AI) | 89.1% | Not measured | Only Gemini 4 Carbon measured |
| Terminal-Bench 4.0 (Artificial Analysis run) | 65.2% | Not measured | Only Gemini 4 Carbon measured |
| FrontierCode 2.0 | 40.6% | Not measured | Only Gemini 4 Carbon measured |
| FrontierSWE | 61.2% | Not measured | Only Gemini 4 Carbon measured |
| ALE-Bench | 2374.7 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: coding | 1563 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: software and IT | 1552 | Not measured | Only Gemini 4 Carbon measured |
| LMArena WebDev: React | 1788 | 1739 | Gemini 4 Carbon |
| LMArena WebDev: HTML | 1739 | 1675 | Gemini 4 Carbon |
| GameBench 2 | 94.9 | Not measured | Only Gemini 4 Carbon measured |
| CursorBench 4.0 | 61.5% | Not measured | Only Gemini 4 Carbon measured |
| Neither model has a result on the other 38 boards here | |||
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
| Benchmark | Gemini 4 Carbon | GLM 5.4 | Leader |
|---|---|---|---|
| AA Intelligence Index | 60.0 | Not measured | Only Gemini 4 Carbon measured |
| Epoch Capabilities Index | 168.9 | Not measured | Only Gemini 4 Carbon measured |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
| Benchmark | Gemini 4 Carbon | GLM 5.4 | Leader |
|---|---|---|---|
| Design Arena: agents building mobile apps | 1287 | Not measured | Only Gemini 4 Carbon measured |
| Design Arena: spreadsheets | 1237 | Not measured | Only Gemini 4 Carbon measured |
| LiveBench research | 92.5% | 86.0% | Gemini 4 Carbon |
| LiveBench browser | 80.0% | 64.5% | Gemini 4 Carbon |
| LiveBench long agentic | 71.8% | 41.3% | Gemini 4 Carbon |
| Tax Agent Bench (Vals AI) | 51.8% | Not measured | Only Gemini 4 Carbon measured |
| Legal Research Bench (Vals AI) | 55.8% | Not measured | Only Gemini 4 Carbon measured |
| Harvey's Legal Agent Benchmark (Vals AI) | 17.5% | Not measured | Only Gemini 4 Carbon measured |
| Robo-bench (Vals AI) | 3.1% | Not measured | Only Gemini 4 Carbon measured |
| APEX-Agents | 84.2% | Not measured | Only Gemini 4 Carbon measured |
| Remote Labor Index | 20.0% | Not measured | Only Gemini 4 Carbon measured |
| PostTrainBench | 41.0% | Not measured | Only Gemini 4 Carbon measured |
| SpireClimb | 31.2% | Not measured | Only Gemini 4 Carbon measured |
| Vending-Bench 2 | $16,484 | Not measured | Only Gemini 4 Carbon measured |
| Neither model has a result on the other 30 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Gemini 4 Carbon | GLM 5.4 | Leader |
|---|---|---|---|
| LiveBench reasoning | 90.6% | 85.2% | Gemini 4 Carbon |
| HLE-Diamond (Artificial Analysis run) | 69.1% | Not measured | Only Gemini 4 Carbon measured |
| CritPt v2, hard subset (Artificial Analysis run) | 69.0% | Not measured | Only Gemini 4 Carbon measured |
| GPQA Diamond (Epoch AI run) | 96.5% | Not measured | Only Gemini 4 Carbon measured |
| ARC-AGI | 98.5% | Not measured | Only Gemini 4 Carbon measured |
| ARC-AGI-2 | 94.2% | Not measured | Only Gemini 4 Carbon measured |
| SimpleBench | 92.6% | Not measured | Only Gemini 4 Carbon measured |
| Chess puzzles | 78.0% | Not measured | Only Gemini 4 Carbon measured |
| Mystery game puzzles | 73.0% | Not measured | Only Gemini 4 Carbon measured |
| EBR-bench | 87.6% | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: hard prompts | 1551 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: expert | 1580 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: hard prompts in English | 1547 | Not measured | Only Gemini 4 Carbon measured |
| Humanity's Last Exam (Scale run) | 63.2% | Not measured | Only Gemini 4 Carbon measured |
| Neither model has a result on the other 12 boards here | |||
MathDirectional onlyPublic boards, shown as published, kept out of the index5 boards, none shared
| Benchmark | Gemini 4 Carbon | GLM 5.4 | Leader |
|---|---|---|---|
| OTIS Mock AIME | 100.0% | Not measured | Only Gemini 4 Carbon measured |
| FrontierMath, tiers 1 to 3 | 90.5% | Not measured | Only Gemini 4 Carbon measured |
| FrontierMath, tier 4 | 95.1% | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: mathematical work | 1535 | Not measured | Only Gemini 4 Carbon measured |
| MathArena | 85.4% | Not measured | Only Gemini 4 Carbon measured |
| Neither model has a result on the other 9 boards here | |||
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
| Benchmark | Gemini 4 Carbon | GLM 5.4 | Leader |
|---|---|---|---|
| AA-Omniscience | 53.5 | Not measured | Only Gemini 4 Carbon measured |
| SimpleQA Verified | 77.7% | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: science | 1535 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: medicine and healthcare | 1534 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: legal and government | 1541 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: business and finance | 1518 | Not measured | Only Gemini 4 Carbon measured |
| FACTS Benchmark Suite | 78.4% | Not measured | Only Gemini 4 Carbon measured |
| PRBench Finance | 54.0% | Not measured | Only Gemini 4 Carbon measured |
| PRBench Legal | 54.0% | Not measured | Only Gemini 4 Carbon measured |
| Neither model has a result on the other 12 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Gemini 4 Carbon | GLM 5.4 | Leader |
|---|---|---|---|
| Design Arena: websites | 1379 | Not measured | Only Gemini 4 Carbon measured |
| Design Arena: UI components | 1366 | Not measured | Only Gemini 4 Carbon measured |
| Design Arena: game dev | 1408 | Not measured | Only Gemini 4 Carbon measured |
| Design Arena: data viz | 1328 | Not measured | Only Gemini 4 Carbon measured |
| Design Arena: 3D | 1467 | Not measured | Only Gemini 4 Carbon measured |
| Design Arena: all code categories | 1433 | Not measured | Only Gemini 4 Carbon measured |
| Design Arena: SVG | 1467 | Not measured | Only Gemini 4 Carbon measured |
| LiveBench design | 80.2% | 74.2% | Gemini 4 Carbon |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Gemini 4 Carbon | GLM 5.4 | Leader |
|---|---|---|---|
| Vals Index | 68.8% | Not measured | Only Gemini 4 Carbon measured |
| LiveBench data analysis | 86.5% | 72.2% | Gemini 4 Carbon |
| GDPval-AA | 1733 | Not measured | Only Gemini 4 Carbon measured |
| DTBench | 98.4% | Not measured | Only Gemini 4 Carbon measured |
| LMCA | 65.7% | Not measured | Only Gemini 4 Carbon measured |
| Furniture assembly | 77.5% | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text | 1539 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: instruction following | 1539 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: creative writing | 1535 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: English | 1531 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: non-English | 1534 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: Chinese | 1616 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: Russian | 1562 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: multi-turn | 1567 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: longer queries | 1549 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: writing and language | 1542 | Not measured | Only Gemini 4 Carbon measured |
| LMArena Text: entertainment and media | 1528 | Not measured | Only Gemini 4 Carbon measured |
| MultiChallenge | 85.9% | Not measured | Only Gemini 4 Carbon measured |
| Neither model has a result on the other 31 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Gemini 4 Carbon | 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 4 Carbon | Z.ai GLM 5.4 |
|---|---|---|
| Maker | Z.ai | |
| Weights | No public weights listed | Open weights |
| Released | November 10, 2026 | December 2, 2026 |
| Context window | 1.05M | 1.05M |
| Input $/Mtok | $4.00 | $1.40 |
| Output $/Mtok | $20.00 | $4.40 |
| Coding index | 86.4 | 72.7 |
| Independent measurements behind it | 4 | 2 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Gemini 4 Carbon better than GLM 5.4 for coding?
Pick Gemini 4 Carbon for coding: it scores 86.4 on the Vibe Coding Index against 72.7 for GLM 5.4. Pick GLM 5.4 for output tokens 4.5x cheaper ($4.40 vs $20.00 per million).
Which is cheaper, Gemini 4 Carbon or GLM 5.4?
Gemini 4 Carbon costs $4.00 per million input tokens and $20.00 per million output tokens; GLM 5.4 costs $1.40 and $4.40. Cost per solved task is known for neither of them.
Which has the bigger context window, Gemini 4 Carbon or GLM 5.4?
Neither: both take 1.05M tokens.
How many benchmarks is the Gemini 4 Carbon vs GLM 5.4 comparison based on?
10 benchmarks have a result for both models as of December 3, 2026. Gemini 4 Carbon'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.