Claude Sonnet 4.6 vs GLM 5.2
GLM 5.2 leads Claude Sonnet 4.6 on coding, 61.1 to 57.3 on the Vibe Coding Index, and GLM 5.2 costs 3.4x less per output token ($4.40 vs $15.00 per million). Updated October 21, 2026; 85 benchmarks have a result for both.
Claude Sonnet 4.6 or GLM 5.2: which to pick
Pick GLM 5.2 for coding: it scores 61.1 on the Vibe Coding Index against 57.3 for Claude Sonnet 4.6, though on 4 benchmarks against 5.
Pick Claude Sonnet 4.6 for work measured by LiveCodeBench (Vals AI) or Code migration (Vals AI), where it leads.
- Shared results
- 85
- Claude Sonnet 4.6 only
- 33
- GLM 5.2 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.
Coding
Vibe Coding Index, six public coding benchmarks
GLM 5.2
GLM 5.2 scores 61.1 against 57.3.
5 and 4 benchmarks behind the scores
Intelligence
AA Intelligence Index
GLM 5.2
GLM 5.2 leads, 33.7 against 30.1.
Same board, both measured
Agentic work
AA Agentic Index
GLM 5.2
GLM 5.2 leads, 38.4 against 31.8.
Same board, both measured
Reasoning
GPQA Diamond
No call
Tied at 85.6%.
Same board, both measured
Math
AIME
No call
Only Claude Sonnet 4.6 has a AIME result, 92.3%.
Directional only
Knowledge
MMLU Pro
Claude Sonnet 4.6
Claude Sonnet 4.6 leads, 87.3% against 86.7%.
Same board, both measured
Web design
Design Arena: websites
No call
Tied at 1285.
Same board, both measured
Long documents
Listed context window
GLM 5.2
GLM 5.2 takes 1.05M tokens against 1M.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GLM 5.2
Claude Sonnet 4.6 $0.011, GLM 5.2 $0.0036 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GLM 5.2
Claude Sonnet 4.6 $1.68, GLM 5.2 $0.86.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Sonnet 4.6 57.3 from 5 benchmarks, GLM 5.2 61.1 from 4 benchmarks.
- Widest category
- Reasoning, 6.4 points apart on average over 11 shared benchmarks.
- Widest single gap
- ARC-AGI-2: Claude Sonnet 4.6 60.4% against GLM 5.2 22.8%, 37.6 points apart on a 0 to 100 scale.
- Output price
- Claude Sonnet 4.6 $15.00 against GLM 5.2 $4.40 per million output tokens, 3.4x apart.
- Context window
- Claude Sonnet 4.6 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.
| Category | Claude Sonnet 4.6 | Bars | GLM 5.2 | Ties |
|---|---|---|---|---|
| Coding | 6 | 10 | 1 tie | |
| Intelligence | 1 | 1 | ||
| Agentic work | 5 | 8 | ||
| Reasoning | 6 | 4 | 1 tie | |
| Math | 1 | 3 | ||
| Knowledge | 4 | 5 | ||
| Web design | 1 | 6 | 1 tie | |
| General | 3 | 18 | ||
| All shared boards | 27 | 55 | 3 ties |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index610
| Benchmark | Claude Sonnet 4.6 | GLM 5.2 | Leader |
|---|---|---|---|
| LiveBench coding | 66.6% | Not measured | Only Claude Sonnet 4.6 measured |
| LMArena WebDev | 1523 | 1604 | GLM 5.2 |
| AA Coding Index | 63.0 | 68.8 | GLM 5.2 |
| LiveCodeBench (Vals AI) | 82.1% | 69.5% | Claude Sonnet 4.6 |
| SWE-bench Verified (Vals AI) | 77.4% | 82.8% | GLM 5.2 |
| Vibe Code Bench (Vals AI) | 55.8% | 64.0% | GLM 5.2 |
| Code migration (Vals AI) | 39.9% | 37.9% | Claude Sonnet 4.6 |
| ProgramBench (Vals AI) | 0.5% | 0.5% | Tie |
| Terminal-Bench 2.1 (Vals AI) | 57.3% | 67.8% | GLM 5.2 |
| SkillsBench (Vals AI) | 49.0% | 45.1% | Claude Sonnet 4.6 |
| SciCode | 50.1% | 51.2% | GLM 5.2 |
| Terminal-Bench Hard (Artificial Analysis run) | 53.0% | 50.8% | Claude Sonnet 4.6 |
| Terminal-Bench | 53.4% | Not measured | Only Claude Sonnet 4.6 measured |
| FrontierCode | 24.3% | 24.5% | GLM 5.2 |
| WeirdML | 66.1% | 70.1% | GLM 5.2 |
| ALE-Bench | Not measured | 1047.0 | Only GLM 5.2 measured |
| LMArena Text: coding | 1503 | 1487 | Claude Sonnet 4.6 |
| LMArena Text: software and IT | 1491 | 1486 | Claude Sonnet 4.6 |
| LMArena WebDev: React | 1512 | 1617 | GLM 5.2 |
| LMArena WebDev: HTML | 1527 | 1565 | GLM 5.2 |
| LMArena WebDev: from an image | 1529 | Not measured | Only 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 index11
| Benchmark | Claude Sonnet 4.6 | GLM 5.2 | Leader |
|---|---|---|---|
| AA Intelligence Index | 30.1 | 33.7 | GLM 5.2 |
| Epoch Capabilities Index | 152.8 | 151.9 | Claude Sonnet 4.6 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index58
| Benchmark | Claude Sonnet 4.6 | GLM 5.2 | Leader |
|---|---|---|---|
| AA Agentic Index | 31.8 | 38.4 | GLM 5.2 |
| Design Arena: agents building web apps | 1190 | 1222 | GLM 5.2 |
| Design Arena: agents building full-stack apps | 1213 | 1241 | GLM 5.2 |
| Design Arena: agents building mobile apps | 1212 | 1160 | Claude Sonnet 4.6 |
| Design Arena: agents building Android apps | 1196 | 1178 | Claude Sonnet 4.6 |
| Design Arena: agents building Godot games | 1226 | 1142 | Claude Sonnet 4.6 |
| Design Arena: agents building games | 1177 | 1206 | GLM 5.2 |
| Design Arena: HTML slides | Not measured | 1175 | Only GLM 5.2 measured |
| Design Arena: PowerPoint slides | Not measured | 1195 | Only GLM 5.2 measured |
| LiveBench research | 63.6% | Not measured | Only Claude Sonnet 4.6 measured |
| LiveBench browser | 68.0% | Not measured | Only Claude Sonnet 4.6 measured |
| LiveBench long agentic | 23.1% | Not measured | Only Claude Sonnet 4.6 measured |
| SREBench (Vals AI) | Not measured | 0.0% | Only GLM 5.2 measured |
| Finance Agent (Vals AI) | 51.0% | 49.7% | Claude Sonnet 4.6 |
| Tax Agent Bench (Vals AI) | 25.8% | Not measured | Only Claude Sonnet 4.6 measured |
| Legal Research Bench (Vals AI) | 38.5% | 31.3% | Claude Sonnet 4.6 |
| Excel Modeling Benchmark (Vals AI) | 60.2% | 61.5% | GLM 5.2 |
| τ²-Bench Telecom | 79.5% | 99.1% | GLM 5.2 |
| APEX-Agents | 43.0% | 45.2% | GLM 5.2 |
| OSWorld 2.0 | 9.3% | Not measured | Only Claude Sonnet 4.6 measured |
| DeepResearch Bench | 54.9% | Not measured | Only Claude Sonnet 4.6 measured |
| PostTrainBench | Not measured | 31.7% | Only GLM 5.2 measured |
| OSWorld | 72.1% | Not measured | Only Claude Sonnet 4.6 measured |
| Vending-Bench 2 | $7,204 | $8,314 | GLM 5.2 |
| Neither model has a result on the other 17 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index64
| Benchmark | Claude Sonnet 4.6 | GLM 5.2 | Leader |
|---|---|---|---|
| GPQA Diamond | 85.6% | 85.6% | Tie |
| LiveBench reasoning | 86.4% | Not measured | Only Claude Sonnet 4.6 measured |
| MMMU Pro (Vals AI) | 83.6% | Not measured | Only Claude Sonnet 4.6 measured |
| GPQA Diamond (Artificial Analysis run) | 87.5% | 89.5% | GLM 5.2 |
| Humanity's Last Exam (Artificial Analysis run) | 33.6% | 41.1% | GLM 5.2 |
| GPQA Diamond (Epoch AI run) | 87.4% | 91.9% | GLM 5.2 |
| ARC-AGI | 86.5% | 77.0% | Claude Sonnet 4.6 |
| ARC-AGI-2 | 60.4% | 22.8% | Claude Sonnet 4.6 |
| SimpleBench | Not measured | 58.8% | Only GLM 5.2 measured |
| Chess puzzles | 23.0% | 22.0% | Claude Sonnet 4.6 |
| Mystery game puzzles | 16.0% | 19.0% | GLM 5.2 |
| EBR-bench | Not measured | 9.5% | Only GLM 5.2 measured |
| LMArena Text: hard prompts | 1485 | 1481 | Claude Sonnet 4.6 |
| LMArena Text: expert | 1500 | 1487 | Claude Sonnet 4.6 |
| LMArena Text: hard prompts in English | 1493 | 1481 | Claude Sonnet 4.6 |
| LMArena Vision: diagrams | 1306 | Not measured | Only Claude Sonnet 4.6 measured |
| LMArena Vision: homework | 1311 | Not measured | Only Claude Sonnet 4.6 measured |
| Kagi LLM Benchmark | Not measured | 62.6% | Only GLM 5.2 measured |
| Neither model has a result on the other 4 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index13
| Benchmark | Claude Sonnet 4.6 | GLM 5.2 | Leader |
|---|---|---|---|
| AIME | 92.3% | Not measured | Only Claude Sonnet 4.6 measured |
| OTIS Mock AIME | 85.8% | 86.4% | GLM 5.2 |
| FrontierMath, tiers 1 to 3 | Not measured | 59.2% | Only GLM 5.2 measured |
| FrontierMath, tier 4 | Not measured | 29.3% | Only GLM 5.2 measured |
| ProofBench | 45.0% | 35.0% | Claude Sonnet 4.6 |
| LMArena Text: math | 1462 | 1483 | GLM 5.2 |
| LMArena Text: mathematical work | 1483 | 1489 | GLM 5.2 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index45
| Benchmark | Claude Sonnet 4.6 | GLM 5.2 | Leader |
|---|---|---|---|
| MMLU Pro | 87.3% | 86.7% | Claude Sonnet 4.6 |
| LegalBench (Vals AI) | 82.1% | 84.1% | GLM 5.2 |
| CaseLaw (Vals AI) | 64.0% | Not measured | Only Claude Sonnet 4.6 measured |
| CorpFin (Vals AI) | 65.3% | 66.1% | GLM 5.2 |
| TaxEval (Vals AI) | 77.1% | 73.3% | Claude Sonnet 4.6 |
| MortgageTax (Vals AI) | 67.7% | Not measured | Only Claude Sonnet 4.6 measured |
| MedQA (Vals AI) | 92.1% | Not measured | Only Claude Sonnet 4.6 measured |
| MedCode (Vals AI) | Not measured | 40.8% | Only GLM 5.2 measured |
| SimpleQA Verified | 35.5% | 34.2% | Claude Sonnet 4.6 |
| LMArena Text: science | 1474 | 1489 | GLM 5.2 |
| LMArena Text: medicine and healthcare | 1451 | 1475 | GLM 5.2 |
| LMArena Text: legal and government | 1470 | 1486 | GLM 5.2 |
| LMArena Text: business and finance | 1464 | 1451 | Claude Sonnet 4.6 |
| FACTS Benchmark Suite | 37.0% | Not measured | Only 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 index16
| Benchmark | Claude Sonnet 4.6 | GLM 5.2 | Leader |
|---|---|---|---|
| Design Arena: websites | 1285 | 1285 | Tie |
| Design Arena: UI components | 1272 | 1296 | GLM 5.2 |
| Design Arena: game dev | 1259 | 1268 | GLM 5.2 |
| Design Arena: data viz | 1277 | 1285 | GLM 5.2 |
| Design Arena: 3D | 1234 | 1288 | GLM 5.2 |
| Design Arena: all code categories | 1276 | 1288 | GLM 5.2 |
| Design Arena: SVG | 1197 | 1214 | GLM 5.2 |
| Design Arena: ASCII art | 1235 | 1190 | Claude Sonnet 4.6 |
| LiveBench design | 71.8% | Not measured | Only Claude Sonnet 4.6 measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index318
| Benchmark | Claude Sonnet 4.6 | GLM 5.2 | Leader |
|---|---|---|---|
| LiveBench data analysis | 76.1% | Not measured | Only Claude Sonnet 4.6 measured |
| Public Benefits Bench (Vals AI) | 62.5% | Not measured | Only Claude Sonnet 4.6 measured |
| SAGE (Vals AI) | 46.6% | Not measured | Only Claude Sonnet 4.6 measured |
| MedScribe (Vals AI) | Not measured | 83.5% | Only GLM 5.2 measured |
| Vals Multimodal Index | 60.6% | Not measured | Only Claude Sonnet 4.6 measured |
| IFBench | 56.6% | 73.3% | GLM 5.2 |
| Long context reasoning (AA-LCR) | 80.0% | 78.3% | Claude Sonnet 4.6 |
| DTBench | 89.9% | 93.6% | GLM 5.2 |
| LMCA | 46.5% | 45.8% | Claude Sonnet 4.6 |
| Surface Evolver Bench | Not measured | 55.6% | Only GLM 5.2 measured |
| ExploitBench | 23.6% | Not measured | Only Claude Sonnet 4.6 measured |
| LMArena Text | 1458 | 1470 | GLM 5.2 |
| LMArena Text: instruction following | 1476 | 1466 | Claude Sonnet 4.6 |
| LMArena Text: creative writing | 1435 | 1463 | GLM 5.2 |
| LMArena Vision | 1283 | Not measured | Only Claude Sonnet 4.6 measured |
| LMArena Text: English | 1472 | 1475 | GLM 5.2 |
| LMArena Text: non-English | 1440 | 1459 | GLM 5.2 |
| LMArena Text: Chinese | 1491 | 1522 | GLM 5.2 |
| LMArena Text: German | 1428 | 1470 | GLM 5.2 |
| LMArena Text: Japanese | 1420 | 1450 | GLM 5.2 |
| LMArena Text: Korean | 1410 | 1440 | GLM 5.2 |
| LMArena Text: French | 1465 | 1479 | GLM 5.2 |
| LMArena Text: Spanish | 1464 | 1478 | GLM 5.2 |
| LMArena Text: Russian | 1440 | 1468 | GLM 5.2 |
| LMArena Text: Polish | 1443 | 1456 | GLM 5.2 |
| LMArena Text: multi-turn | 1464 | 1469 | GLM 5.2 |
| LMArena Text: longer queries | 1479 | 1480 | GLM 5.2 |
| LMArena Text: writing and language | 1444 | 1463 | GLM 5.2 |
| LMArena Text: entertainment and media | 1431 | 1450 | GLM 5.2 |
| LMArena Vision: English | 1298 | Not measured | Only Claude Sonnet 4.6 measured |
| LMArena Vision: Chinese | 1307 | Not measured | Only Claude Sonnet 4.6 measured |
| LMArena Vision: reading text | 1296 | Not measured | Only Claude Sonnet 4.6 measured |
| LMArena Vision: humor | 1248 | Not measured | Only Claude Sonnet 4.6 measured |
| LMArena Vision: recognizing things | 1195 | Not measured | Only Claude Sonnet 4.6 measured |
| LMArena Vision: creative writing | 1272 | Not measured | Only Claude Sonnet 4.6 measured |
| LMArena Document | 1482 | Not measured | Only Claude Sonnet 4.6 measured |
| Neither model has a result on the other 10 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Sonnet 4.6 | GLM 5.2 | Leader |
|---|---|---|---|
| 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
GLM 5.2 costs less
Repository review
50K input + 3K output tokens
GLM 5.2 costs less
Agent loop
200K input + 10K output tokens
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.
| Specification | Anthropic Claude Sonnet 4.6 | Z.ai GLM 5.2 |
|---|---|---|
| Maker | Anthropic | Z.ai |
| Weights | No public weights listed | Open weights |
| Released | February 17, 2026 | June 16, 2026 |
| Context window | 1M | 1.05M |
| Input $/Mtok | $3.00 | $1.40 |
| Output $/Mtok | $15.00 | $4.40 |
| Coding index | 57.3 | 61.1 |
| Independent measurements behind it | 5 | 4 |
| Cost per solved task | $1.68 | $0.86 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Sonnet 4.6 better than GLM 5.2 for coding?
Pick GLM 5.2 for coding: it scores 61.1 on the Vibe Coding Index against 57.3 for Claude Sonnet 4.6, though on 4 benchmarks against 5. Pick Claude Sonnet 4.6 for work measured by LiveCodeBench (Vals AI) or Code migration (Vals AI), where it leads.
Which is cheaper, Claude Sonnet 4.6 or GLM 5.2?
Claude Sonnet 4.6 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.6 costs $1.68 and GLM 5.2 $0.86.
Which has the bigger context window, Claude Sonnet 4.6 or GLM 5.2?
GLM 5.2, with 1.05M tokens against 1M.
How many benchmarks is the Claude Sonnet 4.6 vs GLM 5.2 comparison based on?
85 benchmarks have a result for both models as of October 21, 2026. Claude Sonnet 4.6's coding index rests on 5 independent benchmarks and GLM 5.2's on 4. Where only one model has a result, the page says so instead of naming a winner.