Enter opens the highlighted result. Esc closes.

Claude Sonnet 4.6 vs GLM 5.1

Claude Sonnet 4.6 leads GLM 5.1 on coding, 57.3 to 49.2 on the Vibe Coding Index, and GLM 5.1 costs 3.4x less per output token ($4.40 vs $15.00 per million). Updated October 22, 2026; 81 benchmarks have a result for both.

Claude Sonnet 4.6Anthropic
Coding
57.3
Overall
60.3
Output $/M
$15.00
52
GLM 5.1Z.ai
Coding
49.2
Overall
57.5
Output $/M
$4.40
29
vs boards won of 81 shared

Claude Sonnet 4.6 or GLM 5.1: which to pick

Pick Claude Sonnet 4.6 for coding: it scores 57.3 on the Vibe Coding Index against 49.2 for GLM 5.1.

Pick GLM 5.1 for output tokens 3.4x cheaper ($4.40 vs $15.00 per million) and a lower cost per solved task ($0.60 against $1.68).

Shared results
81
Claude Sonnet 4.6 only
37
GLM 5.1 only
8
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.6 57.3 from 5 benchmarks, GLM 5.1 49.2 from 3 benchmarks.
Widest category
Agentic work, 7.8 points apart on average over 12 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): Claude Sonnet 4.6 55.8% against GLM 5.1 31.5%, 24.3 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 4.6 $15.00 against GLM 5.1 $4.40 per million output tokens, 3.4x apart.
Context window
Claude Sonnet 4.6 takes 1M tokens, GLM 5.1 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.6BarsGLM 5.1Ties
Coding150
Intelligence20
Agentic work111
Reasoning71
Math32
Knowledge73
Web design26
General516
All shared boards5229
CodingLike-for-likeSix of these boards feed the Vibe Coding Index150
Coding benchmarks for Claude Sonnet 4.6 and GLM 5.1
BenchmarkClaude Sonnet 4.6GLM 5.1Leader
LiveBench coding66.6%Not measuredOnly Claude Sonnet 4.6 measured
LMArena WebDev15231508Claude Sonnet 4.6
AA Coding Index63.055.8Claude Sonnet 4.6
LiveCodeBench (Vals AI)82.1%81.4%Claude Sonnet 4.6
SWE-bench Verified (Vals AI)77.4%76.4%Claude Sonnet 4.6
Vibe Code Bench (Vals AI)55.8%31.5%Claude Sonnet 4.6
Code migration (Vals AI)39.9%25.8%Claude Sonnet 4.6
ProgramBench (Vals AI)0.5%0.0%Claude Sonnet 4.6
Terminal-Bench 2.1 (Vals AI)57.3%56.9%Claude Sonnet 4.6
SkillsBench (Vals AI)49.0%Not measuredOnly Claude Sonnet 4.6 measured
SciCode50.1%44.8%Claude Sonnet 4.6
Terminal-Bench Hard (Artificial Analysis run)53.0%43.2%Claude Sonnet 4.6
Terminal-Bench53.4%Not measuredOnly Claude Sonnet 4.6 measured
FrontierCode24.3%Not measuredOnly Claude Sonnet 4.6 measured
WeirdML66.1%57.1%Claude Sonnet 4.6
ALE-BenchNot measured887.1Only GLM 5.1 measured
LMArena Text: coding15031485Claude Sonnet 4.6
LMArena Text: software and IT14911484Claude Sonnet 4.6
LMArena WebDev: React15121505Claude Sonnet 4.6
LMArena WebDev: HTML15271508Claude Sonnet 4.6
LMArena WebDev: from an image1529Not measuredOnly Claude Sonnet 4.6 measured
Neither model has a result on the other 18 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Sonnet 4.6 and GLM 5.1
BenchmarkClaude Sonnet 4.6GLM 5.1Leader
AA Intelligence Index30.126.1Claude Sonnet 4.6
Epoch Capabilities Index152.8149.8Claude Sonnet 4.6
Agentic workLike-for-likePublic boards, shown as published, kept out of the index111
Agentic work benchmarks for Claude Sonnet 4.6 and GLM 5.1
BenchmarkClaude Sonnet 4.6GLM 5.1Leader
AA Agentic Index31.823.9Claude Sonnet 4.6
Design Arena: agents building web apps11901175Claude Sonnet 4.6
Design Arena: agents building full-stack apps12131167Claude Sonnet 4.6
Design Arena: agents building mobile apps12121162Claude Sonnet 4.6
Design Arena: agents building Android apps11971182Claude Sonnet 4.6
Design Arena: agents building Godot games12261053Claude Sonnet 4.6
Design Arena: agents building games11771164Claude Sonnet 4.6
Design Arena: HTML slidesNot measured1120Only GLM 5.1 measured
Design Arena: PowerPoint slidesNot measured1163Only GLM 5.1 measured
Design Arena: spreadsheetsNot measured1315Only GLM 5.1 measured
LiveBench research63.6%Not measuredOnly Claude Sonnet 4.6 measured
LiveBench browser68.0%Not measuredOnly Claude Sonnet 4.6 measured
LiveBench long agentic23.1%Not measuredOnly Claude Sonnet 4.6 measured
Finance Agent (Vals AI)51.0%44.8%Claude Sonnet 4.6
Tax Agent Bench (Vals AI)25.8%Not measuredOnly Claude Sonnet 4.6 measured
Legal Research Bench (Vals AI)38.5%27.9%Claude Sonnet 4.6
Excel Modeling Benchmark (Vals AI)60.2%Not measuredOnly Claude Sonnet 4.6 measured
τ²-Bench Telecom79.5%97.7%GLM 5.1
APEX-Agents43.0%40.9%Claude Sonnet 4.6
OSWorld 2.09.3%Not measuredOnly Claude Sonnet 4.6 measured
DeepResearch Bench54.9%Not measuredOnly Claude Sonnet 4.6 measured
OSWorld72.1%Not measuredOnly Claude Sonnet 4.6 measured
Vending-Bench 2$7,204$5,634Claude Sonnet 4.6
Neither model has a result on the other 18 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index71
Reasoning benchmarks for Claude Sonnet 4.6 and GLM 5.1
BenchmarkClaude Sonnet 4.6GLM 5.1Leader
GPQA Diamond85.6%84.5%Claude Sonnet 4.6
LiveBench reasoning86.4%Not measuredOnly Claude Sonnet 4.6 measured
MMMU Pro (Vals AI)83.6%Not measuredOnly Claude Sonnet 4.6 measured
GPQA Diamond (Artificial Analysis run)87.5%86.8%Claude Sonnet 4.6
Humanity's Last Exam (Artificial Analysis run)33.6%30.1%Claude Sonnet 4.6
GPQA Diamond (Epoch AI run)87.4%89.9%GLM 5.1
ARC-AGI86.5%Not measuredOnly Claude Sonnet 4.6 measured
ARC-AGI-260.4%Not measuredOnly Claude Sonnet 4.6 measured
SimpleBenchNot measured55.1%Only GLM 5.1 measured
Chess puzzles23.0%20.0%Claude Sonnet 4.6
Mystery game puzzles16.0%Not measuredOnly Claude Sonnet 4.6 measured
LMArena Text: hard prompts14851473Claude Sonnet 4.6
LMArena Text: expert15001478Claude Sonnet 4.6
LMArena Text: hard prompts in English14931482Claude Sonnet 4.6
LMArena Vision: diagrams1306Not measuredOnly Claude Sonnet 4.6 measured
LMArena Vision: homework1311Not measuredOnly Claude Sonnet 4.6 measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index32
Math benchmarks for Claude Sonnet 4.6 and GLM 5.1
BenchmarkClaude Sonnet 4.6GLM 5.1Leader
AIME92.3%91.9%Claude Sonnet 4.6
OTIS Mock AIME85.8%93.3%GLM 5.1
FrontierMath, tiers 1 to 3Not measured36.8%Only GLM 5.1 measured
ProofBench45.0%22.2%Claude Sonnet 4.6
LMArena Text: math14621473GLM 5.1
LMArena Text: mathematical work14831470Claude Sonnet 4.6
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index73
Knowledge benchmarks for Claude Sonnet 4.6 and GLM 5.1
BenchmarkClaude Sonnet 4.6GLM 5.1Leader
MMLU Pro87.3%86.9%Claude Sonnet 4.6
LegalBench (Vals AI)82.1%84.4%GLM 5.1
CaseLaw (Vals AI)64.0%51.5%Claude Sonnet 4.6
CorpFin (Vals AI)65.3%64.5%Claude Sonnet 4.6
TaxEval (Vals AI)77.1%71.2%Claude Sonnet 4.6
MortgageTax (Vals AI)67.7%Not measuredOnly Claude Sonnet 4.6 measured
MedQA (Vals AI)92.1%Not measuredOnly Claude Sonnet 4.6 measured
MedCode (Vals AI)Not measured41.6%Only GLM 5.1 measured
SimpleQA Verified35.5%34.0%Claude Sonnet 4.6
LMArena Text: science14741478GLM 5.1
LMArena Text: medicine and healthcare14511474GLM 5.1
LMArena Text: legal and government14701465Claude Sonnet 4.6
LMArena Text: business and finance14641452Claude Sonnet 4.6
FACTS Benchmark Suite37.0%Not measuredOnly Claude Sonnet 4.6 measured
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index26
Web design benchmarks for Claude Sonnet 4.6 and GLM 5.1
BenchmarkClaude Sonnet 4.6GLM 5.1Leader
Design Arena: websites12841290GLM 5.1
Design Arena: UI components12691292GLM 5.1
Design Arena: game dev12581265GLM 5.1
Design Arena: data viz12781366GLM 5.1
Design Arena: 3D12341336GLM 5.1
Design Arena: all code categories12751268Claude Sonnet 4.6
Design Arena: SVG11961218GLM 5.1
Design Arena: ASCII art12351141Claude Sonnet 4.6
LiveBench design71.8%Not measuredOnly Claude Sonnet 4.6 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index516
General benchmarks for Claude Sonnet 4.6 and GLM 5.1
BenchmarkClaude Sonnet 4.6GLM 5.1Leader
LiveBench data analysis76.1%Not measuredOnly Claude Sonnet 4.6 measured
Public Benefits Bench (Vals AI)62.5%61.8%Claude Sonnet 4.6
SAGE (Vals AI)46.6%Not measuredOnly Claude Sonnet 4.6 measured
MedScribe (Vals AI)Not measured72.3%Only GLM 5.1 measured
Vals Multimodal Index60.6%Not measuredOnly Claude Sonnet 4.6 measured
IFBench56.6%76.3%GLM 5.1
Long context reasoning (AA-LCR)80.0%73.7%Claude Sonnet 4.6
DTBench89.9%Not measuredOnly Claude Sonnet 4.6 measured
LMCA46.5%Not measuredOnly Claude Sonnet 4.6 measured
ExploitBench23.6%18.1%Claude Sonnet 4.6
LMArena Text14581463GLM 5.1
LMArena Text: instruction following14761453Claude Sonnet 4.6
LMArena Text: creative writing14351453GLM 5.1
LMArena Vision1283Not measuredOnly Claude Sonnet 4.6 measured
LMArena Text: English14721476GLM 5.1
LMArena Text: non-English14401448GLM 5.1
LMArena Text: Chinese14911515GLM 5.1
LMArena Text: German14281467GLM 5.1
LMArena Text: Japanese14201435GLM 5.1
LMArena Text: Korean14101424GLM 5.1
LMArena Text: French14651470GLM 5.1
LMArena Text: Spanish14641468GLM 5.1
LMArena Text: Russian14401454GLM 5.1
LMArena Text: Polish14431449GLM 5.1
LMArena Text: multi-turn14641473GLM 5.1
LMArena Text: longer queries14791467Claude Sonnet 4.6
LMArena Text: writing and language14441454GLM 5.1
LMArena Text: entertainment and media14311442GLM 5.1
LMArena Vision: English1298Not measuredOnly Claude Sonnet 4.6 measured
LMArena Vision: Chinese1307Not measuredOnly Claude Sonnet 4.6 measured
LMArena Vision: reading text1296Not measuredOnly Claude Sonnet 4.6 measured
LMArena Vision: humor1248Not measuredOnly Claude Sonnet 4.6 measured
LMArena Vision: recognizing things1195Not measuredOnly Claude Sonnet 4.6 measured
LMArena Vision: creative writing1272Not measuredOnly Claude Sonnet 4.6 measured
LMArena Document1482Not measuredOnly Claude Sonnet 4.6 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 4.6 and GLM 5.1
BenchmarkClaude Sonnet 4.6GLM 5.1Leader
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.6$0.011Fits in one request
GLM 5.1$0.0036Fits in one request

