Enter opens the highlighted result. Esc closes.

Claude Opus 4.7 vs GLM 5

Claude Opus 4.7 leads GLM 5 on coding, 67.5 to 41.7 on the Vibe Coding Index, and GLM 5 costs 7.8x less per output token ($3.20 vs $25.00 per million). Updated October 22, 2026; 58 benchmarks have a result for both.

Claude Opus 4.7Anthropic
Coding
67.5
Overall
71.6
Output $/M
$25.00
56
GLM 5Z.ai
Coding
41.7
Overall
54.3
Output $/M
$3.20
2
vs boards won of 58 shared

Claude Opus 4.7 or GLM 5: which to pick

Pick Claude Opus 4.7 for coding: it scores 67.5 on the Vibe Coding Index against 41.7 for GLM 5.

Pick GLM 5 for output tokens 7.8x cheaper ($3.20 vs $25.00 per million) and a lower cost per solved task ($0.63 against $2.95).

Shared results
58
Claude Opus 4.7 only
45
GLM 5 only
18
Like-for-like categories
7 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 41.7 from 3 benchmarks.
Widest category
Agentic work, 25.2 points apart on average over 2 shared benchmarks.
Widest single gap
ARC-AGI-2: Claude Opus 4.7 75.8% against GLM 5 4.9%, 71.0 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.7 $25.00 against GLM 5 $3.20 per million output tokens, 7.8x apart.
Context window
Claude Opus 4.7 takes 1M tokens, GLM 5 205K.

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 5Ties
Coding110
Intelligence20
Agentic work11
Reasoning110
Math40
Knowledge90
General181
All shared boards562
CodingLike-for-likeSix of these boards feed the Vibe Coding Index110
Coding benchmarks for Claude Opus 4.7 and GLM 5
BenchmarkClaude Opus 4.7GLM 5Leader
SWE-bench VerifiedNot measured72.8%Only GLM 5 measured
SWE-bench MultilingualNot measured69.7%Only GLM 5 measured
LMArena WebDev15581435Claude Opus 4.7
AA Coding Index73.6Not measuredOnly Claude Opus 4.7 measured
LiveCodeBench (Vals AI)85.1%81.9%Claude Opus 4.7
SWE-bench Verified (Vals AI)82.0%71.4%Claude Opus 4.7
Vibe Code Bench (Vals AI)71.0%23.4%Claude Opus 4.7
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%43.2%Claude Opus 4.7
Terminal-Bench80.2%52.4%Claude Opus 4.7
FrontierCode38.5%Not measuredOnly Claude Opus 4.7 measured
GSO-Bench44.1%Not measuredOnly Claude Opus 4.7 measured
WeirdML76.4%48.2%Claude Opus 4.7
MirrorCode31.1%Not measuredOnly Claude Opus 4.7 measured
ALE-BenchNot measured765.6Only GLM 5 measured
LMArena Text: coding15191461Claude Opus 4.7
LMArena Text: software and IT15161460Claude Opus 4.7
LMArena WebDev: React15601424Claude Opus 4.7
LMArena WebDev: HTML15541450Claude Opus 4.7
LMArena WebDev: from an image1577Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 17 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Opus 4.7 and GLM 5
BenchmarkClaude Opus 4.7GLM 5Leader
AA Intelligence Index40.727.9Claude Opus 4.7
Epoch Capabilities Index156.8145.8Claude Opus 4.7
Agentic workLike-for-likePublic boards, shown as published, kept out of the index11
Agentic work benchmarks for Claude Opus 4.7 and GLM 5
BenchmarkClaude Opus 4.7GLM 5Leader
AA Agentic Index38.6Not measuredOnly Claude Opus 4.7 measured
Design Arena: agents building full-stack appsNot measured1123Only GLM 5 measured
Design Arena: agents building mobile appsNot measured1136Only GLM 5 measured
Design Arena: agents building Android appsNot measured1147Only GLM 5 measured
Design Arena: agents building Godot gamesNot measured1144Only GLM 5 measured
Design Arena: HTML slidesNot measured1098Only GLM 5 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%98.2%GLM 5
APEX-Agents49.2%Not measuredOnly Claude Opus 4.7 measured
OSWorld 2.018.2%Not measuredOnly Claude Opus 4.7 measured
PostTrainBench28.6%Not measuredOnly Claude Opus 4.7 measured
Vending-Bench 2$10,937$4,432Claude Opus 4.7
LMArena Search1230Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 25 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index110
Reasoning benchmarks for Claude Opus 4.7 and GLM 5
BenchmarkClaude Opus 4.7GLM 5Leader
GPQA Diamond90.2%83.3%Claude Opus 4.7
MMMU Pro (Vals AI)85.5%Not measuredOnly Claude Opus 4.7 measured
GPQA Diamond (Artificial Analysis run)91.4%82.0%Claude Opus 4.7
Humanity's Last Exam (Artificial Analysis run)42.3%29.3%Claude Opus 4.7
GPQA Diamond (Epoch AI run)90.2%87.8%Claude Opus 4.7
ARC-AGI93.5%44.7%Claude Opus 4.7
ARC-AGI-275.8%4.9%Claude Opus 4.7
SimpleBench61.7%53.2%Claude Opus 4.7
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 prompts15061452Claude Opus 4.7
LMArena Text: expert15211454Claude Opus 4.7
LMArena Text: hard prompts in English15081460Claude Opus 4.7
LMArena Vision: diagrams1336Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: homework1337Not measuredOnly Claude Opus 4.7 measured
Kagi LLM Benchmark80.7%75.0%Claude Opus 4.7
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index40
Math benchmarks for Claude Opus 4.7 and GLM 5
BenchmarkClaude Opus 4.7GLM 5Leader
AIME96.3%91.7%Claude Opus 4.7
OTIS Mock AIME97.8%80.0%Claude Opus 4.7
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: math14981440Claude Opus 4.7
LMArena Text: mathematical work15091451Claude Opus 4.7
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index90
Knowledge benchmarks for Claude Opus 4.7 and GLM 5
BenchmarkClaude Opus 4.7GLM 5Leader
MMLU Pro89.9%86.0%Claude Opus 4.7
LegalBench (Vals AI)85.3%84.1%Claude Opus 4.7
CaseLaw (Vals AI)68.4%52.5%Claude Opus 4.7
CorpFin (Vals AI)66.1%62.9%Claude Opus 4.7
TaxEval (Vals AI)75.3%70.0%Claude Opus 4.7
MortgageTax (Vals AI)70.3%Not measuredOnly Claude Opus 4.7 measured
MedQA (Vals AI)Not measured94.3%Only GLM 5 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: science15081460Claude Opus 4.7
LMArena Text: medicine and healthcare14951455Claude Opus 4.7
LMArena Text: legal and government15041453Claude Opus 4.7
LMArena Text: business and finance14901430Claude Opus 4.7
FACTS Benchmark Suite45.5%Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 4 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for Claude Opus 4.7 and GLM 5
BenchmarkClaude Opus 4.7GLM 5Leader
Design Arena: websitesNot measured1247Only GLM 5 measured
Design Arena: UI componentsNot measured1227Only GLM 5 measured
Design Arena: game devNot measured1234Only GLM 5 measured
Design Arena: data vizNot measured1228Only GLM 5 measured
Design Arena: 3DNot measured1228Only GLM 5 measured
Design Arena: all code categoriesNot measured1246Only GLM 5 measured
Design Arena: SVGNot measured1168Only GLM 5 measured
Design Arena: ASCII artNot measured1147Only GLM 5 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index181
General benchmarks for Claude Opus 4.7 and GLM 5
BenchmarkClaude Opus 4.7GLM 5Leader
SAGE (Vals AI)56.1%Not measuredOnly Claude Opus 4.7 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%72.3%GLM 5
Long context reasoning (AA-LCR)78.7%75.7%Claude Opus 4.7
DTBench94.7%Not measuredOnly Claude Opus 4.7 measured
LMCA52.2%Not measuredOnly Claude Opus 4.7 measured
CL-benchNot measured18.7%Only GLM 5 measured
Furniture assembly33.3%Not measuredOnly Claude Opus 4.7 measured
ExploitBench26.5%Not measuredOnly Claude Opus 4.7 measured
LMArena Text14901446Claude Opus 4.7
LMArena Text: instruction following14981428Claude Opus 4.7
LMArena Text: creative writing14861438Claude Opus 4.7
LMArena Vision1317Not measuredOnly Claude Opus 4.7 measured
LMArena Text: English14961458Claude Opus 4.7
LMArena Text: non-English14801430Claude Opus 4.7
LMArena Text: Chinese15311511Claude Opus 4.7
LMArena Text: German14951447Claude Opus 4.7
LMArena Text: Japanese14741416Claude Opus 4.7
LMArena Text: Korean14641423Claude Opus 4.7
LMArena Text: French15031456Claude Opus 4.7
LMArena Text: Spanish14941454Claude Opus 4.7
LMArena Text: Russian14941436Claude Opus 4.7
LMArena Text: Polish14891434Claude Opus 4.7
LMArena Text: multi-turn15051456Claude Opus 4.7
LMArena Text: longer queries15051446Claude Opus 4.7
LMArena Text: writing and language14921437Claude Opus 4.7
LMArena Text: entertainment and media14741426Claude Opus 4.7
LMArena Vision: English1322Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: Chinese1371Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: reading text1327Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: humor1309Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: recognizing things1278Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: creative writing1326Not measuredOnly Claude Opus 4.7 measured
LMArena Document1495Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 11 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
BenchmarkClaude Opus 4.7GLM 5Leader
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$0.0026Fits in one request

