Enter opens the highlighted result. Esc closes.

Claude Sonnet 4.5 vs GLM 5.2

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

Claude Sonnet 4.5Anthropic
Coding
59.1
Overall
20.7
Output $/M
$15.00
7
GLM 5.2Z.ai
Coding
57.7
Overall
33.7
Output $/M
$7.00
65
vs boards won of 72 shared

Decision reading

Claude Sonnet 4.5 and GLM 5.2 are level for coding, 59.1 against 57.7 on the Vibe Coding Index, so price and context decide.

Pick GLM 5.2 when output tokens cost 2.1x less, or when a solved task costs $0.86 against $1.16. Pick Claude Sonnet 4.5 when what matters is LiveCodeBench (Vals AI) or LMArena Text: coding, where it leads.

Shared results
72
Claude Sonnet 4.5 only
20
GLM 5.2 only
25
Like-for-like categories
8 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 Sonnet 4.5 59.1 from 2 benchmarks, GLM 5.2 57.7 from 1 benchmark.
Widest category
Agentic work, 19.5 points apart on average over 5 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): Claude Sonnet 4.5 22.6% against GLM 5.2 64.0%, 41.3 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 4.5 $15.00 against GLM 5.2 $7.00 per million output tokens, 2.1x apart.
Context window
Claude Sonnet 4.5 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 Sonnet 4.5BarsGLM 5.2Ties
Coding28
Intelligence02
Agentic work05
Reasoning011
Math06
Knowledge37
Web design17
General119
All shared boards765
CodingLike-for-likeFour of these boards feed the Vibe Coding Index28
Coding benchmarks for Claude Sonnet 4.5 and GLM 5.2
BenchmarkClaude Sonnet 4.5GLM 5.2Leader
SWE-bench Verified74.8%Not measuredOnly Claude Sonnet 4.5 measured
SWE-bench Multilingual67.0%Not measuredOnly Claude Sonnet 4.5 measured
LMArena WebDev13941604GLM 5.2
AA Coding Index52.168.8GLM 5.2
LiveCodeBench (Vals AI)73.0%69.5%Claude Sonnet 4.5
SWE-bench Verified (Vals AI)70.0%82.8%GLM 5.2
Vibe Code Bench (Vals AI)22.6%64.0%GLM 5.2
Code migration (Vals AI)Not measured37.9%Only GLM 5.2 measured
ProgramBench (Vals AI)Not measured0.5%Only GLM 5.2 measured
Terminal-Bench 2.1 (Vals AI)Not measured67.8%Only GLM 5.2 measured
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)Not measured50.8%Only GLM 5.2 measured
Terminal-Bench46.5%Not measuredOnly Claude Sonnet 4.5 measured
FrontierCodeNot measured24.5%Only GLM 5.2 measured
GSO-Bench14.7%Not measuredOnly Claude Sonnet 4.5 measured
WeirdML47.7%70.1%GLM 5.2
Cybench60.0%Not measuredOnly Claude Sonnet 4.5 measured
ALE-BenchNot measured1047.0Only GLM 5.2 measured
LMArena Text: coding14881487Claude Sonnet 4.5
LMArena Text: software and IT14731486GLM 5.2
LMArena WebDev: React13861617GLM 5.2
LMArena WebDev: HTML13991565GLM 5.2
Neither model has a result on the other 15 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Claude Sonnet 4.5 and GLM 5.2
BenchmarkClaude Sonnet 4.5GLM 5.2Leader
AA Intelligence Index20.733.7GLM 5.2
Epoch Capabilities Index146.7151.9GLM 5.2
Agentic workLike-for-likePublic boards, shown as published, kept out of the index05
Agentic work benchmarks for Claude Sonnet 4.5 and GLM 5.2
BenchmarkClaude Sonnet 4.5GLM 5.2Leader
AA Agentic Index15.838.4GLM 5.2
Design Arena: agents building web apps10601222GLM 5.2
Design Arena: agents building full-stack apps10501241GLM 5.2
Design Arena: agents building mobile apps11371160GLM 5.2
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)Not measured49.7%Only GLM 5.2 measured
Legal Research Bench (Vals AI)Not measured31.3%Only GLM 5.2 measured
Excel Modeling Benchmark (Vals AI)Not measured61.5%Only GLM 5.2 measured
τ²-Bench TelecomNot measured99.1%Only GLM 5.2 measured
APEX-AgentsNot measured45.2%Only GLM 5.2 measured
METR time horizons67.4%Not measuredOnly Claude Sonnet 4.5 measured
Remote Labor Index2.1%Not measuredOnly Claude Sonnet 4.5 measured
GDPval42.5%Not measuredOnly Claude Sonnet 4.5 measured
DeepResearch Bench52.6%Not measuredOnly Claude Sonnet 4.5 measured
PostTrainBenchNot measured31.7%Only GLM 5.2 measured
OSWorld62.9%Not measuredOnly Claude Sonnet 4.5 measured
Vending-Bench 2$3,839$8,314GLM 5.2
Neither model has a result on the other 17 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index011
Reasoning benchmarks for Claude Sonnet 4.5 and GLM 5.2
BenchmarkClaude Sonnet 4.5GLM 5.2Leader
GPQA Diamond81.6%85.6%GLM 5.2
MMMU Pro (Vals AI)79.3%Not measuredOnly Claude Sonnet 4.5 measured
GPQA Diamond (Artificial Analysis run)Not measured89.5%Only GLM 5.2 measured
Humanity's Last Exam (Artificial Analysis run)Not measured41.1%Only GLM 5.2 measured
GPQA Diamond (Epoch AI run)82.3%91.9%GLM 5.2
ARC-AGI63.7%77.0%GLM 5.2
ARC-AGI-213.6%22.8%GLM 5.2
SimpleBench54.3%58.8%GLM 5.2
Chess puzzles10.0%22.0%GLM 5.2
Mystery game puzzles17.0%19.0%GLM 5.2
EBR-bench2.4%9.5%GLM 5.2
VPCT39.8%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: hard prompts14621481GLM 5.2
LMArena Text: expert14831487GLM 5.2
LMArena Text: hard prompts in English14711481GLM 5.2
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index06
Math benchmarks for Claude Sonnet 4.5 and GLM 5.2
BenchmarkClaude Sonnet 4.5GLM 5.2Leader
AIME88.2%Not measuredOnly Claude Sonnet 4.5 measured
MGSM (Vals AI)94.3%Not measuredOnly Claude Sonnet 4.5 measured
OTIS Mock AIME77.8%86.4%GLM 5.2
FrontierMath, tiers 1 to 323.9%59.2%GLM 5.2
FrontierMath, tier 42.4%29.3%GLM 5.2
ProofBench19.0%35.0%GLM 5.2
MATH level 597.7%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: math14491483GLM 5.2
LMArena Text: mathematical work14621489GLM 5.2
Neither model has a result on the other 4 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index37
Knowledge benchmarks for Claude Sonnet 4.5 and GLM 5.2
BenchmarkClaude Sonnet 4.5GLM 5.2Leader
MMLU Pro87.4%86.7%Claude Sonnet 4.5
LegalBench (Vals AI)84.1%84.1%Claude Sonnet 4.5
CaseLaw (Vals AI)62.2%Not measuredOnly Claude Sonnet 4.5 measured
CorpFin (Vals AI)62.0%66.1%GLM 5.2
TaxEval (Vals AI)73.3%73.3%GLM 5.2
MortgageTax (Vals AI)64.0%Not measuredOnly Claude Sonnet 4.5 measured
MedQA (Vals AI)94.7%Not measuredOnly Claude Sonnet 4.5 measured
MedCode (Vals AI)44.1%40.8%Claude Sonnet 4.5
SimpleQA Verified30.7%34.2%GLM 5.2
LMArena Text: science14481489GLM 5.2
LMArena Text: medicine and healthcare14441475GLM 5.2
LMArena Text: legal and government14511486GLM 5.2
LMArena Text: business and finance14401451GLM 5.2
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index17
Web design benchmarks for Claude Sonnet 4.5 and GLM 5.2
BenchmarkClaude Sonnet 4.5GLM 5.2Leader
Design Arena: websites11901285GLM 5.2
Design Arena: UI components11731296GLM 5.2
Design Arena: game dev11661268GLM 5.2
Design Arena: data viz11671285GLM 5.2
Design Arena: 3D11581288GLM 5.2
Design Arena: all code categories11831288GLM 5.2
Design Arena: SVG11141214GLM 5.2
Design Arena: ASCII art12041190Claude Sonnet 4.5
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index119
General benchmarks for Claude Sonnet 4.5 and GLM 5.2
BenchmarkClaude Sonnet 4.5GLM 5.2Leader
SAGE (Vals AI)36.1%Not measuredOnly Claude Sonnet 4.5 measured
MedScribe (Vals AI)84.5%83.5%Claude Sonnet 4.5
IFBenchNot measured73.3%Only GLM 5.2 measured
Long context reasoning (AA-LCR)Not measured78.3%Only GLM 5.2 measured
DTBench83.2%93.6%GLM 5.2
LMCA38.8%45.8%GLM 5.2
Surface Evolver BenchNot measured55.6%Only GLM 5.2 measured
LMArena Text14381470GLM 5.2
LMArena Text: instruction following14591466GLM 5.2
LMArena Text: creative writing14421463GLM 5.2
LMArena Text: English14501475GLM 5.2
LMArena Text: non-English14251459GLM 5.2
LMArena Text: Chinese14601522GLM 5.2
LMArena Text: German14271470GLM 5.2
LMArena Text: Japanese13901450GLM 5.2
LMArena Text: Korean14021440GLM 5.2
LMArena Text: French14591479GLM 5.2
LMArena Text: Spanish14581478GLM 5.2
LMArena Text: Russian14371468GLM 5.2
LMArena Text: Polish14231456GLM 5.2
LMArena Text: multi-turn14651469GLM 5.2
LMArena Text: longer queries14751480GLM 5.2
LMArena Text: writing and language14421463GLM 5.2
LMArena Text: entertainment and media14281450GLM 5.2
LMArena Document1450Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 21 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Sonnet 4.5 and GLM 5.2
BenchmarkClaude Sonnet 4.5GLM 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 Sonnet 4.5$0.011Fits in one request
GLM 5.2$0.0035Fits in one request

