Enter opens the highlighted result. Esc closes.

Claude Opus 4.7 vs GLM 5.4

GLM 5.4 leads Claude Opus 4.7 on coding, 72.7 to 67.5 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.7Anthropic
Coding
67.5
Overall
74.5
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.7 or GLM 5.4: which to pick

Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 67.5 for Claude Opus 4.7, though on 2 benchmarks against 4.

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

Shared results
3
Claude Opus 4.7 only
106
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.7 67.5 from 4 benchmarks, GLM 5.4 72.7 from 2 benchmarks.
Widest category
Coding, 11.2 points apart on average over 3 shared benchmarks.
Widest single gap
LMArena WebDev: Claude Opus 4.7 1557 against GLM 5.4 1690, 18.9 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.7 $25.00 against GLM 5.4 $4.40 per million output tokens, 5.7x apart.
Context window
Claude Opus 4.7 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.7BarsGLM 5.4Ties
Coding03
All shared boards03
CodingLike-for-likeSix of these boards feed the Vibe Coding Index03
Coding benchmarks for Claude Opus 4.7 and GLM 5.4
BenchmarkClaude Opus 4.7GLM 5.4Leader
LiveBench codingNot measured74.5%Only GLM 5.4 measured
LMArena WebDev15571690GLM 5.4
LiveCodeBench (Vals AI)85.1%Not measuredOnly Claude Opus 4.7 measured
SWE-bench Verified (Vals AI)82.0%Not measuredOnly Claude Opus 4.7 measured
Vibe Code Bench (Vals AI)71.0%Not measuredOnly Claude Opus 4.7 measured
Code migration (Vals AI)43.9%Not measuredOnly Claude Opus 4.7 measured
ProgramBench (Vals AI)0.0%Not measuredOnly Claude Opus 4.7 measured
Terminal-Bench 2.1 (Vals AI)68.5%Not measuredOnly Claude Opus 4.7 measured
Terminal-Bench Hard (Artificial Analysis run)54.5%Not measuredOnly Claude Opus 4.7 measured
Terminal-Bench80.2%Not measuredOnly Claude Opus 4.7 measured
FrontierCode38.5%Not measuredOnly Claude Opus 4.7 measured
GSO-Bench44.1%Not measuredOnly Claude Opus 4.7 measured
WeirdML76.4%Not measuredOnly Claude Opus 4.7 measured
MirrorCode43.3%Not measuredOnly Claude Opus 4.7 measured
LMArena Text: coding1519Not measuredOnly Claude Opus 4.7 measured
LMArena Text: software and IT1516Not measuredOnly Claude Opus 4.7 measured
LMArena WebDev: React15591739GLM 5.4
LMArena WebDev: HTML15521675GLM 5.4
LMArena WebDev: from an image1579Not measuredOnly Claude Opus 4.7 measured
SWE Atlas: Codebase QnA40.3%Not measuredOnly Claude Opus 4.7 measured
SWE Atlas: Refactoring48.6%Not measuredOnly Claude Opus 4.7 measured
SWE Atlas: Test Writing38.5%Not measuredOnly Claude Opus 4.7 measured
Terminal-Bench 2.080.2%Not measuredOnly Claude Opus 4.7 measured
Terminal-Bench 2.168.9%Not measuredOnly Claude Opus 4.7 measured
ProgramBench0.0%Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 27 boards here
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
Intelligence benchmarks for Claude Opus 4.7 and GLM 5.4
BenchmarkClaude Opus 4.7GLM 5.4Leader
Epoch Capabilities Index157.3Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 1 board here
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index15 boards, none shared
Agentic work benchmarks for Claude Opus 4.7 and GLM 5.4
BenchmarkClaude Opus 4.7GLM 5.4Leader
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)51.5%Not measuredOnly Claude Opus 4.7 measured
Tax Agent Bench (Vals AI)23.7%Not measuredOnly Claude Opus 4.7 measured
Legal Research Bench (Vals AI)38.5%Not measuredOnly Claude Opus 4.7 measured
Excel Modeling Benchmark (Vals AI)63.7%Not measuredOnly Claude Opus 4.7 measured
τ²-Bench Telecom88.6%Not measuredOnly Claude Opus 4.7 measured
APEX-Agents49.2%Not measuredOnly Claude Opus 4.7 measured
OSWorld 2.018.2%Not measuredOnly Claude Opus 4.7 measured
PostTrainBench24.3%Not measuredOnly Claude Opus 4.7 measured
Vending-Bench 2$10,937Not measuredOnly Claude Opus 4.7 measured
LMArena Search1230Not measuredOnly Claude Opus 4.7 measured
MCP Atlas79.1%Not measuredOnly Claude Opus 4.7 measured
τ³-Banking40.2%Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 29 boards here
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index18 boards, none shared
Reasoning benchmarks for Claude Opus 4.7 and GLM 5.4
BenchmarkClaude Opus 4.7GLM 5.4Leader
GPQA Diamond90.2%Not measuredOnly Claude Opus 4.7 measured
LiveBench reasoningNot measured85.2%Only GLM 5.4 measured
MMMU Pro (Vals AI)85.5%Not measuredOnly Claude Opus 4.7 measured
GPQA Diamond (Artificial Analysis run)91.4%Not measuredOnly Claude Opus 4.7 measured
Humanity's Last Exam (Artificial Analysis run)42.3%Not measuredOnly Claude Opus 4.7 measured
GPQA Diamond (Epoch AI run)90.2%Not measuredOnly Claude Opus 4.7 measured
ARC-AGI93.5%Not measuredOnly Claude Opus 4.7 measured
ARC-AGI-275.8%Not measuredOnly Claude Opus 4.7 measured
SimpleBench61.7%Not measuredOnly Claude Opus 4.7 measured
Chess puzzles41.0%Not measuredOnly Claude Opus 4.7 measured
Mystery game puzzles28.0%Not measuredOnly Claude Opus 4.7 measured
EBR-bench19.0%Not measuredOnly Claude Opus 4.7 measured
LMArena Text: hard prompts1506Not measuredOnly Claude Opus 4.7 measured
LMArena Text: expert1520Not measuredOnly Claude Opus 4.7 measured
LMArena Text: hard prompts in English1508Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: diagrams1337Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: homework1338Not measuredOnly Claude Opus 4.7 measured
Kagi LLM Benchmark80.7%Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 8 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Math benchmarks for Claude Opus 4.7 and GLM 5.4
BenchmarkClaude Opus 4.7GLM 5.4Leader
AIME96.3%Not measuredOnly Claude Opus 4.7 measured
OTIS Mock AIME97.8%Not measuredOnly Claude Opus 4.7 measured
FrontierMath, tiers 1 to 370.2%Not measuredOnly Claude Opus 4.7 measured
FrontierMath, tier 431.7%Not measuredOnly Claude Opus 4.7 measured
ProofBench54.0%Not measuredOnly Claude Opus 4.7 measured
LMArena Text: math1499Not measuredOnly Claude Opus 4.7 measured
LMArena Text: mathematical work1508Not measuredOnly Claude Opus 4.7 measured
MathArena18.7%Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 6 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index12 boards, none shared
Knowledge benchmarks for Claude Opus 4.7 and GLM 5.4
BenchmarkClaude Opus 4.7GLM 5.4Leader
MMLU Pro89.9%Not measuredOnly Claude Opus 4.7 measured
LegalBench (Vals AI)85.3%Not measuredOnly Claude Opus 4.7 measured
CaseLaw (Vals AI)68.4%Not measuredOnly Claude Opus 4.7 measured
CorpFin (Vals AI)66.1%Not measuredOnly Claude Opus 4.7 measured
TaxEval (Vals AI)75.3%Not measuredOnly Claude Opus 4.7 measured
MortgageTax (Vals AI)70.3%Not measuredOnly Claude Opus 4.7 measured
MedCode (Vals AI)54.9%Not measuredOnly Claude Opus 4.7 measured
SimpleQA Verified51.7%Not measuredOnly Claude Opus 4.7 measured
LMArena Text: science1508Not measuredOnly Claude Opus 4.7 measured
LMArena Text: medicine and healthcare1495Not measuredOnly Claude Opus 4.7 measured
LMArena Text: legal and government1505Not measuredOnly Claude Opus 4.7 measured
LMArena Text: business and finance1491Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 9 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index1 board, none shared
Web design benchmarks for Claude Opus 4.7 and GLM 5.4
BenchmarkClaude Opus 4.7GLM 5.4Leader
LiveBench designNot measured74.2%Only GLM 5.4 measured
Neither model has a result on the other 8 boards here
GeneralDirectional onlyPublic boards, shown as published, kept out of the index36 boards, none shared
General benchmarks for Claude Opus 4.7 and GLM 5.4
BenchmarkClaude Opus 4.7GLM 5.4Leader
LiveBench data analysisNot measured72.2%Only GLM 5.4 measured
MedScribe (Vals AI)83.0%Not measuredOnly Claude Opus 4.7 measured
Vals Multimodal Index67.4%Not measuredOnly Claude Opus 4.7 measured
IFBench58.6%Not measuredOnly Claude Opus 4.7 measured
Long context reasoning (AA-LCR)78.7%Not measuredOnly Claude Opus 4.7 measured
GDPval-AA1361Not measuredOnly Claude Opus 4.7 measured
DTBench94.7%Not measuredOnly Claude Opus 4.7 measured
LMCA52.2%Not measuredOnly Claude Opus 4.7 measured
Furniture assembly33.3%Not measuredOnly Claude Opus 4.7 measured
ExploitBench26.5%Not measuredOnly Claude Opus 4.7 measured
LMArena Text1490Not measuredOnly Claude Opus 4.7 measured
LMArena Text: instruction following1498Not measuredOnly Claude Opus 4.7 measured
LMArena Text: creative writing1487Not measuredOnly Claude Opus 4.7 measured
LMArena Vision1318Not measuredOnly Claude Opus 4.7 measured
LMArena Text: English1496Not measuredOnly Claude Opus 4.7 measured
LMArena Text: non-English1481Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Chinese1533Not measuredOnly Claude Opus 4.7 measured
LMArena Text: German1496Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Japanese1474Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Korean1467Not measuredOnly Claude Opus 4.7 measured
LMArena Text: French1503Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Spanish1495Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Russian1495Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Polish1491Not measuredOnly Claude Opus 4.7 measured
LMArena Text: multi-turn1506Not measuredOnly Claude Opus 4.7 measured
LMArena Text: longer queries1506Not measuredOnly Claude Opus 4.7 measured
LMArena Text: writing and language1493Not measuredOnly Claude Opus 4.7 measured
LMArena Text: entertainment and media1475Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: English1322Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: Chinese1371Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: reading text1328Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: humor1314Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: recognizing things1277Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: creative writing1327Not measuredOnly Claude Opus 4.7 measured
LMArena Document1495Not measuredOnly Claude Opus 4.7 measured
EQ-Bench 41293Not measuredOnly Claude Opus 4.7 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.7 and GLM 5.4
BenchmarkClaude Opus 4.7GLM 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.7$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.7$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.7$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.7 and GLM 5.4
SpecificationAnthropic Claude Opus 4.7Z.ai GLM 5.4
MakerAnthropicZ.ai
WeightsNo public weights listedOpen weights
ReleasedApril 16, 2026December 2, 2026
Context window1M1.05M
Input $/Mtok$5.00$1.40
Output $/Mtok$25.00$4.40
Coding index67.572.7
Independent measurements behind it42
Cost per solved task$2.95Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Opus 4.7 better than GLM 5.4 for coding?

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

Which is cheaper, Claude Opus 4.7 or GLM 5.4?

Claude Opus 4.7 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.7 only.

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

GLM 5.4, with 1.05M tokens against 1M.

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

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