Enter opens the highlighted result. Esc closes.

Claude Sonnet 5 vs GLM 5

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

Claude Sonnet 5Anthropic
Coding
57.7
Overall
63.2
Output $/M
$10.00
49
GLM 5Z.ai
Coding
41.7
Overall
54.3
Output $/M
$3.20
14
vs boards won of 63 shared

Claude Sonnet 5 or GLM 5: which to pick

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

Pick GLM 5 for output tokens 3.1x cheaper ($3.20 vs $10.00 per million) and a lower cost per solved task ($0.63 against $1.87).

Shared results
63
Claude Sonnet 5 only
58
GLM 5 only
13
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 5 57.7 from 6 benchmarks, GLM 5 41.7 from 3 benchmarks.
Widest category
Coding, 16.4 points apart on average over 10 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): Claude Sonnet 5 81.3% against GLM 5 23.4%, 58.0 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 5 $10.00 against GLM 5 $3.20 per million output tokens, 3.1x apart.
Context window
Claude Sonnet 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 5BarsGLM 5Ties
Coding100
Intelligence20
Agentic work60
Reasoning80
Math30
Knowledge53
Web design80
General711
All shared boards4914
CodingLike-for-likeSix of these boards feed the Vibe Coding Index100
Coding benchmarks for Claude Sonnet 5 and GLM 5
BenchmarkClaude Sonnet 5GLM 5Leader
SWE-bench VerifiedNot measured72.8%Only GLM 5 measured
SWE-bench MultilingualNot measured69.7%Only GLM 5 measured
LiveBench coding74.7%Not measuredOnly Claude Sonnet 5 measured
LMArena WebDev15401435Claude Sonnet 5
AA Coding Index71.5Not measuredOnly Claude Sonnet 5 measured
LiveCodeBench (Vals AI)82.4%81.9%Claude Sonnet 5
SWE-bench Verified (Vals AI)79.6%71.4%Claude Sonnet 5
Terminal-Bench 4 (Vals AI)10.6%Not measuredOnly Claude Sonnet 5 measured
Vibe Code Bench (Vals AI)81.3%23.4%Claude Sonnet 5
Code migration (Vals AI)44.4%Not measuredOnly Claude Sonnet 5 measured
ProgramBench (Vals AI)0.0%Not measuredOnly Claude Sonnet 5 measured
IOI (Vals AI)45.0%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench 2.1 (Vals AI)74.5%Not measuredOnly Claude Sonnet 5 measured
Vibe Code Bench 1-100 (Vals AI)13.8%Not measuredOnly Claude Sonnet 5 measured
SkillsBench (Vals AI)46.5%Not measuredOnly Claude Sonnet 5 measured
CyberBench (Vals AI)70.3%Not measuredOnly Claude Sonnet 5 measured
SciCode54.3%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured43.2%Only GLM 5 measured
Terminal-BenchNot measured52.4%Only GLM 5 measured
FrontierCode42.7%Not measuredOnly Claude Sonnet 5 measured
GSO-Bench37.3%Not measuredOnly Claude Sonnet 5 measured
WeirdML68.8%48.2%Claude Sonnet 5
ALE-Bench1463.1765.6Claude Sonnet 5
LMArena Text: coding14831461Claude Sonnet 5
LMArena Text: software and IT14741460Claude Sonnet 5
LMArena WebDev: React15411424Claude Sonnet 5
LMArena WebDev: HTML15271450Claude Sonnet 5
LMArena WebDev: from an image1540Not measuredOnly Claude Sonnet 5 measured
SciCode10.7%Not measuredOnly Claude Sonnet 5 measured
Neither model has a result on the other 10 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Sonnet 5 and GLM 5
BenchmarkClaude Sonnet 5GLM 5Leader
AA Intelligence Index38.227.9Claude Sonnet 5
Epoch Capabilities Index156.9145.8Claude Sonnet 5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index60
Agentic work benchmarks for Claude Sonnet 5 and GLM 5
BenchmarkClaude Sonnet 5GLM 5Leader
AA Agentic Index43.6Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building web apps1245Not measuredOnly Claude Sonnet 5 measured
Design Arena: agents building full-stack apps12491123Claude Sonnet 5
Design Arena: agents building mobile apps12151136Claude Sonnet 5
Design Arena: agents building Android apps12271147Claude Sonnet 5
Design Arena: agents building Godot games12251144Claude Sonnet 5
Design Arena: agents building games1227Not measuredOnly Claude Sonnet 5 measured
Design Arena: HTML slides11681098Claude Sonnet 5
Design Arena: PowerPoint slides1191Not measuredOnly Claude Sonnet 5 measured
Design Arena: spreadsheets1035Not measuredOnly Claude Sonnet 5 measured
LiveBench research82.8%Not measuredOnly Claude Sonnet 5 measured
LiveBench browser72.0%Not measuredOnly Claude Sonnet 5 measured
LiveBench long agentic39.0%Not measuredOnly Claude Sonnet 5 measured
SREBench (Vals AI)0.4%Not measuredOnly Claude Sonnet 5 measured
Finance Agent (Vals AI)53.9%Not measuredOnly Claude Sonnet 5 measured
Tax Agent Bench (Vals AI)29.4%Not measuredOnly Claude Sonnet 5 measured
Legal Research Bench (Vals AI)41.8%Not measuredOnly Claude Sonnet 5 measured
Excel Modeling Benchmark (Vals AI)66.3%Not measuredOnly Claude Sonnet 5 measured
Terminal-Bench-Science (Vals AI)5.7%Not measuredOnly Claude Sonnet 5 measured
τ²-Bench TelecomNot measured98.2%Only GLM 5 measured
APEX-Agents54.5%Not measuredOnly Claude Sonnet 5 measured
Vending-Bench 2$6,378$4,432Claude Sonnet 5
Neither model has a result on the other 19 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index80
Reasoning benchmarks for Claude Sonnet 5 and GLM 5
BenchmarkClaude Sonnet 5GLM 5Leader
GPQA Diamond88.9%83.3%Claude Sonnet 5
LiveBench reasoning88.7%Not measuredOnly Claude Sonnet 5 measured
MMMU Pro (Vals AI)83.0%Not measuredOnly Claude Sonnet 5 measured
GPQA Diamond (Artificial Analysis run)91.1%82.0%Claude Sonnet 5
Humanity's Last Exam (Artificial Analysis run)41.3%29.3%Claude Sonnet 5
GPQA Diamond (Epoch AI run)90.5%87.8%Claude Sonnet 5
ARC-AGINot measured44.7%Only GLM 5 measured
ARC-AGI-2Not measured4.9%Only GLM 5 measured
SimpleBench60.6%53.2%Claude Sonnet 5
Chess puzzles45.0%Not measuredOnly Claude Sonnet 5 measured
Mystery game puzzles35.0%Not measuredOnly Claude Sonnet 5 measured
LMArena Text: hard prompts14611452Claude Sonnet 5
LMArena Text: expert14891454Claude Sonnet 5
LMArena Text: hard prompts in English14641460Claude Sonnet 5
LMArena Vision: diagrams1293Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: homework1311Not measuredOnly Claude Sonnet 5 measured
Kagi LLM BenchmarkNot measured75.0%Only GLM 5 measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index30
Math benchmarks for Claude Sonnet 5 and GLM 5
BenchmarkClaude Sonnet 5GLM 5Leader
AIMENot measured91.7%Only GLM 5 measured
OTIS Mock AIME94.7%80.0%Claude Sonnet 5
FrontierMath, tiers 1 to 365.6%Not measuredOnly Claude Sonnet 5 measured
FrontierMath, tier 429.3%Not measuredOnly Claude Sonnet 5 measured
ProofBench77.0%Not measuredOnly Claude Sonnet 5 measured
LMArena Text: math14671440Claude Sonnet 5
LMArena Text: mathematical work14811451Claude Sonnet 5
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index53
Knowledge benchmarks for Claude Sonnet 5 and GLM 5
BenchmarkClaude Sonnet 5GLM 5Leader
MMLU Pro87.5%86.0%Claude Sonnet 5
LegalBench (Vals AI)83.9%84.1%GLM 5
CaseLaw (Vals AI)Not measured52.5%Only GLM 5 measured
CorpFin (Vals AI)67.0%62.9%Claude Sonnet 5
TaxEval (Vals AI)75.6%70.0%Claude Sonnet 5
MortgageTax (Vals AI)70.0%Not measuredOnly Claude Sonnet 5 measured
MedQA (Vals AI)Not measured94.3%Only GLM 5 measured
MedCode (Vals AI)47.5%Not measuredOnly Claude Sonnet 5 measured
SimpleQA Verified33.7%Not measuredOnly Claude Sonnet 5 measured
LMArena Text: science14601460GLM 5
LMArena Text: medicine and healthcare14421455GLM 5
LMArena Text: legal and government14541453Claude Sonnet 5
LMArena Text: business and finance14361430Claude Sonnet 5
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index80
Web design benchmarks for Claude Sonnet 5 and GLM 5
BenchmarkClaude Sonnet 5GLM 5Leader
Design Arena: websites12741247Claude Sonnet 5
Design Arena: UI components12771227Claude Sonnet 5
Design Arena: game dev12771234Claude Sonnet 5
Design Arena: data viz12511228Claude Sonnet 5
Design Arena: 3D12611228Claude Sonnet 5
Design Arena: all code categories12751246Claude Sonnet 5
Design Arena: SVG11921168Claude Sonnet 5
Design Arena: ASCII art12071147Claude Sonnet 5
LiveBench design82.0%Not measuredOnly Claude Sonnet 5 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index711
General benchmarks for Claude Sonnet 5 and GLM 5
BenchmarkClaude Sonnet 5GLM 5Leader
LiveBench data analysis71.7%Not measuredOnly Claude Sonnet 5 measured
Public Benefits Bench (Vals AI)66.0%Not measuredOnly Claude Sonnet 5 measured
SAGE (Vals AI)48.9%Not measuredOnly Claude Sonnet 5 measured
MedScribe (Vals AI)76.0%Not measuredOnly Claude Sonnet 5 measured
Vals Multimodal Index68.8%Not measuredOnly Claude Sonnet 5 measured
IFBenchNot measured72.3%Only GLM 5 measured
Long context reasoning (AA-LCR)82.0%75.7%Claude Sonnet 5
DTBench92.5%Not measuredOnly Claude Sonnet 5 measured
LMCA50.0%Not measuredOnly Claude Sonnet 5 measured
CL-benchNot measured18.7%Only GLM 5 measured
Surface Evolver Bench60.0%Not measuredOnly Claude Sonnet 5 measured
LMArena Text14421446GLM 5
LMArena Text: instruction following14521428Claude Sonnet 5
LMArena Text: creative writing14161438GLM 5
LMArena Vision1273Not measuredOnly Claude Sonnet 5 measured
LMArena Text: English14501458GLM 5
LMArena Text: non-English14311430Claude Sonnet 5
LMArena Text: Chinese14781511GLM 5
LMArena Text: German14421447GLM 5
LMArena Text: Japanese14221416Claude Sonnet 5
LMArena Text: Korean14121423GLM 5
LMArena Text: French14631456Claude Sonnet 5
LMArena Text: Spanish14381454GLM 5
LMArena Text: Russian14501436Claude Sonnet 5
LMArena Text: Polish14251434GLM 5
LMArena Text: multi-turn14531456GLM 5
LMArena Text: longer queries14621446Claude Sonnet 5
LMArena Text: writing and language14361437GLM 5
LMArena Text: entertainment and media14111426GLM 5
LMArena Vision: English1275Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: Chinese1331Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: reading text1288Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: humor1261Not measuredOnly Claude Sonnet 5 measured
LMArena Vision: creative writing1246Not measuredOnly Claude Sonnet 5 measured
LMArena Document1466Not measuredOnly Claude Sonnet 5 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 Sonnet 5 and GLM 5
BenchmarkClaude Sonnet 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 5$0.0070Fits in one request
GLM 5$0.0026Fits in one request

GLM 5 costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 5$0.130Fits in one request
GLM 5$0.060Fits in one request

GLM 5 costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 5$0.500Fits 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 5 and GLM 5
SpecificationAnthropic Claude Sonnet 5Z.ai GLM 5
MakerAnthropicZ.ai
WeightsNo public weights listedOpen weights
ReleasedJune 30, 2026February 11, 2026
Context window1M205K
Input $/Mtok$2.00$1.00
Output $/Mtok$10.00$3.20
Coding index57.741.7
Independent measurements behind it63
Cost per solved task$1.87$0.63
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 5 better than GLM 5 for coding?

Pick Claude Sonnet 5 for coding: it scores 57.7 on the Vibe Coding Index against 41.7 for GLM 5. Pick GLM 5 for output tokens 3.1x cheaper ($3.20 vs $10.00 per million) and a lower cost per solved task ($0.63 against $1.87).

Which is cheaper, Claude Sonnet 5 or GLM 5?

Claude Sonnet 5 costs $2.00 per million input tokens and $10.00 per million output tokens; GLM 5 costs $1.00 and $3.20. Per solved SWE-bench Verified task, Claude Sonnet 5 costs $1.87 and GLM 5 $0.63.

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

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

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

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