Enter opens the highlighted result. Esc closes.

Claude Opus 4.7 vs GLM 5.1

Claude Opus 4.7 leads GLM 5.1 on coding, 67.5 to 49.2 on the Vibe Coding Index, and GLM 5.1 costs 5.7x less per output token ($4.40 vs $25.00 per million). Updated October 21, 2026; 69 benchmarks have a result for both.

Claude Opus 4.7Anthropic
Coding
67.5
Overall
71.6
Output $/M
$25.00
66
GLM 5.1Z.ai
Coding
49.2
Overall
57.5
Output $/M
$4.40
2
vs boards won of 69 shared, 1 tied

Claude Opus 4.7 or GLM 5.1: which to pick

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

Pick GLM 5.1 for output tokens 5.7x cheaper ($4.40 vs $25.00 per million) and a lower cost per solved task ($0.60 against $2.95).

Shared results
69
Claude Opus 4.7 only
34
GLM 5.1 only
20
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.1 49.2 from 3 benchmarks.
Widest category
Math, 14.1 points apart on average over 6 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): Claude Opus 4.7 71.0% against GLM 5.1 31.5%, 39.5 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.7 $25.00 against GLM 5.1 $4.40 per million output tokens, 5.7x apart.
Context window
Claude Opus 4.7 takes 1M tokens, GLM 5.1 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 5.1Ties
Coding1301 tie
Intelligence20
Agentic work51
Reasoning90
Math60
Knowledge110
General201
All shared boards6621 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index130
Coding benchmarks for Claude Opus 4.7 and GLM 5.1
BenchmarkClaude Opus 4.7GLM 5.1Leader
LMArena WebDev15581508Claude Opus 4.7
AA Coding Index73.655.8Claude Opus 4.7
LiveCodeBench (Vals AI)85.1%81.4%Claude Opus 4.7
SWE-bench Verified (Vals AI)82.0%76.4%Claude Opus 4.7
Vibe Code Bench (Vals AI)71.0%31.5%Claude Opus 4.7
Code migration (Vals AI)43.9%25.8%Claude Opus 4.7
ProgramBench (Vals AI)0.0%0.0%Tie
Terminal-Bench 2.1 (Vals AI)68.5%56.9%Claude Opus 4.7
SciCodeNot measured44.8%Only GLM 5.1 measured
Terminal-Bench Hard (Artificial Analysis run)54.5%43.2%Claude Opus 4.7
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%57.1%Claude Opus 4.7
MirrorCode31.1%Not measuredOnly Claude Opus 4.7 measured
ALE-BenchNot measured887.1Only GLM 5.1 measured
LMArena Text: coding15191485Claude Opus 4.7
LMArena Text: software and IT15161484Claude Opus 4.7
LMArena WebDev: React15601505Claude Opus 4.7
LMArena WebDev: HTML15541508Claude Opus 4.7
LMArena WebDev: from an image1577Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 18 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Opus 4.7 and GLM 5.1
BenchmarkClaude Opus 4.7GLM 5.1Leader
AA Intelligence Index40.726.1Claude Opus 4.7
Epoch Capabilities Index156.8149.8Claude Opus 4.7
Agentic workLike-for-likePublic boards, shown as published, kept out of the index51
Agentic work benchmarks for Claude Opus 4.7 and GLM 5.1
BenchmarkClaude Opus 4.7GLM 5.1Leader
AA Agentic Index38.623.9Claude Opus 4.7
Design Arena: agents building web appsNot measured1175Only GLM 5.1 measured
Design Arena: agents building full-stack appsNot measured1167Only GLM 5.1 measured
Design Arena: agents building mobile appsNot measured1162Only GLM 5.1 measured
Design Arena: agents building Android appsNot measured1180Only GLM 5.1 measured
Design Arena: agents building Godot gamesNot measured1053Only GLM 5.1 measured
Design Arena: agents building gamesNot measured1164Only GLM 5.1 measured
Design Arena: HTML slidesNot measured1170Only GLM 5.1 measured
Design Arena: PowerPoint slidesNot measured1188Only GLM 5.1 measured
Design Arena: spreadsheetsNot measured1315Only GLM 5.1 measured
Finance Agent (Vals AI)51.5%44.8%Claude Opus 4.7
Tax Agent Bench (Vals AI)23.7%Not measuredOnly Claude Opus 4.7 measured
Legal Research Bench (Vals AI)38.5%27.9%Claude Opus 4.7
Excel Modeling Benchmark (Vals AI)63.7%Not measuredOnly Claude Opus 4.7 measured
τ²-Bench Telecom88.6%97.7%GLM 5.1
APEX-Agents49.2%40.9%Claude Opus 4.7
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$5,634Claude Opus 4.7
LMArena Search1230Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 21 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index90
Reasoning benchmarks for Claude Opus 4.7 and GLM 5.1
BenchmarkClaude Opus 4.7GLM 5.1Leader
GPQA Diamond90.2%84.5%Claude Opus 4.7
MMMU Pro (Vals AI)85.5%Not measuredOnly Claude Opus 4.7 measured
GPQA Diamond (Artificial Analysis run)91.4%86.8%Claude Opus 4.7
Humanity's Last Exam (Artificial Analysis run)42.3%30.1%Claude Opus 4.7
GPQA Diamond (Epoch AI run)90.2%89.9%Claude Opus 4.7
ARC-AGI93.5%Not measuredOnly Claude Opus 4.7 measured
ARC-AGI-275.8%Not measuredOnly Claude Opus 4.7 measured
SimpleBench61.7%55.1%Claude Opus 4.7
Chess puzzles41.0%20.0%Claude Opus 4.7
Mystery game puzzles28.0%Not measuredOnly Claude Opus 4.7 measured
EBR-bench19.0%Not measuredOnly Claude Opus 4.7 measured
LMArena Text: hard prompts15061473Claude Opus 4.7
LMArena Text: expert15211478Claude Opus 4.7
LMArena Text: hard prompts in English15081482Claude 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%Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index60
Math benchmarks for Claude Opus 4.7 and GLM 5.1
BenchmarkClaude Opus 4.7GLM 5.1Leader
AIME96.3%91.9%Claude Opus 4.7
OTIS Mock AIME97.8%93.3%Claude Opus 4.7
FrontierMath, tiers 1 to 370.2%36.8%Claude Opus 4.7
FrontierMath, tier 431.7%Not measuredOnly Claude Opus 4.7 measured
ProofBench54.0%22.2%Claude Opus 4.7
LMArena Text: math14981473Claude Opus 4.7
LMArena Text: mathematical work15091470Claude 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 index110
Knowledge benchmarks for Claude Opus 4.7 and GLM 5.1
BenchmarkClaude Opus 4.7GLM 5.1Leader
MMLU Pro89.9%86.9%Claude Opus 4.7
LegalBench (Vals AI)85.3%84.4%Claude Opus 4.7
CaseLaw (Vals AI)68.4%51.5%Claude Opus 4.7
CorpFin (Vals AI)66.1%64.5%Claude Opus 4.7
TaxEval (Vals AI)75.3%71.2%Claude Opus 4.7
MortgageTax (Vals AI)70.3%Not measuredOnly Claude Opus 4.7 measured
MedCode (Vals AI)54.9%41.6%Claude Opus 4.7
SimpleQA Verified51.7%34.0%Claude Opus 4.7
LMArena Text: science15081478Claude Opus 4.7
LMArena Text: medicine and healthcare14951474Claude Opus 4.7
LMArena Text: legal and government15041465Claude Opus 4.7
LMArena Text: business and finance14901452Claude Opus 4.7
FACTS Benchmark Suite45.5%Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 5 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.1
BenchmarkClaude Opus 4.7GLM 5.1Leader
Design Arena: websitesNot measured1290Only GLM 5.1 measured
Design Arena: UI componentsNot measured1292Only GLM 5.1 measured
Design Arena: game devNot measured1265Only GLM 5.1 measured
Design Arena: data vizNot measured1366Only GLM 5.1 measured
Design Arena: 3DNot measured1336Only GLM 5.1 measured
Design Arena: all code categoriesNot measured1268Only GLM 5.1 measured
Design Arena: SVGNot measured1218Only GLM 5.1 measured
Design Arena: ASCII artNot measured1142Only GLM 5.1 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index201
General benchmarks for Claude Opus 4.7 and GLM 5.1
BenchmarkClaude Opus 4.7GLM 5.1Leader
Public Benefits Bench (Vals AI)Not measured61.8%Only GLM 5.1 measured
SAGE (Vals AI)56.1%Not measuredOnly Claude Opus 4.7 measured
MedScribe (Vals AI)83.0%72.3%Claude Opus 4.7
Vals Multimodal Index67.4%Not measuredOnly Claude Opus 4.7 measured
IFBench58.6%76.3%GLM 5.1
Long context reasoning (AA-LCR)78.7%73.7%Claude Opus 4.7
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%18.1%Claude Opus 4.7
LMArena Text14901463Claude Opus 4.7
LMArena Text: instruction following14981453Claude Opus 4.7
LMArena Text: creative writing14861453Claude Opus 4.7
LMArena Vision1317Not measuredOnly Claude Opus 4.7 measured
LMArena Text: English14961476Claude Opus 4.7
LMArena Text: non-English14801448Claude Opus 4.7
LMArena Text: Chinese15311515Claude Opus 4.7
LMArena Text: German14951467Claude Opus 4.7
LMArena Text: Japanese14741435Claude Opus 4.7
LMArena Text: Korean14641424Claude Opus 4.7
LMArena Text: French15031470Claude Opus 4.7
LMArena Text: Spanish14941468Claude Opus 4.7
LMArena Text: Russian14941454Claude Opus 4.7
LMArena Text: Polish14891449Claude Opus 4.7
LMArena Text: multi-turn15051473Claude Opus 4.7
LMArena Text: longer queries15051467Claude Opus 4.7
LMArena Text: writing and language14921454Claude Opus 4.7
LMArena Text: entertainment and media14741442Claude 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.1
BenchmarkClaude Opus 4.7GLM 5.1Leader
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.1$0.0036Fits in one request

