Enter opens the highlighted result. Esc closes.

Claude Opus 4.7 vs GLM 5.2

Claude Opus 4.7 leads GLM 5.2 on coding, 65.8 to 59.7 on the Vibe Coding Index, and GLM 5.2 costs 5.7x less per output token ($4.40 vs $25.00 per million). Updated December 6, 2026; 83 benchmarks have a result for both.

Claude Opus 4.7Anthropic
Coding
65.8
Overall
74.0
Output $/M
$25.00
67
GLM 5.2Z.ai
Coding
59.7
Overall
65.2
Output $/M
$4.40
15
vs boards won of 83 shared, 1 tied

Claude Opus 4.7 or GLM 5.2: which to pick

Pick Claude Opus 4.7 for coding: it scores 65.8 on the Vibe Coding Index against 59.7 for GLM 5.2.

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

Shared results
83
Claude Opus 4.7 only
25
GLM 5.2 only
28
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 65.8 from 3 benchmarks, GLM 5.2 59.7 from 3 benchmarks.
Widest category
Reasoning, 10.8 points apart on average over 14 shared benchmarks.
Widest single gap
ARC-AGI-2: Claude Opus 4.7 75.8% against GLM 5.2 22.8%, 53.1 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.7 $25.00 against GLM 5.2 $4.40 per million output tokens, 5.7x apart.
Context window
Claude Opus 4.7 takes 1M tokens, GLM 5.2 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.2Ties
Coding1071 tie
Intelligence10
Agentic work72
Reasoning131
Math61
Knowledge91
General213
All shared boards67151 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index107
Coding benchmarks for Claude Opus 4.7 and GLM 5.2
BenchmarkClaude Opus 4.7GLM 5.2Leader
LMArena WebDev15571608GLM 5.2
LiveCodeBench (Vals AI)85.1%69.5%Claude Opus 4.7
SWE-bench Verified (Vals AI)82.0%82.8%GLM 5.2
Code migration (Vals AI)43.9%37.9%Claude Opus 4.7
ProgramBench (Vals AI)0.0%0.5%GLM 5.2
Terminal-Bench 2.1 (Vals AI)68.5%67.8%Claude Opus 4.7
SkillsBench (Vals AI)Not measured45.1%Only GLM 5.2 measured
SciCodeNot measured51.2%Only GLM 5.2 measured
Terminal-Bench Hard (Artificial Analysis run)54.5%50.8%Claude Opus 4.7
Terminal-Bench 4.0 (Artificial Analysis run)Not measured1.0%Only GLM 5.2 measured
Terminal-Bench80.2%Not measuredOnly Claude Opus 4.7 measured
FrontierCode38.5%24.5%Claude Opus 4.7
GSO-Bench44.1%Not measuredOnly Claude Opus 4.7 measured
WeirdML76.4%70.1%Claude Opus 4.7
MirrorCode43.3%36.7%Claude Opus 4.7
ALE-BenchNot measured1047.0Only GLM 5.2 measured
LMArena Text: coding15191488Claude Opus 4.7
LMArena Text: software and IT15161487Claude Opus 4.7
LMArena WebDev: React15591621GLM 5.2
LMArena WebDev: HTML15521567GLM 5.2
LMArena WebDev: from an image1579Not measuredOnly Claude Opus 4.7 measured
SWE Atlas: Codebase QnA40.3%48.1%GLM 5.2
SWE Atlas: Refactoring48.6%42.4%Claude Opus 4.7
SWE Atlas: Test Writing38.5%41.5%GLM 5.2
GameBench 2Not measured49.9Only GLM 5.2 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
Terminal-Bench 3.0Not measured4.6%Only GLM 5.2 measured
ProgramBench0.0%0.0%Tie
Neither model has a result on the other 23 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Claude Opus 4.7 and GLM 5.2
BenchmarkClaude Opus 4.7GLM 5.2Leader
Epoch Capabilities Index157.3153.0Claude Opus 4.7
Neither model has a result on the other 1 board here
Agentic workLike-for-likePublic boards, shown as published, kept out of the index72
Agentic work benchmarks for Claude Opus 4.7 and GLM 5.2
BenchmarkClaude Opus 4.7GLM 5.2Leader
Design Arena: agents building web appsNot measured1184Only GLM 5.2 measured
Design Arena: agents building full-stack appsNot measured1288Only GLM 5.2 measured
Design Arena: agents building mobile appsNot measured1152Only GLM 5.2 measured
Design Arena: agents building Android appsNot measured1162Only GLM 5.2 measured
Design Arena: agents building Godot gamesNot measured1142Only GLM 5.2 measured
Design Arena: agents building gamesNot measured1156Only GLM 5.2 measured
Design Arena: HTML slidesNot measured1077Only GLM 5.2 measured
Design Arena: PowerPoint slidesNot measured1157Only GLM 5.2 measured
Design Arena: spreadsheetsNot measured1123Only GLM 5.2 measured
SREBench (Vals AI)Not measured0.0%Only GLM 5.2 measured
Finance Agent (Vals AI)51.5%49.7%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%31.3%Claude Opus 4.7
Excel Modeling Benchmark (Vals AI)63.7%61.5%Claude Opus 4.7
τ²-Bench Telecom88.6%99.1%GLM 5.2
APEX-Agents49.2%45.2%Claude Opus 4.7
OSWorld 2.018.2%Not measuredOnly Claude Opus 4.7 measured
PostTrainBench24.3%30.4%GLM 5.2
Vending-Bench 2$10,937$8,314Claude Opus 4.7
LMArena Search1230Not measuredOnly Claude Opus 4.7 measured
MCP Atlas79.1%77.8%Claude Opus 4.7
Toolathlon-VerifiedNot measured59.9%Only GLM 5.2 measured
τ³-Banking40.2%37.1%Claude Opus 4.7
Neither model has a result on the other 21 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index131
Reasoning benchmarks for Claude Opus 4.7 and GLM 5.2
BenchmarkClaude Opus 4.7GLM 5.2Leader
GPQA Diamond90.2%85.6%Claude Opus 4.7
MMMU Pro (Vals AI)85.5%Not measuredOnly Claude Opus 4.7 measured
GPQA Diamond (Artificial Analysis run)91.4%89.5%Claude Opus 4.7
Humanity's Last Exam (Artificial Analysis run)42.3%41.1%Claude Opus 4.7
HLE-Diamond (Artificial Analysis run)Not measured17.7%Only GLM 5.2 measured
GPQA Diamond (Epoch AI run)90.2%91.9%GLM 5.2
ARC-AGI93.5%77.0%Claude Opus 4.7
ARC-AGI-275.8%22.8%Claude Opus 4.7
SimpleBench61.7%58.8%Claude Opus 4.7
Chess puzzles41.0%22.0%Claude Opus 4.7
Mystery game puzzles28.0%19.0%Claude Opus 4.7
EBR-bench19.0%9.5%Claude Opus 4.7
LMArena Text: hard prompts15061481Claude Opus 4.7
LMArena Text: expert15201488Claude Opus 4.7
LMArena Text: hard prompts in English15081481Claude Opus 4.7
LMArena Vision: diagrams1337Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: homework1338Not measuredOnly Claude Opus 4.7 measured
Kagi LLM Benchmark80.7%62.6%Claude Opus 4.7
Neither model has a result on the other 8 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index61
Math benchmarks for Claude Opus 4.7 and GLM 5.2
BenchmarkClaude Opus 4.7GLM 5.2Leader
AIME96.3%Not measuredOnly Claude Opus 4.7 measured
OTIS Mock AIME97.8%86.4%Claude Opus 4.7
FrontierMath, tiers 1 to 370.2%59.2%Claude Opus 4.7
FrontierMath, tier 431.7%29.3%Claude Opus 4.7
ProofBench54.0%35.0%Claude Opus 4.7
LMArena Text: math14991485Claude Opus 4.7
LMArena Text: mathematical work15081490Claude Opus 4.7
MathArena18.7%21.1%GLM 5.2
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index91
Knowledge benchmarks for Claude Opus 4.7 and GLM 5.2
BenchmarkClaude Opus 4.7GLM 5.2Leader
MMLU Pro89.9%86.7%Claude Opus 4.7
LegalBench (Vals AI)85.3%84.1%Claude Opus 4.7
CaseLaw (Vals AI)68.4%Not measuredOnly Claude Opus 4.7 measured
CorpFin (Vals AI)66.1%66.1%GLM 5.2
TaxEval (Vals AI)75.3%73.3%Claude Opus 4.7
MortgageTax (Vals AI)70.3%Not measuredOnly Claude Opus 4.7 measured
MedCode (Vals AI)54.9%40.8%Claude Opus 4.7
AA-OmniscienceNot measured0.6Only GLM 5.2 measured
SimpleQA Verified51.7%34.2%Claude Opus 4.7
LMArena Text: science15081489Claude Opus 4.7
LMArena Text: medicine and healthcare14951476Claude Opus 4.7
LMArena Text: legal and government15051490Claude Opus 4.7
LMArena Text: business and finance14911450Claude Opus 4.7
Neither model has a result on the other 8 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.2
BenchmarkClaude Opus 4.7GLM 5.2Leader
Design Arena: websitesNot measured1323Only GLM 5.2 measured
Design Arena: UI componentsNot measured1271Only GLM 5.2 measured
Design Arena: game devNot measured1234Only GLM 5.2 measured
Design Arena: data vizNot measured1275Only GLM 5.2 measured
Design Arena: 3DNot measured1247Only GLM 5.2 measured
Design Arena: all code categoriesNot measured1328Only GLM 5.2 measured
Design Arena: SVGNot measured1245Only GLM 5.2 measured
Design Arena: ASCII artNot measured1174Only GLM 5.2 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index213
General benchmarks for Claude Opus 4.7 and GLM 5.2
BenchmarkClaude Opus 4.7GLM 5.2Leader
MedScribe (Vals AI)83.0%83.5%GLM 5.2
Vals Multimodal Index67.4%Not measuredOnly Claude Opus 4.7 measured
IFBench58.6%73.3%GLM 5.2
Long context reasoning (AA-LCR)78.7%78.3%Claude Opus 4.7
GDPval-AA13641383GLM 5.2
DTBench94.7%93.6%Claude Opus 4.7
LMCA52.2%45.8%Claude Opus 4.7
Surface Evolver BenchNot measured55.6%Only GLM 5.2 measured
Furniture assembly33.3%Not measuredOnly Claude Opus 4.7 measured
ExploitBench26.5%Not measuredOnly Claude Opus 4.7 measured
LMArena Text14901470Claude Opus 4.7
LMArena Text: instruction following14981467Claude Opus 4.7
LMArena Text: creative writing14871460Claude Opus 4.7
LMArena Vision1318Not measuredOnly Claude Opus 4.7 measured
LMArena Text: English14961475Claude Opus 4.7
LMArena Text: non-English14811458Claude Opus 4.7
LMArena Text: Chinese15331523Claude Opus 4.7
LMArena Text: German14961467Claude Opus 4.7
LMArena Text: Japanese14741452Claude Opus 4.7
LMArena Text: Korean14671430Claude Opus 4.7
LMArena Text: French15031477Claude Opus 4.7
LMArena Text: Spanish14951480Claude Opus 4.7
LMArena Text: Russian14951466Claude Opus 4.7
LMArena Text: Polish14911459Claude Opus 4.7
LMArena Text: multi-turn15061470Claude Opus 4.7
LMArena Text: longer queries15061479Claude Opus 4.7
LMArena Text: writing and language14931462Claude Opus 4.7
LMArena Text: entertainment and media14751448Claude Opus 4.7
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 412931208Claude Opus 4.7
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.2
BenchmarkClaude Opus 4.7GLM 5.2Leader
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.2$0.0036Fits in one request

GLM 5.2 costs less

Repository review

50K input + 3K output tokens

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

GLM 5.2 costs less

Agent loop

200K input + 10K output tokens

Claude Opus 4.7$1.25Fits in one request
GLM 5.2$0.324Fits in one request

GLM 5.2 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.2
SpecificationAnthropic Claude Opus 4.7Z.ai GLM 5.2
MakerAnthropicZ.ai
WeightsNo public weights listedOpen weights
ReleasedApril 16, 2026June 16, 2026
Context window1M1.05M
Input $/Mtok$5.00$1.40
Output $/Mtok$25.00$4.40
Coding index65.859.7
Independent measurements behind it33
Cost per solved task$2.95$0.86
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Opus 4.7 better than GLM 5.2 for coding?

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

Which is cheaper, Claude Opus 4.7 or GLM 5.2?

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

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

GLM 5.2, with 1.05M tokens against 1M.

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

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