Enter opens the highlighted result. Esc closes.

Claude Opus 4.8 vs GLM 5.4

GLM 5.4 leads Claude Opus 4.8 on coding, 72.7 to 62.8 on the Vibe Coding Index, and GLM 5.4 costs 5.7x less per output token ($4.40 vs $25.00 per million). Updated December 3, 2026; 3 benchmarks have a result for both.

Claude Opus 4.8Anthropic
Coding
62.8
Overall
73.3
Output $/M
$25.00
0
GLM 5.4Z.ai
Coding
72.7
Overall
No data
Output $/M
$4.40
3
vs boards won of 3 shared

Claude Opus 4.8 or GLM 5.4: which to pick

Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 62.8 for Claude Opus 4.8, though on 2 benchmarks against 5.

Claude Opus 4.8 is neither cheaper nor larger in context, and leads no benchmark both models were measured on.

Shared results
3
Claude Opus 4.8 only
132
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
Claude Opus 4.8 62.8 from 5 benchmarks, GLM 5.4 72.7 from 2 benchmarks.
Widest category
Coding, 12.1 points apart on average over 3 shared benchmarks.
Widest single gap
LMArena WebDev: Claude Opus 4.8 1555 against GLM 5.4 1690, 19.2 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.8 $25.00 against GLM 5.4 $4.40 per million output tokens, 5.7x apart.
Context window
Claude Opus 4.8 takes 1M tokens, GLM 5.4 1.05M.

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
CategoryClaude Opus 4.8BarsGLM 5.4Ties
Coding03
All shared boards03
CodingLike-for-likeSix of these boards feed the Vibe Coding Index03
Coding benchmarks for Claude Opus 4.8 and GLM 5.4
BenchmarkClaude Opus 4.8GLM 5.4Leader
LiveBench codingNot measured74.5%Only GLM 5.4 measured
LMArena WebDev15551690GLM 5.4
LiveCodeBench (Vals AI)87.8%Not measuredOnly Claude Opus 4.8 measured
SWE-bench Verified (Vals AI)88.6%Not measuredOnly Claude Opus 4.8 measured
Terminal-Bench 4 (Vals AI)23.2%Not measuredOnly Claude Opus 4.8 measured
Vibe Code Bench (Vals AI)82.7%Not measuredOnly Claude Opus 4.8 measured
Code migration (Vals AI)47.3%Not measuredOnly Claude Opus 4.8 measured
ProgramBench (Vals AI)1.0%Not measuredOnly Claude Opus 4.8 measured
Terminal-Bench 2.1 (Vals AI)71.9%Not measuredOnly Claude Opus 4.8 measured
SkillsBench (Vals AI)59.2%Not measuredOnly Claude Opus 4.8 measured
SciCode54.4%Not measuredOnly Claude Opus 4.8 measured
Terminal-Bench Hard (Artificial Analysis run)58.3%Not measuredOnly Claude Opus 4.8 measured
Terminal-Bench 4.0 (Artificial Analysis run)21.7%Not measuredOnly Claude Opus 4.8 measured
FrontierCode46.5%Not measuredOnly Claude Opus 4.8 measured
GSO-Bench47.1%Not measuredOnly Claude Opus 4.8 measured
WeirdML82.9%Not measuredOnly Claude Opus 4.8 measured
MirrorCode65.6%Not measuredOnly Claude Opus 4.8 measured
LMArena Text: coding1491Not measuredOnly Claude Opus 4.8 measured
LMArena Text: software and IT1488Not measuredOnly Claude Opus 4.8 measured
LMArena WebDev: React15551739GLM 5.4
LMArena WebDev: HTML15421675GLM 5.4
SciCode12.3%Not measuredOnly Claude Opus 4.8 measured
SWE Atlas: Codebase QnA57.3%Not measuredOnly Claude Opus 4.8 measured
SWE Atlas: Refactoring46.7%Not measuredOnly Claude Opus 4.8 measured
SWE Atlas: Test Writing49.6%Not measuredOnly Claude Opus 4.8 measured
GameBench 262.9Not measuredOnly Claude Opus 4.8 measured
Terminal-Bench 2.178.9%Not measuredOnly Claude Opus 4.8 measured
Terminal-Bench 3.021.1%Not measuredOnly Claude Opus 4.8 measured
Terminal-Bench 4.023.6%Not measuredOnly Claude Opus 4.8 measured
ProgramBench0.0%Not measuredOnly Claude Opus 4.8 measured
Neither model has a result on the other 22 boards here
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
Intelligence benchmarks for Claude Opus 4.8 and GLM 5.4
BenchmarkClaude Opus 4.8GLM 5.4Leader
Epoch Capabilities Index159.7Not measuredOnly Claude Opus 4.8 measured
Neither model has a result on the other 1 board here
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index29 boards, none shared
Agentic work benchmarks for Claude Opus 4.8 and GLM 5.4
BenchmarkClaude Opus 4.8GLM 5.4Leader
Design Arena: agents building web apps1198Not measuredOnly Claude Opus 4.8 measured
Design Arena: agents building full-stack apps1296Not measuredOnly Claude Opus 4.8 measured
Design Arena: agents building mobile apps1209Not measuredOnly Claude Opus 4.8 measured
Design Arena: agents building Android apps1205Not measuredOnly Claude Opus 4.8 measured
Design Arena: agents building Godot games1206Not measuredOnly Claude Opus 4.8 measured
Design Arena: agents building games1182Not measuredOnly Claude Opus 4.8 measured
Design Arena: HTML slides1123Not measuredOnly Claude Opus 4.8 measured
Design Arena: PowerPoint slides1185Not measuredOnly Claude Opus 4.8 measured
Design Arena: spreadsheets1028Not measuredOnly Claude Opus 4.8 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
Finance Agent (Vals AI)53.9%Not measuredOnly Claude Opus 4.8 measured
Tax Agent Bench (Vals AI)30.0%Not measuredOnly Claude Opus 4.8 measured
Legal Research Bench (Vals AI)43.8%Not measuredOnly Claude Opus 4.8 measured
Excel Modeling Benchmark (Vals AI)69.4%Not measuredOnly Claude Opus 4.8 measured
Terminal-Bench-Science (Vals AI)4.3%Not measuredOnly Claude Opus 4.8 measured
Time Horizon Index (Vals AI)11.8%Not measuredOnly Claude Opus 4.8 measured
τ²-Bench Telecom94.4%Not measuredOnly Claude Opus 4.8 measured
APEX-Agents48.9%Not measuredOnly Claude Opus 4.8 measured
Remote Labor Index8.3%Not measuredOnly Claude Opus 4.8 measured
OSWorld 2.020.6%Not measuredOnly Claude Opus 4.8 measured
DeepResearch Bench50.2%Not measuredOnly Claude Opus 4.8 measured
PostTrainBench31.0%Not measuredOnly Claude Opus 4.8 measured
Vending-Bench 2$5,787Not measuredOnly Claude Opus 4.8 measured
LMArena Search1202Not measuredOnly Claude Opus 4.8 measured
MCP Atlas82.2%Not measuredOnly Claude Opus 4.8 measured
Toolathlon-Verified76.2%Not measuredOnly Claude Opus 4.8 measured
τ³-Banking39.7%Not measuredOnly Claude Opus 4.8 measured
Neither model has a result on the other 15 boards here
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index18 boards, none shared
Reasoning benchmarks for Claude Opus 4.8 and GLM 5.4
BenchmarkClaude Opus 4.8GLM 5.4Leader
GPQA Diamond92.4%Not measuredOnly Claude Opus 4.8 measured
LiveBench reasoningNot measured85.2%Only GLM 5.4 measured
MMMU Pro (Vals AI)86.6%Not measuredOnly Claude Opus 4.8 measured
GPQA Diamond (Artificial Analysis run)92.0%Not measuredOnly Claude Opus 4.8 measured
Humanity's Last Exam (Artificial Analysis run)48.7%Not measuredOnly Claude Opus 4.8 measured
GPQA Diamond (Epoch AI run)91.0%Not measuredOnly Claude Opus 4.8 measured
ARC-AGI92.5%Not measuredOnly Claude Opus 4.8 measured
ARC-AGI-272.1%Not measuredOnly Claude Opus 4.8 measured
SimpleBench64.8%Not measuredOnly Claude Opus 4.8 measured
Chess puzzles52.0%Not measuredOnly Claude Opus 4.8 measured
Mystery game puzzles36.0%Not measuredOnly Claude Opus 4.8 measured
EBR-bench28.6%Not measuredOnly Claude Opus 4.8 measured
LMArena Text: hard prompts1482Not measuredOnly Claude Opus 4.8 measured
LMArena Text: expert1502Not measuredOnly Claude Opus 4.8 measured
LMArena Text: hard prompts in English1487Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: diagrams1313Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: homework1336Not measuredOnly Claude Opus 4.8 measured
Kagi LLM Benchmark88.8%Not measuredOnly Claude Opus 4.8 measured
Neither model has a result on the other 8 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
Math benchmarks for Claude Opus 4.8 and GLM 5.4
BenchmarkClaude Opus 4.8GLM 5.4Leader
OTIS Mock AIME98.3%Not measuredOnly Claude Opus 4.8 measured
FrontierMath, tiers 1 to 380.0%Not measuredOnly Claude Opus 4.8 measured
FrontierMath, tier 456.1%Not measuredOnly Claude Opus 4.8 measured
ProofBench69.0%Not measuredOnly Claude Opus 4.8 measured
LMArena Text: math1485Not measuredOnly Claude Opus 4.8 measured
LMArena Text: mathematical work1495Not measuredOnly Claude Opus 4.8 measured
MathArena35.3%Not measuredOnly Claude Opus 4.8 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
Knowledge benchmarks for Claude Opus 4.8 and GLM 5.4
BenchmarkClaude Opus 4.8GLM 5.4Leader
MMLU Pro89.6%Not measuredOnly Claude Opus 4.8 measured
LegalBench (Vals AI)83.6%Not measuredOnly Claude Opus 4.8 measured
CorpFin (Vals AI)66.7%Not measuredOnly Claude Opus 4.8 measured
TaxEval (Vals AI)75.6%Not measuredOnly Claude Opus 4.8 measured
MortgageTax (Vals AI)69.9%Not measuredOnly Claude Opus 4.8 measured
MedCode (Vals AI)53.2%Not measuredOnly Claude Opus 4.8 measured
SimpleQA Verified53.0%Not measuredOnly Claude Opus 4.8 measured
GeoBench81.0%Not measuredOnly Claude Opus 4.8 measured
LMArena Text: science1477Not measuredOnly Claude Opus 4.8 measured
LMArena Text: medicine and healthcare1465Not measuredOnly Claude Opus 4.8 measured
LMArena Text: legal and government1477Not measuredOnly Claude Opus 4.8 measured
LMArena Text: business and finance1458Not measuredOnly Claude Opus 4.8 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
Web design benchmarks for Claude Opus 4.8 and GLM 5.4
BenchmarkClaude Opus 4.8GLM 5.4Leader
Design Arena: websites1299Not measuredOnly Claude Opus 4.8 measured
Design Arena: UI components1240Not measuredOnly Claude Opus 4.8 measured
Design Arena: game dev1230Not measuredOnly Claude Opus 4.8 measured
Design Arena: data viz1231Not measuredOnly Claude Opus 4.8 measured
Design Arena: 3D1183Not measuredOnly Claude Opus 4.8 measured
Design Arena: all code categories1297Not measuredOnly Claude Opus 4.8 measured
Design Arena: SVG1231Not measuredOnly Claude Opus 4.8 measured
Design Arena: ASCII art1255Not measuredOnly Claude Opus 4.8 measured
LiveBench designNot measured74.2%Only GLM 5.4 measured
GeneralDirectional onlyPublic boards, shown as published, kept out of the index36 boards, none shared
General benchmarks for Claude Opus 4.8 and GLM 5.4
BenchmarkClaude Opus 4.8GLM 5.4Leader
LiveBench data analysisNot measured72.2%Only GLM 5.4 measured
Public Benefits Bench (Vals AI)68.1%Not measuredOnly Claude Opus 4.8 measured
MedScribe (Vals AI)85.8%Not measuredOnly Claude Opus 4.8 measured
Vals Multimodal Index70.9%Not measuredOnly Claude Opus 4.8 measured
IFBench62.2%Not measuredOnly Claude Opus 4.8 measured
Long context reasoning (AA-LCR)77.7%Not measuredOnly Claude Opus 4.8 measured
GDPval-AA1462Not measuredOnly Claude Opus 4.8 measured
DTBench94.9%Not measuredOnly Claude Opus 4.8 measured
LMCA57.5%Not measuredOnly Claude Opus 4.8 measured
Surface Evolver Bench87.5%Not measuredOnly Claude Opus 4.8 measured
Furniture assembly42.5%Not measuredOnly Claude Opus 4.8 measured
LMArena Text1462Not measuredOnly Claude Opus 4.8 measured
LMArena Text: instruction following1477Not measuredOnly Claude Opus 4.8 measured
LMArena Text: creative writing1455Not measuredOnly Claude Opus 4.8 measured
LMArena Vision1294Not measuredOnly Claude Opus 4.8 measured
LMArena Text: English1469Not measuredOnly Claude Opus 4.8 measured
LMArena Text: non-English1451Not measuredOnly Claude Opus 4.8 measured
LMArena Text: Chinese1508Not measuredOnly Claude Opus 4.8 measured
LMArena Text: German1470Not measuredOnly Claude Opus 4.8 measured
LMArena Text: Japanese1443Not measuredOnly Claude Opus 4.8 measured
LMArena Text: Korean1423Not measuredOnly Claude Opus 4.8 measured
LMArena Text: French1481Not measuredOnly Claude Opus 4.8 measured
LMArena Text: Spanish1468Not measuredOnly Claude Opus 4.8 measured
LMArena Text: Russian1475Not measuredOnly Claude Opus 4.8 measured
LMArena Text: Polish1460Not measuredOnly Claude Opus 4.8 measured
LMArena Text: multi-turn1476Not measuredOnly Claude Opus 4.8 measured
LMArena Text: longer queries1484Not measuredOnly Claude Opus 4.8 measured
LMArena Text: writing and language1462Not measuredOnly Claude Opus 4.8 measured
LMArena Text: entertainment and media1441Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: English1293Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: Chinese1346Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: reading text1303Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: humor1284Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: creative writing1300Not measuredOnly Claude Opus 4.8 measured
LMArena Document1474Not measuredOnly Claude Opus 4.8 measured
EQ-Bench 41268Not measuredOnly Claude Opus 4.8 measured
Neither model has a result on the other 13 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Opus 4.8 and GLM 5.4
BenchmarkClaude Opus 4.8GLM 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