GLM 5.1 costs less

Repository review

50K input + 3K output tokens

Claude Opus 4.7$0.325Fits in one request
GLM 5.1$0.083Fits in one request

GLM 5.1 costs less

Agent loop

200K input + 10K output tokens

Claude Opus 4.7$1.25Fits in one request
GLM 5.1$0.324Exceeds the context window

GLM 5.1 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.1
SpecificationAnthropic Claude Opus 4.7Z.ai GLM 5.1
MakerAnthropicZ.ai
WeightsNo public weights listedOpen weights
ReleasedApril 16, 2026April 7, 2026
Context window1M205K
Input $/Mtok$5.00$1.40
Output $/Mtok$25.00$4.40
Coding index67.549.2
Independent measurements behind it43
Cost per solved task$2.95$0.60
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Opus 4.7 better than GLM 5.1 for coding?

Pick Claude Opus 4.7 for coding: it scores 67.5 on the Vibe Coding Index against 49.2 for GLM 5.1. Pick GLM 5.1 for output tokens 5.7x cheaper ($4.40 vs $25.00 per million) and a lower cost per solved task ($0.60 against $2.95).

Which is cheaper, Claude Opus 4.7 or GLM 5.1?

Claude Opus 4.7 costs $5.00 per million input tokens and $25.00 per million output tokens; GLM 5.1 costs $1.40 and $4.40. Per solved SWE-bench Verified task, Claude Opus 4.7 costs $2.95 and GLM 5.1 $0.60.

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

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

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

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