GLM 5 costs less

Repository review

50K input + 3K output tokens

Claude Opus 4.7$0.325Fits in one request
GLM 5$0.060Fits in one request

GLM 5 costs less

Agent loop

200K input + 10K output tokens

Claude Opus 4.7$1.25Fits in one request
GLM 5$0.232Exceeds the context window

GLM 5 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
SpecificationAnthropic Claude Opus 4.7Z.ai GLM 5
MakerAnthropicZ.ai
WeightsNo public weights listedOpen weights
ReleasedApril 16, 2026February 11, 2026
Context window1M205K
Input $/Mtok$5.00$1.00
Output $/Mtok$25.00$3.20
Coding index67.541.7
Independent measurements behind it43
Cost per solved task$2.95$0.63
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Opus 4.7 better than GLM 5 for coding?

Pick Claude Opus 4.7 for coding: it scores 67.5 on the Vibe Coding Index against 41.7 for GLM 5. Pick GLM 5 for output tokens 7.8x cheaper ($3.20 vs $25.00 per million) and a lower cost per solved task ($0.63 against $2.95).

Which is cheaper, Claude Opus 4.7 or GLM 5?

Claude Opus 4.7 costs $5.00 per million input tokens and $25.00 per million output tokens; GLM 5 costs $1.00 and $3.20. Per solved SWE-bench Verified task, Claude Opus 4.7 costs $2.95 and GLM 5 $0.63.

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

Claude Opus 4.7, with 1M tokens against 205K.

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

58 benchmarks have a result for both models as of October 22, 2026. Claude Opus 4.7's coding index rests on 4 independent benchmarks and GLM 5's on 3. 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" title="Claude Opus 4.7 vs GLM 5, 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">LLMBenchmark.ai, Claude Opus 4.7 vs GLM 5</a></p>