Enter opens the highlighted result. Esc closes.

Claude Sonnet 4.5 vs GLM 5

GLM 5 leads Claude Sonnet 4.5 on coding, 41.7 to 39.5 on the Vibe Coding Index, and GLM 5 costs 4.7x less per output token ($3.20 vs $15.00 per million). Updated October 22, 2026; 65 benchmarks have a result for both.

Claude Sonnet 4.5Anthropic
Coding
39.5
Overall
49.5
Output $/M
$15.00
29
GLM 5Z.ai
Coding
41.7
Overall
54.3
Output $/M
$3.20
36
vs boards won of 65 shared

Claude Sonnet 4.5 or GLM 5: which to pick

Pick GLM 5 for coding: it scores 41.7 on the Vibe Coding Index against 39.5 for Claude Sonnet 4.5.

Pick Claude Sonnet 4.5 for a larger context window (1M against 205K tokens) and work measured by SWE-bench Verified or LMArena Text: coding, where it leads.

Shared results
65
Claude Sonnet 4.5 only
30
GLM 5 only
11
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 39.5 from 3 benchmarks, GLM 5 41.7 from 3 benchmarks.
Widest category
Web design, 7.7 points apart on average over 8 shared benchmarks.
Widest single gap
ARC-AGI: Claude Sonnet 4.5 63.7% against GLM 5 44.7%, 19.0 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 4.5 $15.00 against GLM 5 $3.20 per million output tokens, 4.7x apart.
Context window
Claude Sonnet 4.5 takes 1M tokens, GLM 5 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 Sonnet 4.5BarsGLM 5Ties
Coding39
Intelligence11
Agentic work12
Reasoning63
Math22
Knowledge64
Web design17
General98
All shared boards2936
CodingLike-for-likeSix of these boards feed the Vibe Coding Index39
Coding benchmarks for Claude Sonnet 4.5 and GLM 5
BenchmarkClaude Sonnet 4.5GLM 5Leader
SWE-bench Verified74.8%72.8%Claude Sonnet 4.5
SWE-bench Multilingual67.0%69.7%GLM 5
LMArena WebDev13941435GLM 5
AA Coding Index52.1Not measuredOnly Claude Sonnet 4.5 measured
LiveCodeBench (Vals AI)73.0%81.9%GLM 5
SWE-bench Verified (Vals AI)70.0%71.4%GLM 5
Vibe Code Bench (Vals AI)22.6%23.4%GLM 5
Terminal-Bench Hard (Artificial Analysis run)Not measured43.2%Only GLM 5 measured
Terminal-Bench46.5%52.4%GLM 5
GSO-Bench14.7%Not measuredOnly Claude Sonnet 4.5 measured
WeirdML47.7%48.2%GLM 5
Cybench60.0%Not measuredOnly Claude Sonnet 4.5 measured
ALE-BenchNot measured765.6Only GLM 5 measured
LMArena Text: coding14881461Claude Sonnet 4.5
LMArena Text: software and IT14731460Claude Sonnet 4.5
LMArena WebDev: React13861424GLM 5
LMArena WebDev: HTML13991450GLM 5
Neither model has a result on the other 22 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
Intelligence benchmarks for Claude Sonnet 4.5 and GLM 5
BenchmarkClaude Sonnet 4.5GLM 5Leader
AA Intelligence Index20.727.9GLM 5
Epoch Capabilities Index146.7145.8Claude Sonnet 4.5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index12
Agentic work benchmarks for Claude Sonnet 4.5 and GLM 5
BenchmarkClaude Sonnet 4.5GLM 5Leader
AA Agentic Index15.8Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: agents building web apps1060Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: agents building full-stack apps10501123GLM 5
Design Arena: agents building mobile apps11371136Claude Sonnet 4.5
Design Arena: agents building Android appsNot measured1147Only GLM 5 measured
Design Arena: agents building Godot gamesNot measured1144Only GLM 5 measured
Design Arena: HTML slidesNot measured1098Only GLM 5 measured
τ²-Bench TelecomNot measured98.2%Only GLM 5 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
OSWorld62.9%Not measuredOnly Claude Sonnet 4.5 measured
Vending-Bench 2$3,839$4,432GLM 5
Berkeley Function Calling Leaderboard (BFCL)73.2%Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 26 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index63
Reasoning benchmarks for Claude Sonnet 4.5 and GLM 5
BenchmarkClaude Sonnet 4.5GLM 5Leader
GPQA Diamond81.6%83.3%GLM 5
MMMU Pro (Vals AI)79.3%Not measuredOnly Claude Sonnet 4.5 measured
GPQA Diamond (Artificial Analysis run)Not measured82.0%Only GLM 5 measured
Humanity's Last Exam (Artificial Analysis run)Not measured29.3%Only GLM 5 measured
GPQA Diamond (Epoch AI run)82.3%87.8%GLM 5
ARC-AGI63.7%44.7%Claude Sonnet 4.5
ARC-AGI-213.6%4.9%Claude Sonnet 4.5
SimpleBench54.3%53.2%Claude Sonnet 4.5
Chess puzzles10.0%Not measuredOnly Claude Sonnet 4.5 measured
Mystery game puzzles17.0%Not measuredOnly Claude Sonnet 4.5 measured
EBR-bench2.4%Not measuredOnly Claude Sonnet 4.5 measured
VPCT39.8%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: hard prompts14621452Claude Sonnet 4.5
LMArena Text: expert14831454Claude Sonnet 4.5
LMArena Text: hard prompts in English14711460Claude Sonnet 4.5
Kagi LLM Benchmark57.9%75.0%GLM 5
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index22
Math benchmarks for Claude Sonnet 4.5 and GLM 5
BenchmarkClaude Sonnet 4.5GLM 5Leader
AIME88.2%91.7%GLM 5
MGSM (Vals AI)94.3%Not measuredOnly Claude Sonnet 4.5 measured
OTIS Mock AIME77.8%80.0%GLM 5
FrontierMath, tiers 1 to 323.9%Not measuredOnly Claude Sonnet 4.5 measured
FrontierMath, tier 42.4%Not measuredOnly Claude Sonnet 4.5 measured
ProofBench19.0%Not measuredOnly Claude Sonnet 4.5 measured
MATH level 597.7%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: math14491440Claude Sonnet 4.5
LMArena Text: mathematical work14621451Claude Sonnet 4.5
Neither model has a result on the other 4 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index64
Knowledge benchmarks for Claude Sonnet 4.5 and GLM 5
BenchmarkClaude Sonnet 4.5GLM 5Leader
MMLU Pro87.4%86.0%Claude Sonnet 4.5
LegalBench (Vals AI)84.1%84.1%Claude Sonnet 4.5
CaseLaw (Vals AI)62.2%52.5%Claude Sonnet 4.5
CorpFin (Vals AI)62.0%62.9%GLM 5
TaxEval (Vals AI)73.3%70.0%Claude Sonnet 4.5
MortgageTax (Vals AI)64.0%Not measuredOnly Claude Sonnet 4.5 measured
MedQA (Vals AI)94.7%94.3%Claude Sonnet 4.5
MedCode (Vals AI)44.1%Not measuredOnly Claude Sonnet 4.5 measured
SimpleQA Verified30.7%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: science14481460GLM 5
LMArena Text: medicine and healthcare14441455GLM 5
LMArena Text: legal and government14511453GLM 5
LMArena Text: business and finance14401430Claude Sonnet 4.5
FACTS Benchmark Suite40.6%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
BenchmarkClaude Sonnet 4.5GLM 5Leader
Design Arena: websites11891247GLM 5
Design Arena: UI components11701227GLM 5
Design Arena: game dev11661234GLM 5
Design Arena: data viz11671228GLM 5
Design Arena: 3D11571228GLM 5
Design Arena: all code categories11821246GLM 5
Design Arena: SVG11151168GLM 5
Design Arena: ASCII art12051147Claude 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 index98
General benchmarks for Claude Sonnet 4.5 and GLM 5
BenchmarkClaude Sonnet 4.5GLM 5Leader
SAGE (Vals AI)36.1%Not measuredOnly Claude Sonnet 4.5 measured
MedScribe (Vals AI)84.5%Not measuredOnly Claude Sonnet 4.5 measured
IFBenchNot measured72.3%Only GLM 5 measured
Long context reasoning (AA-LCR)Not measured75.7%Only GLM 5 measured
DTBench83.2%Not measuredOnly Claude Sonnet 4.5 measured
LMCA38.8%Not measuredOnly Claude Sonnet 4.5 measured
CL-benchNot measured18.7%Only GLM 5 measured
LMArena Text14381446GLM 5
LMArena Text: instruction following14591428Claude Sonnet 4.5
LMArena Text: creative writing14421438Claude Sonnet 4.5
LMArena Text: English14501458GLM 5
LMArena Text: non-English14251430GLM 5
LMArena Text: Chinese14601511GLM 5
LMArena Text: German14271447GLM 5
LMArena Text: Japanese13901416GLM 5
LMArena Text: Korean14021423GLM 5
LMArena Text: French14591456Claude Sonnet 4.5
LMArena Text: Spanish14581454Claude Sonnet 4.5
LMArena Text: Russian14371436Claude Sonnet 4.5
LMArena Text: Polish14231434GLM 5
LMArena Text: multi-turn14651456Claude Sonnet 4.5
LMArena Text: longer queries14751446Claude Sonnet 4.5
LMArena Text: writing and language14421437Claude Sonnet 4.5
LMArena Text: entertainment and media14281426Claude Sonnet 4.5
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
BenchmarkClaude Sonnet 4.5GLM 5Leader
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$0.0026Fits in one request

