LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

Claude Opus 4.7 vs GLM 5.2

Updated October 21, 2026. 76 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

Claude Opus 4.7Anthropic
Coding
51.1
Overall
40.7
Output $/M
$25.00
65
GLM 5.2Z.ai
Coding
57.7
Overall
33.7
Output $/M
$7.00
11
vs boards won of 76 shared

Decision reading

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

Pick Claude Opus 4.7 when what matters is AA Coding Index or LiveCodeBench (Vals AI), where it leads.

Shared results
76
Claude Opus 4.7 only
25
GLM 5.2 only
21
Like-for-like categories
7 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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 51.1 from 1 benchmark, GLM 5.2 57.7 from 1 benchmark.
Widest category
Reasoning, 10.3 points apart on average over 13 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 $7.00 per million output tokens, 3.6x 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
Coding105
Intelligence20
Agentic work62
Reasoning121
Math60
Knowledge91
General202
All shared boards6511
CodingLike-for-likeFour of these boards feed the Vibe Coding Index105
Coding benchmarks for Claude Opus 4.7 and GLM 5.2
BenchmarkClaude Opus 4.7GLM 5.2Leader
LMArena WebDev15581604GLM 5.2
AA Coding Index73.668.8Claude Opus 4.7
LiveCodeBench (Vals AI)85.1%69.5%Claude Opus 4.7
SWE-bench Verified (Vals AI)82.0%82.8%GLM 5.2
Vibe Code Bench (Vals AI)71.0%64.0%Claude Opus 4.7
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-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
MirrorCode31.1%Not measuredOnly Claude Opus 4.7 measured
ALE-BenchNot measured1047.0Only GLM 5.2 measured
LMArena Text: coding15191487Claude Opus 4.7
LMArena Text: software and IT15161486Claude Opus 4.7
LMArena WebDev: React15601617GLM 5.2
LMArena WebDev: HTML15541565GLM 5.2
LMArena WebDev: from an image1577Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 16 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Opus 4.7 and GLM 5.2
BenchmarkClaude Opus 4.7GLM 5.2Leader
AA Intelligence Index40.733.7Claude Opus 4.7
Epoch Capabilities Index156.8151.9Claude Opus 4.7
Agentic workLike-for-likePublic boards, shown as published, kept out of the index62
Agentic work benchmarks for Claude Opus 4.7 and GLM 5.2
BenchmarkClaude Opus 4.7GLM 5.2Leader
AA Agentic Index38.638.4Claude Opus 4.7
Design Arena: agents building web appsNot measured1222Only GLM 5.2 measured
Design Arena: agents building full-stack appsNot measured1241Only GLM 5.2 measured
Design Arena: agents building mobile appsNot measured1160Only GLM 5.2 measured
Design Arena: agents building Android appsNot measured1184Only GLM 5.2 measured
Design Arena: agents building Godot gamesNot measured1142Only GLM 5.2 measured
Design Arena: agents building gamesNot measured1206Only GLM 5.2 measured
Design Arena: HTML slidesNot measured1175Only GLM 5.2 measured
Design Arena: PowerPoint slidesNot measured1195Only 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
PostTrainBench28.6%31.7%GLM 5.2
Vending-Bench 2$10,937$8,314Claude Opus 4.7
LMArena Search1230Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 19 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index121
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
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: expert15211487Claude Opus 4.7
LMArena Text: hard prompts in English15081481Claude Opus 4.7
LMArena Vision: diagrams1336Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: homework1337Not 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.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: math14981483Claude Opus 4.7
LMArena Text: mathematical work15091489Claude 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 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
SimpleQA Verified51.7%34.2%Claude Opus 4.7
LMArena Text: science15081489Claude Opus 4.7
LMArena Text: medicine and healthcare14951475Claude Opus 4.7
LMArena Text: legal and government15041486Claude Opus 4.7
LMArena Text: business and finance14901451Claude Opus 4.7
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.2
BenchmarkClaude Opus 4.7GLM 5.2Leader
Design Arena: websitesNot measured1285Only GLM 5.2 measured
Design Arena: UI componentsNot measured1296Only GLM 5.2 measured
Design Arena: game devNot measured1268Only GLM 5.2 measured
Design Arena: data vizNot measured1285Only GLM 5.2 measured
Design Arena: 3DNot measured1288Only GLM 5.2 measured
Design Arena: all code categoriesNot measured1288Only GLM 5.2 measured
Design Arena: SVGNot measured1214Only GLM 5.2 measured
Design Arena: ASCII artNot measured1190Only 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 index202
General benchmarks for Claude Opus 4.7 and GLM 5.2
BenchmarkClaude Opus 4.7GLM 5.2Leader
SAGE (Vals AI)56.1%Not measuredOnly Claude Opus 4.7 measured
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
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 following14981466Claude Opus 4.7
LMArena Text: creative writing14861463Claude Opus 4.7
LMArena Vision1317Not measuredOnly Claude Opus 4.7 measured
LMArena Text: English14961475Claude Opus 4.7
LMArena Text: non-English14801459Claude Opus 4.7
LMArena Text: Chinese15311522Claude Opus 4.7
LMArena Text: German14951470Claude Opus 4.7
LMArena Text: Japanese14741450Claude Opus 4.7
LMArena Text: Korean14641440Claude Opus 4.7
LMArena Text: French15031479Claude Opus 4.7
LMArena Text: Spanish14941478Claude Opus 4.7
LMArena Text: Russian14941468Claude Opus 4.7
LMArena Text: Polish14891456Claude Opus 4.7
LMArena Text: multi-turn15051469Claude Opus 4.7
LMArena Text: longer queries15051480Claude Opus 4.7
LMArena Text: writing and language14921463Claude Opus 4.7
LMArena Text: entertainment and media14741450Claude 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.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.0035Fits 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.023Fits 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.077Fits 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$0.0341
Output $/Mtok$25.00$7.00
Coding index51.157.7
Independent measurements behind it11
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 GLM 5.2 for coding: it scores 57.7 on the Vibe Coding Index against 51.1 for Claude Opus 4.7. Pick Claude Opus 4.7 when what matters is AA Coding Index or LiveCodeBench (Vals AI), where it leads.

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 $0.0341 and $7.00. 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?

76 benchmarks have a result for both models as of October 21, 2026. Claude Opus 4.7's coding index rests on 1 independent benchmark and GLM 5.2's on 1. Where only one model has a result, the page says so instead of naming a winner.

Compare next