Claude Opus 4.8$0.018Fits in one request
GLM 5.4$0.0036Fits in one request

GLM 5.4 costs less

Repository review

50K input + 3K output tokens

Claude Opus 4.8$0.325Fits in one request
GLM 5.4$0.083Fits in one request

GLM 5.4 costs less

Agent loop

200K input + 10K output tokens

Claude Opus 4.8$1.25Fits 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 Claude Opus 4.8 and GLM 5.4
SpecificationAnthropic Claude Opus 4.8Z.ai GLM 5.4
MakerAnthropicZ.ai
WeightsNo public weights listedOpen weights
ReleasedMay 27, 2026December 2, 2026
Context window1M1.05M
Input $/Mtok$5.00$1.40
Output $/Mtok$25.00$4.40
Coding index62.872.7
Independent measurements behind it52
Cost per solved task$2.17Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Opus 4.8 better than GLM 5.4 for coding?

Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 62.8 for Claude Opus 4.8, though on 2 benchmarks against 5. Claude Opus 4.8 is neither cheaper nor larger in context, and leads no benchmark both models were measured on.

Which is cheaper, Claude Opus 4.8 or GLM 5.4?

Claude Opus 4.8 costs $5.00 per million input tokens and $25.00 per million output tokens; GLM 5.4 costs $1.40 and $4.40. Cost per solved task is known for Claude Opus 4.8 only.

Which has the bigger context window, Claude Opus 4.8 or GLM 5.4?

GLM 5.4, with 1.05M tokens against 1M.

How many benchmarks is the Claude Opus 4.8 vs GLM 5.4 comparison based on?

3 benchmarks have a result for both models as of December 3, 2026. Claude Opus 4.8'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/claude-opus-4-8-vs-glm-5-4" title="Claude Opus 4.8 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/claude-opus-4-8-vs-glm-5-4">LLMBenchmark.ai, Claude Opus 4.8 vs GLM 5.4</a></p>