GLM 5.2 costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 4.5$0.195Fits in one request
GLM 5.2$0.023Fits in one request

GLM 5.2 costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 4.5$0.750Fits 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 Sonnet 4.5 and GLM 5.2
SpecificationAnthropic Claude Sonnet 4.5Z.ai GLM 5.2
MakerAnthropicZ.ai
WeightsNo public weights listedOpen weights
ReleasedSeptember 29, 2025June 16, 2026
Context window1M1.05M
Input $/Mtok$3.00$0.0341
Output $/Mtok$15.00$7.00
Coding index59.157.7
Independent measurements behind it21
Cost per solved task$1.16$0.86
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 4.5 better than GLM 5.2 for coding?

Claude Sonnet 4.5 and GLM 5.2 are level for coding, 59.1 against 57.7 on the Vibe Coding Index, so price and context decide. Pick GLM 5.2 when output tokens cost 2.1x less, or when a solved task costs $0.86 against $1.16. Pick Claude Sonnet 4.5 when what matters is LiveCodeBench (Vals AI) or LMArena Text: coding, where it leads.

Which is cheaper, Claude Sonnet 4.5 or GLM 5.2?

Claude Sonnet 4.5 costs $3.00 per million input tokens and $15.00 per million output tokens; GLM 5.2 costs $0.0341 and $7.00. Per solved SWE-bench Verified task, Claude Sonnet 4.5 costs $1.16 and GLM 5.2 $0.86.

Which has the bigger context window, Claude Sonnet 4.5 or GLM 5.2?

GLM 5.2, with 1.05M tokens against 1M.

How many benchmarks is the Claude Sonnet 4.5 vs GLM 5.2 comparison based on?

72 benchmarks have a result for both models as of October 21, 2026. Claude Sonnet 4.5's coding index rests on 2 independent benchmarks 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