GLM 5 costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 4.5$0.195Fits in one request
GLM 5$0.060Fits in one request

GLM 5 costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 4.5$0.750Fits in one request
GLM 5$0.232Exceeds the context window

GLM 5 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
SpecificationAnthropic Claude Sonnet 4.5Z.ai GLM 5
MakerAnthropicZ.ai
WeightsNo public weights listedOpen weights
ReleasedSeptember 29, 2025February 11, 2026
Context window1M205K
Input $/Mtok$3.00$1.00
Output $/Mtok$15.00$3.20
Coding index39.541.7
Independent measurements behind it33
Cost per solved task$1.16$0.63
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 4.5 better than GLM 5 for coding?

Pick GLM 5 for coding: it scores 41.7 on the Vibe Coding Index against 39.5 for Claude Sonnet 4.5. Pick Claude Sonnet 4.5 for a larger context window (1M against 205K tokens) and work measured by SWE-bench Verified or LMArena Text: coding, where it leads.

Which is cheaper, Claude Sonnet 4.5 or GLM 5?

Claude Sonnet 4.5 costs $3.00 per million input tokens and $15.00 per million output tokens; GLM 5 costs $1.00 and $3.20. Per solved SWE-bench Verified task, Claude Sonnet 4.5 costs $1.16 and GLM 5 $0.63.

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

Claude Sonnet 4.5, with 1M tokens against 205K.

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

65 benchmarks have a result for both models as of October 22, 2026. Claude Sonnet 4.5's coding index rests on 3 independent benchmarks and GLM 5'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" title="Claude Sonnet 4.5 vs GLM 5, 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">LLMBenchmark.ai, Claude Sonnet 4.5 vs GLM 5</a></p>