GLM 5.1 costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 4.6$0.195Fits in one request
GLM 5.1$0.083Fits in one request

GLM 5.1 costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 4.6$0.750Fits in one request
GLM 5.1$0.324Exceeds the context window

GLM 5.1 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.6 and GLM 5.1
SpecificationAnthropic Claude Sonnet 4.6Z.ai GLM 5.1
MakerAnthropicZ.ai
WeightsNo public weights listedOpen weights
ReleasedFebruary 17, 2026April 7, 2026
Context window1M205K
Input $/Mtok$3.00$1.40
Output $/Mtok$15.00$4.40
Coding index57.349.2
Independent measurements behind it53
Cost per solved task$1.68$0.60
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 4.6 better than GLM 5.1 for coding?

Pick Claude Sonnet 4.6 for coding: it scores 57.3 on the Vibe Coding Index against 49.2 for GLM 5.1. Pick GLM 5.1 for output tokens 3.4x cheaper ($4.40 vs $15.00 per million) and a lower cost per solved task ($0.60 against $1.68).

Which is cheaper, Claude Sonnet 4.6 or GLM 5.1?

Claude Sonnet 4.6 costs $3.00 per million input tokens and $15.00 per million output tokens; GLM 5.1 costs $1.40 and $4.40. Per solved SWE-bench Verified task, Claude Sonnet 4.6 costs $1.68 and GLM 5.1 $0.60.

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

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

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

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