Enter opens the highlighted result. Esc closes.

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 CarbonGoogle
Coding
86.4
Overall
88.2
Output $/M
$20.00
10
GLM 5.4Z.ai
Coding
72.7
Overall
No data
Output $/M
$4.40
0
vs boards won of 10 shared

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.

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.

Boards won, where both have a result
CategoryGemini 4 CarbonBarsGLM 5.4Ties
Coding40
Agentic work30
Reasoning10
Web design10
General10
All shared boards100
CodingLike-for-likeSix of these boards feed the Vibe Coding Index40
Coding benchmarks for Gemini 4 Carbon and GLM 5.4
BenchmarkGemini 4 CarbonGLM 5.4Leader
LiveBench coding91.0%74.5%Gemini 4 Carbon
LMArena WebDev17601690Gemini 4 Carbon
Terminal-Bench 4 (Vals AI)63.1%Not measuredOnly Gemini 4 Carbon measured
Vibe Code Bench (Vals AI)89.1%Not measuredOnly Gemini 4 Carbon measured
Terminal-Bench 4.0 (Artificial Analysis run)65.2%Not measuredOnly Gemini 4 Carbon measured
FrontierCode 2.040.6%Not measuredOnly Gemini 4 Carbon measured
FrontierSWE61.2%Not measuredOnly Gemini 4 Carbon measured
ALE-Bench2374.7Not measuredOnly Gemini 4 Carbon measured
LMArena Text: coding1563Not measuredOnly Gemini 4 Carbon measured
LMArena Text: software and IT1552Not measuredOnly Gemini 4 Carbon measured
LMArena WebDev: React17881739Gemini 4 Carbon
LMArena WebDev: HTML17391675Gemini 4 Carbon
GameBench 294.9Not measuredOnly Gemini 4 Carbon measured
CursorBench 4.061.5%Not measuredOnly 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
Intelligence benchmarks for Gemini 4 Carbon and GLM 5.4
BenchmarkGemini 4 CarbonGLM 5.4Leader
AA Intelligence Index60.0Not measuredOnly Gemini 4 Carbon measured
Epoch Capabilities Index168.9Not measuredOnly Gemini 4 Carbon measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
Agentic work benchmarks for Gemini 4 Carbon and GLM 5.4
BenchmarkGemini 4 CarbonGLM 5.4Leader
Design Arena: agents building mobile apps1287Not measuredOnly Gemini 4 Carbon measured
Design Arena: spreadsheets1237Not measuredOnly Gemini 4 Carbon measured
LiveBench research92.5%86.0%Gemini 4 Carbon
LiveBench browser80.0%64.5%Gemini 4 Carbon
LiveBench long agentic71.8%41.3%Gemini 4 Carbon
Tax Agent Bench (Vals AI)51.8%Not measuredOnly Gemini 4 Carbon measured
Legal Research Bench (Vals AI)55.8%Not measuredOnly Gemini 4 Carbon measured
Harvey's Legal Agent Benchmark (Vals AI)17.5%Not measuredOnly Gemini 4 Carbon measured
Robo-bench (Vals AI)3.1%Not measuredOnly Gemini 4 Carbon measured
APEX-Agents84.2%Not measuredOnly Gemini 4 Carbon measured
Remote Labor Index20.0%Not measuredOnly Gemini 4 Carbon measured
PostTrainBench41.0%Not measuredOnly Gemini 4 Carbon measured
SpireClimb31.2%Not measuredOnly Gemini 4 Carbon measured
Vending-Bench 2$16,484Not measuredOnly 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
Reasoning benchmarks for Gemini 4 Carbon and GLM 5.4
BenchmarkGemini 4 CarbonGLM 5.4Leader
LiveBench reasoning90.6%85.2%Gemini 4 Carbon
HLE-Diamond (Artificial Analysis run)69.1%Not measuredOnly Gemini 4 Carbon measured
CritPt v2, hard subset (Artificial Analysis run)69.0%Not measuredOnly Gemini 4 Carbon measured
GPQA Diamond (Epoch AI run)96.5%Not measuredOnly Gemini 4 Carbon measured
ARC-AGI98.5%Not measuredOnly Gemini 4 Carbon measured
ARC-AGI-294.2%Not measuredOnly Gemini 4 Carbon measured
SimpleBench92.6%Not measuredOnly Gemini 4 Carbon measured
Chess puzzles78.0%Not measuredOnly Gemini 4 Carbon measured
Mystery game puzzles73.0%Not measuredOnly Gemini 4 Carbon measured
EBR-bench87.6%Not measuredOnly Gemini 4 Carbon measured
LMArena Text: hard prompts1551Not measuredOnly Gemini 4 Carbon measured
LMArena Text: expert1580Not measuredOnly Gemini 4 Carbon measured
LMArena Text: hard prompts in English1547Not measuredOnly Gemini 4 Carbon measured
Humanity's Last Exam (Scale run)63.2%Not measuredOnly 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
Math benchmarks for Gemini 4 Carbon and GLM 5.4
BenchmarkGemini 4 CarbonGLM 5.4Leader
OTIS Mock AIME100.0%Not measuredOnly Gemini 4 Carbon measured
FrontierMath, tiers 1 to 390.5%Not measuredOnly Gemini 4 Carbon measured
FrontierMath, tier 495.1%Not measuredOnly Gemini 4 Carbon measured
LMArena Text: mathematical work1535Not measuredOnly Gemini 4 Carbon measured
MathArena85.4%Not measuredOnly 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
Knowledge benchmarks for Gemini 4 Carbon and GLM 5.4
BenchmarkGemini 4 CarbonGLM 5.4Leader
AA-Omniscience53.5Not measuredOnly Gemini 4 Carbon measured
SimpleQA Verified77.7%Not measuredOnly Gemini 4 Carbon measured
LMArena Text: science1535Not measuredOnly Gemini 4 Carbon measured
LMArena Text: medicine and healthcare1534Not measuredOnly Gemini 4 Carbon measured
LMArena Text: legal and government1541Not measuredOnly Gemini 4 Carbon measured
LMArena Text: business and finance1518Not measuredOnly Gemini 4 Carbon measured
FACTS Benchmark Suite78.4%Not measuredOnly Gemini 4 Carbon measured
PRBench Finance54.0%Not measuredOnly Gemini 4 Carbon measured
PRBench Legal54.0%Not measuredOnly 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
Web design benchmarks for Gemini 4 Carbon and GLM 5.4
BenchmarkGemini 4 CarbonGLM 5.4Leader
Design Arena: websites1379Not measuredOnly Gemini 4 Carbon measured
Design Arena: UI components1366Not measuredOnly Gemini 4 Carbon measured
Design Arena: game dev1408Not measuredOnly Gemini 4 Carbon measured
Design Arena: data viz1328Not measuredOnly Gemini 4 Carbon measured
Design Arena: 3D1467Not measuredOnly Gemini 4 Carbon measured
Design Arena: all code categories1433Not measuredOnly Gemini 4 Carbon measured
Design Arena: SVG1467Not measuredOnly Gemini 4 Carbon measured
LiveBench design80.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
General benchmarks for Gemini 4 Carbon and GLM 5.4
BenchmarkGemini 4 CarbonGLM 5.4Leader
Vals Index68.8%Not measuredOnly Gemini 4 Carbon measured
LiveBench data analysis86.5%72.2%Gemini 4 Carbon
GDPval-AA1733Not measuredOnly Gemini 4 Carbon measured
DTBench98.4%Not measuredOnly Gemini 4 Carbon measured
LMCA65.7%Not measuredOnly Gemini 4 Carbon measured
Furniture assembly77.5%Not measuredOnly Gemini 4 Carbon measured
LMArena Text1539Not measuredOnly Gemini 4 Carbon measured
LMArena Text: instruction following1539Not measuredOnly Gemini 4 Carbon measured
LMArena Text: creative writing1535Not measuredOnly Gemini 4 Carbon measured
LMArena Text: English1531Not measuredOnly Gemini 4 Carbon measured
LMArena Text: non-English1534Not measuredOnly Gemini 4 Carbon measured
LMArena Text: Chinese1616Not measuredOnly Gemini 4 Carbon measured
LMArena Text: Russian1562Not measuredOnly Gemini 4 Carbon measured
LMArena Text: multi-turn1567Not measuredOnly Gemini 4 Carbon measured
LMArena Text: longer queries1549Not measuredOnly Gemini 4 Carbon measured
LMArena Text: writing and language1542Not measuredOnly Gemini 4 Carbon measured
LMArena Text: entertainment and media1528Not measuredOnly Gemini 4 Carbon measured
MultiChallenge85.9%Not measuredOnly 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
Image generation benchmarks for Gemini 4 Carbon and GLM 5.4
BenchmarkGemini 4 CarbonGLM 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 4 Carbon$0.014Fits in one request
GLM 5.4$0.0036Fits in one request

GLM 5.4 costs less

Repository review

50K input + 3K output tokens

Gemini 4 Carbon$0.260Fits in one request
GLM 5.4$0.083Fits in one request

GLM 5.4 costs less

Agent loop

200K input + 10K output tokens

Gemini 4 Carbon$1.00Fits in one request
GLM 5.4$0.324Fits in one request

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.

Specifications of Gemini 4 Carbon and GLM 5.4
SpecificationGoogle Gemini 4 CarbonZ.ai GLM 5.4
MakerGoogleZ.ai
WeightsNo public weights listedOpen weights
ReleasedNovember 10, 2026December 2, 2026
Context window1.05M1.05M
Input $/Mtok$4.00$1.40
Output $/Mtok$20.00$4.40
Coding index86.472.7
Independent measurements behind it42
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter 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.

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-4-carbon-vs-glm-5-4" title="Gemini 4 Carbon 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-4-carbon-vs-glm-5-4">LLMBenchmark.ai, Gemini 4 Carbon vs GLM 5.4</a></p>