Enter opens the highlighted result. Esc closes.

Claude Sonnet 4.5 vs GLM 5.2

GLM 5.2 leads Claude Sonnet 4.5 on coding, 59.7 to 53.1 on the Vibe Coding Index, and GLM 5.2 costs 3.4x less per output token ($4.40 vs $15.00 per million). Updated December 6, 2026; 71 benchmarks have a result for both.

Claude Sonnet 4.5Anthropic
Coding
53.1
Overall
57.7
Output $/M
$15.00
7
GLM 5.2Z.ai
Coding
59.7
Overall
65.2
Output $/M
$4.40
64
vs boards won of 71 shared

Claude Sonnet 4.5 or GLM 5.2: which to pick

Pick GLM 5.2 for coding: it scores 59.7 on the Vibe Coding Index against 53.1 for Claude Sonnet 4.5.

Pick Claude Sonnet 4.5 for work measured by LiveCodeBench (Vals AI) or LMArena Text: coding, where it leads.

Shared results
71
Claude Sonnet 4.5 only
26
GLM 5.2 only
40
Like-for-like categories
8 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 Sonnet 4.5 53.1 from 2 benchmarks, GLM 5.2 59.7 from 3 benchmarks.
Widest category
Agentic work, 18.8 points apart on average over 5 shared benchmarks.
Widest single gap
LMArena WebDev: React: Claude Sonnet 4.5 1385 against GLM 5.2 1621, 35.8 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 4.5 $15.00 against GLM 5.2 $4.40 per million output tokens, 3.4x 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
Coding26
Intelligence01
Agentic work05
Reasoning012
Math07
Knowledge37
Web design17
General119
All shared boards764
CodingLike-for-likeSix of these boards feed the Vibe Coding Index26
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 WebDev13941608GLM 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
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-Bench 4.0 (Artificial Analysis run)Not measured1.0%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
MirrorCodeNot measured36.7%Only GLM 5.2 measured
Cybench60.0%Not measuredOnly Claude Sonnet 4.5 measured
ALE-BenchNot measured1047.0Only GLM 5.2 measured
LMArena Text: coding14881488Claude Sonnet 4.5
LMArena Text: software and IT14731487GLM 5.2
LMArena WebDev: React13851621GLM 5.2
LMArena WebDev: HTML13991567GLM 5.2
SWE Atlas: Codebase QnANot measured48.1%Only GLM 5.2 measured
SWE Atlas: RefactoringNot measured42.4%Only GLM 5.2 measured
SWE Atlas: Test WritingNot measured41.5%Only GLM 5.2 measured
GameBench 2Not measured49.9Only GLM 5.2 measured
Terminal-Bench 2.046.5%Not measuredOnly Claude Sonnet 4.5 measured
Terminal-Bench 3.0Not measured4.6%Only GLM 5.2 measured
ProgramBenchNot measured0.0%Only GLM 5.2 measured
Neither model has a result on the other 22 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Claude Sonnet 4.5 and GLM 5.2
BenchmarkClaude Sonnet 4.5GLM 5.2Leader
Epoch Capabilities Index147.5153.0GLM 5.2
Neither model has a result on the other 1 board here
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
Design Arena: agents building web apps10211184GLM 5.2
Design Arena: agents building full-stack apps10961288GLM 5.2
Design Arena: agents building mobile apps11271152GLM 5.2
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)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 measured30.4%Only GLM 5.2 measured
OSWorld62.9%Not measuredOnly Claude Sonnet 4.5 measured
Vending-Bench 2$3,839$8,314GLM 5.2
LMArena Search1159Not measuredOnly Claude Sonnet 4.5 measured
Berkeley Function Calling Leaderboard (BFCL)73.2%Not measuredOnly Claude Sonnet 4.5 measured
MCP Atlas59.5%77.8%GLM 5.2
Toolathlon-VerifiedNot measured59.9%Only GLM 5.2 measured
τ³-BankingNot measured37.1%Only GLM 5.2 measured
Neither model has a result on the other 17 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index012
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
HLE-Diamond (Artificial Analysis run)Not measured17.7%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: expert14821488GLM 5.2
LMArena Text: hard prompts in English14711481GLM 5.2
Kagi LLM Benchmark57.9%62.6%GLM 5.2
Neither model has a result on the other 9 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index07
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: math14491485GLM 5.2
LMArena Text: mathematical work14621490GLM 5.2
MathArena12.0%21.1%GLM 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
AA-OmniscienceNot measured0.6Only GLM 5.2 measured
SimpleQA Verified30.7%34.2%GLM 5.2
GeoBench60.0%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: science14471489GLM 5.2
LMArena Text: medicine and healthcare14431476GLM 5.2
LMArena Text: legal and government14501490GLM 5.2
LMArena Text: business and finance14401450GLM 5.2
PRBench Finance43.8%Not measuredOnly Claude Sonnet 4.5 measured
PRBench Legal43.8%Not measuredOnly Claude Sonnet 4.5 measured
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: websites12291323GLM 5.2
Design Arena: UI components11501271GLM 5.2
Design Arena: game dev11321234GLM 5.2
Design Arena: data viz11591275GLM 5.2
Design Arena: 3D11191247GLM 5.2
Design Arena: all code categories12251328GLM 5.2
Design Arena: SVG11571245GLM 5.2
Design Arena: ASCII art11811174Claude 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
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
GDPval-AANot measured1383Only 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 following14591467GLM 5.2
LMArena Text: creative writing14421460GLM 5.2
LMArena Text: English14501475GLM 5.2
LMArena Text: non-English14251458GLM 5.2
LMArena Text: Chinese14601523GLM 5.2
LMArena Text: German14271467GLM 5.2
LMArena Text: Japanese13901452GLM 5.2
LMArena Text: Korean14011430GLM 5.2
LMArena Text: French14581477GLM 5.2
LMArena Text: Spanish14571480GLM 5.2
LMArena Text: Russian14371466GLM 5.2
LMArena Text: Polish14221459GLM 5.2
LMArena Text: multi-turn14651470GLM 5.2
LMArena Text: longer queries14751479GLM 5.2
LMArena Text: writing and language14421462GLM 5.2
LMArena Text: entertainment and media14281448GLM 5.2
LMArena Document1449Not measuredOnly Claude Sonnet 4.5 measured
MultiChallenge55.3%Not measuredOnly Claude Sonnet 4.5 measured
EQ-Bench 4Not measured1208Only GLM 5.2 measured
Neither model has a result on the other 22 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.0036Fits 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.083Fits 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.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 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$1.40
Output $/Mtok$15.00$4.40
Coding index53.159.7
Independent measurements behind it23
Cost per solved task$1.16$0.86
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 4.5 better than GLM 5.2 for coding?

Pick GLM 5.2 for coding: it scores 59.7 on the Vibe Coding Index against 53.1 for Claude Sonnet 4.5. Pick Claude Sonnet 4.5 for work measured by 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 $1.40 and $4.40. 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?

71 benchmarks have a result for both models as of December 6, 2026. Claude Sonnet 4.5's coding index rests on 2 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-sonnet-4-5-vs-glm-5-2" title="Claude Sonnet 4.5 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-sonnet-4-5-vs-glm-5-2">LLMBenchmark.ai, Claude Sonnet 4.5 vs GLM 5.2</a></p>