Claude Opus 4.8 vs GLM 5.1
GLM 5.1 leads Claude Opus 4.8 on coding, 63.5 to 56.7 on the Vibe Coding Index, and GLM 5.1 costs 5.7x less per output token ($4.40 vs $25.00 per million). Updated December 4, 2026; 86 benchmarks have a result for both.
Claude Opus 4.8 or GLM 5.1: which to pick
Pick GLM 5.1 for coding: it scores 63.5 on the Vibe Coding Index against 56.7 for Claude Opus 4.8, though on 2 benchmarks against 4.
Pick Claude Opus 4.8 for a larger context window (1M against 205K tokens) and work measured by LMArena WebDev or LiveCodeBench (Vals AI), where it leads.
- Shared results
- 86
- Claude Opus 4.8 only
- 48
- GLM 5.1 only
- 4
- 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.1
GLM 5.1 scores 63.5 against 56.7.
4 and 2 benchmarks behind the scores
Reasoning
GPQA Diamond
Claude Opus 4.8
Claude Opus 4.8 leads, 92.4% against 84.5%.
Same board, both measured
Math
AIME
No call
Only GLM 5.1 has a AIME result, 91.9%.
Directional only
Knowledge
MMLU Pro
Claude Opus 4.8
Claude Opus 4.8 leads, 89.6% against 86.9%.
Same board, both measured
Web design
Design Arena: websites
GLM 5.1
GLM 5.1 leads, 1308 against 1298.
Same board, both measured
Long documents
Listed context window
Claude Opus 4.8
Claude Opus 4.8 takes 1M tokens against 205K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GLM 5.1
Claude Opus 4.8 $0.018, GLM 5.1 $0.0036 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
GLM 5.1
Claude Opus 4.8 $2.17, GLM 5.1 $0.60.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Opus 4.8 56.7 from 4 benchmarks, GLM 5.1 63.5 from 2 benchmarks.
- Widest category
- Math, 19.7 points apart on average over 6 shared benchmarks.
- Widest single gap
- ProofBench: Claude Opus 4.8 69.0% against GLM 5.1 22.2%, 46.8 points apart on a 0 to 100 scale.
- Output price
- Claude Opus 4.8 $25.00 against GLM 5.1 $4.40 per million output tokens, 5.7x apart.
- Context window
- Claude Opus 4.8 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.
| Category | Claude Opus 4.8 | Bars | GLM 5.1 | Ties |
|---|---|---|---|---|
| Coding | 15 | 0 | ||
| Intelligence | 1 | 0 | ||
| Agentic work | 13 | 2 | ||
| Reasoning | 9 | 0 | ||
| Math | 6 | 0 | ||
| Knowledge | 7 | 3 | ||
| Web design | 1 | 7 | ||
| General | 15 | 7 | ||
| All shared boards | 67 | 19 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index150
| Benchmark | Claude Opus 4.8 | GLM 5.1 | Leader |
|---|---|---|---|
| LMArena WebDev | 1555 | 1508 | Claude Opus 4.8 |
| LiveCodeBench (Vals AI) | 87.8% | 81.4% | Claude Opus 4.8 |
| SWE-bench Verified (Vals AI) | 88.6% | 76.4% | Claude Opus 4.8 |
| Terminal-Bench 4 (Vals AI) | 23.2% | Not measured | Only Claude Opus 4.8 measured |
| Code migration (Vals AI) | 47.3% | 25.8% | Claude Opus 4.8 |
| ProgramBench (Vals AI) | 1.0% | 0.0% | Claude Opus 4.8 |
| Terminal-Bench 2.1 (Vals AI) | 71.9% | 56.9% | Claude Opus 4.8 |
| SkillsBench (Vals AI) | 59.2% | Not measured | Only Claude Opus 4.8 measured |
| SciCode | 54.4% | 44.8% | Claude Opus 4.8 |
| Terminal-Bench Hard (Artificial Analysis run) | 58.3% | 43.2% | Claude Opus 4.8 |
| Terminal-Bench 4.0 (Artificial Analysis run) | 21.7% | 2.0% | Claude Opus 4.8 |
| FrontierCode | 46.5% | Not measured | Only Claude Opus 4.8 measured |
| GSO-Bench | 47.1% | Not measured | Only Claude Opus 4.8 measured |
| WeirdML | 82.9% | 57.1% | Claude Opus 4.8 |
| MirrorCode | 65.6% | Not measured | Only Claude Opus 4.8 measured |
| ALE-Bench | Not measured | 887.1 | Only GLM 5.1 measured |
| LMArena Text: coding | 1491 | 1485 | Claude Opus 4.8 |
| LMArena Text: software and IT | 1488 | 1483 | Claude Opus 4.8 |
| LMArena WebDev: React | 1555 | 1504 | Claude Opus 4.8 |
| LMArena WebDev: HTML | 1542 | 1512 | Claude Opus 4.8 |
| SciCode | 12.3% | Not measured | Only Claude Opus 4.8 measured |
| SWE Atlas: Codebase QnA | 57.3% | Not measured | Only Claude Opus 4.8 measured |
| SWE Atlas: Refactoring | 46.7% | Not measured | Only Claude Opus 4.8 measured |
| SWE Atlas: Test Writing | 49.6% | Not measured | Only Claude Opus 4.8 measured |
| GameBench 2 | 62.9 | Not measured | Only Claude Opus 4.8 measured |
| Terminal-Bench 2.1 | 78.9% | 58.7% | Claude Opus 4.8 |
| Terminal-Bench 3.0 | 21.1% | Not measured | Only Claude Opus 4.8 measured |
| Terminal-Bench 4.0 | 23.6% | Not measured | Only Claude Opus 4.8 measured |
| ProgramBench | 0.0% | Not measured | Only Claude Opus 4.8 measured |
| Neither model has a result on the other 23 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
| Benchmark | Claude Opus 4.8 | GLM 5.1 | Leader |
|---|---|---|---|
| Epoch Capabilities Index | 159.7 | 150.6 | Claude Opus 4.8 |
| Neither model has a result on the other 1 board here | |||
Agentic workLike-for-likePublic boards, shown as published, kept out of the index132
| Benchmark | Claude Opus 4.8 | GLM 5.1 | Leader |
|---|---|---|---|
| Design Arena: agents building web apps | 1195 | 1139 | Claude Opus 4.8 |
| Design Arena: agents building full-stack apps | 1297 | 1213 | Claude Opus 4.8 |
| Design Arena: agents building mobile apps | 1206 | 1151 | Claude Opus 4.8 |
| Design Arena: agents building Android apps | 1207 | 1158 | Claude Opus 4.8 |
| Design Arena: agents building Godot games | 1207 | 1031 | Claude Opus 4.8 |
| Design Arena: agents building games | 1182 | 1109 | Claude Opus 4.8 |
| Design Arena: HTML slides | 1123 | 1072 | Claude Opus 4.8 |
| Design Arena: PowerPoint slides | 1185 | 1154 | Claude Opus 4.8 |
| Design Arena: spreadsheets | 1029 | 1315 | GLM 5.1 |
| Finance Agent (Vals AI) | 53.9% | 44.8% | Claude Opus 4.8 |
| Tax Agent Bench (Vals AI) | 30.0% | Not measured | Only Claude Opus 4.8 measured |
| Legal Research Bench (Vals AI) | 43.8% | 27.9% | Claude Opus 4.8 |
| Excel Modeling Benchmark (Vals AI) | 69.4% | Not measured | Only Claude Opus 4.8 measured |
| Terminal-Bench-Science (Vals AI) | 4.3% | Not measured | Only Claude Opus 4.8 measured |
| Time Horizon Index (Vals AI) | 11.8% | Not measured | Only Claude Opus 4.8 measured |
| τ²-Bench Telecom | 94.4% | 97.7% | GLM 5.1 |
| APEX-Agents | 48.9% | 40.9% | Claude Opus 4.8 |
| Remote Labor Index | 8.3% | Not measured | Only Claude Opus 4.8 measured |
| OSWorld 2.0 | 20.6% | Not measured | Only Claude Opus 4.8 measured |
| DeepResearch Bench | 50.2% | Not measured | Only Claude Opus 4.8 measured |
| PostTrainBench | 31.0% | Not measured | Only Claude Opus 4.8 measured |
| Vending-Bench 2 | $5,787 | $5,634 | Claude Opus 4.8 |
| LMArena Search | 1202 | Not measured | Only Claude Opus 4.8 measured |
| MCP Atlas | 82.2% | 75.6% | Claude Opus 4.8 |
| Toolathlon-Verified | 76.2% | Not measured | Only Claude Opus 4.8 measured |
| τ³-Banking | 39.7% | Not measured | Only Claude Opus 4.8 measured |
| Neither model has a result on the other 18 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index90
| Benchmark | Claude Opus 4.8 | GLM 5.1 | Leader |
|---|---|---|---|
| GPQA Diamond | 92.4% | 84.5% | Claude Opus 4.8 |
| MMMU Pro (Vals AI) | 86.6% | Not measured | Only Claude Opus 4.8 measured |
| GPQA Diamond (Artificial Analysis run) | 92.0% | 86.8% | Claude Opus 4.8 |
| Humanity's Last Exam (Artificial Analysis run) | 48.7% | 30.1% | Claude Opus 4.8 |
| GPQA Diamond (Epoch AI run) | 91.0% | 89.9% | Claude Opus 4.8 |
| ARC-AGI | 92.5% | Not measured | Only Claude Opus 4.8 measured |
| ARC-AGI-2 | 72.1% | Not measured | Only Claude Opus 4.8 measured |
| SimpleBench | 64.8% | 55.1% | Claude Opus 4.8 |
| Chess puzzles | 52.0% | 20.0% | Claude Opus 4.8 |
| Mystery game puzzles | 36.0% | Not measured | Only Claude Opus 4.8 measured |
| EBR-bench | 28.6% | Not measured | Only Claude Opus 4.8 measured |
| LMArena Text: hard prompts | 1482 | 1472 | Claude Opus 4.8 |
| LMArena Text: expert | 1502 | 1477 | Claude Opus 4.8 |
| LMArena Text: hard prompts in English | 1487 | 1482 | Claude Opus 4.8 |
| LMArena Vision: diagrams | 1313 | Not measured | Only Claude Opus 4.8 measured |
| LMArena Vision: homework | 1336 | Not measured | Only Claude Opus 4.8 measured |
| Kagi LLM Benchmark | 88.8% | Not measured | Only Claude Opus 4.8 measured |
| Neither model has a result on the other 9 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index60
| Benchmark | Claude Opus 4.8 | GLM 5.1 | Leader |
|---|---|---|---|
| AIME | Not measured | 91.9% | Only GLM 5.1 measured |
| OTIS Mock AIME | 98.3% | 93.3% | Claude Opus 4.8 |
| FrontierMath, tiers 1 to 3 | 80.0% | 36.8% | Claude Opus 4.8 |
| FrontierMath, tier 4 | 56.1% | Not measured | Only Claude Opus 4.8 measured |
| ProofBench | 69.0% | 22.2% | Claude Opus 4.8 |
| LMArena Text: math | 1485 | 1472 | Claude Opus 4.8 |
| LMArena Text: mathematical work | 1495 | 1471 | Claude Opus 4.8 |
| MathArena | 35.3% | 18.4% | Claude Opus 4.8 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index73
| Benchmark | Claude Opus 4.8 | GLM 5.1 | Leader |
|---|---|---|---|
| MMLU Pro | 89.6% | 86.9% | Claude Opus 4.8 |
| LegalBench (Vals AI) | 83.6% | 84.4% | GLM 5.1 |
| CaseLaw (Vals AI) | Not measured | 51.5% | Only GLM 5.1 measured |
| CorpFin (Vals AI) | 66.7% | 64.5% | Claude Opus 4.8 |
| TaxEval (Vals AI) | 75.6% | 71.2% | Claude Opus 4.8 |
| MortgageTax (Vals AI) | 69.9% | Not measured | Only Claude Opus 4.8 measured |
| MedCode (Vals AI) | 53.2% | 41.6% | Claude Opus 4.8 |
| SimpleQA Verified | 53.0% | 34.0% | Claude Opus 4.8 |
| GeoBench | 81.0% | Not measured | Only Claude Opus 4.8 measured |
| LMArena Text: science | 1477 | 1479 | GLM 5.1 |
| LMArena Text: medicine and healthcare | 1465 | 1474 | GLM 5.1 |
| LMArena Text: legal and government | 1477 | 1466 | Claude Opus 4.8 |
| LMArena Text: business and finance | 1458 | 1454 | Claude Opus 4.8 |
| Neither model has a result on the other 8 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index17
| Benchmark | Claude Opus 4.8 | GLM 5.1 | Leader |
|---|---|---|---|
| Design Arena: websites | 1298 | 1308 | GLM 5.1 |
| Design Arena: UI components | 1240 | 1292 | GLM 5.1 |
| Design Arena: game dev | 1230 | 1236 | GLM 5.1 |
| Design Arena: data viz | 1231 | 1366 | GLM 5.1 |
| Design Arena: 3D | 1183 | 1336 | GLM 5.1 |
| Design Arena: all code categories | 1296 | 1312 | GLM 5.1 |
| Design Arena: SVG | 1231 | 1258 | GLM 5.1 |
| Design Arena: ASCII art | 1255 | 1124 | Claude Opus 4.8 |
| Neither model has a result on the other 1 board here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index157
| Benchmark | Claude Opus 4.8 | GLM 5.1 | Leader |
|---|---|---|---|
| Public Benefits Bench (Vals AI) | 68.1% | 61.8% | Claude Opus 4.8 |
| MedScribe (Vals AI) | 85.8% | 72.3% | Claude Opus 4.8 |
| Vals Multimodal Index | 70.9% | Not measured | Only Claude Opus 4.8 measured |
| IFBench | 62.2% | 76.3% | GLM 5.1 |
| Long context reasoning (AA-LCR) | 77.7% | 73.7% | Claude Opus 4.8 |
| GDPval-AA | 1462 | 1125 | Claude Opus 4.8 |
| DTBench | 94.9% | Not measured | Only Claude Opus 4.8 measured |
| LMCA | 57.5% | Not measured | Only Claude Opus 4.8 measured |
| Surface Evolver Bench | 87.5% | Not measured | Only Claude Opus 4.8 measured |
| Furniture assembly | 42.5% | Not measured | Only Claude Opus 4.8 measured |
| ExploitBench | Not measured | 18.1% | Only GLM 5.1 measured |
| LMArena Text | 1462 | 1462 | GLM 5.1 |
| LMArena Text: instruction following | 1477 | 1452 | Claude Opus 4.8 |
| LMArena Text: creative writing | 1455 | 1453 | Claude Opus 4.8 |
| LMArena Vision | 1294 | Not measured | Only Claude Opus 4.8 measured |
| LMArena Text: English | 1469 | 1475 | GLM 5.1 |
| LMArena Text: non-English | 1451 | 1448 | Claude Opus 4.8 |
| LMArena Text: Chinese | 1508 | 1517 | GLM 5.1 |
| LMArena Text: German | 1470 | 1467 | Claude Opus 4.8 |
| LMArena Text: Japanese | 1443 | 1439 | Claude Opus 4.8 |
| LMArena Text: Korean | 1423 | 1425 | GLM 5.1 |
| LMArena Text: French | 1481 | 1470 | Claude Opus 4.8 |
| LMArena Text: Spanish | 1468 | 1470 | GLM 5.1 |
| LMArena Text: Russian | 1475 | 1454 | Claude Opus 4.8 |
| LMArena Text: Polish | 1460 | 1452 | Claude Opus 4.8 |
| LMArena Text: multi-turn | 1476 | 1472 | Claude Opus 4.8 |
| LMArena Text: longer queries | 1484 | 1467 | Claude Opus 4.8 |
| LMArena Text: writing and language | 1462 | 1454 | Claude Opus 4.8 |
| LMArena Text: entertainment and media | 1441 | 1443 | GLM 5.1 |
| LMArena Vision: English | 1293 | Not measured | Only Claude Opus 4.8 measured |
| LMArena Vision: Chinese | 1346 | Not measured | Only Claude Opus 4.8 measured |
| LMArena Vision: reading text | 1303 | Not measured | Only Claude Opus 4.8 measured |
| LMArena Vision: humor | 1284 | Not measured | Only Claude Opus 4.8 measured |
| LMArena Vision: creative writing | 1300 | Not measured | Only Claude Opus 4.8 measured |
| LMArena Document | 1474 | Not measured | Only Claude Opus 4.8 measured |
| EQ-Bench 4 | 1268 | Not measured | Only Claude Opus 4.8 measured |
| Neither model has a result on the other 13 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Opus 4.8 | GLM 5.1 | 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.1 costs less
Repository review
50K input + 3K output tokens
GLM 5.1 costs less
Agent loop
200K input + 10K output tokens
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.
| Specification | Anthropic Claude Opus 4.8 | Z.ai GLM 5.1 |
|---|---|---|
| Maker | Anthropic | Z.ai |
| Weights | No public weights listed | Open weights |
| Released | May 27, 2026 | April 7, 2026 |
| Context window | 1M | 205K |
| Input $/Mtok | $5.00 | $1.40 |
| Output $/Mtok | $25.00 | $4.40 |
| Coding index | 56.7 | 63.5 |
| Independent measurements behind it | 4 | 2 |
| Cost per solved task | $2.17 | $0.60 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Opus 4.8 better than GLM 5.1 for coding?
Pick GLM 5.1 for coding: it scores 63.5 on the Vibe Coding Index against 56.7 for Claude Opus 4.8, though on 2 benchmarks against 4. Pick Claude Opus 4.8 for a larger context window (1M against 205K tokens) and work measured by LMArena WebDev or LiveCodeBench (Vals AI), where it leads.
Which is cheaper, Claude Opus 4.8 or GLM 5.1?
Claude Opus 4.8 costs $5.00 per million input tokens and $25.00 per million output tokens; GLM 5.1 costs $1.40 and $4.40. Per solved SWE-bench Verified task, Claude Opus 4.8 costs $2.17 and GLM 5.1 $0.60.
Which has the bigger context window, Claude Opus 4.8 or GLM 5.1?
Claude Opus 4.8, with 1M tokens against 205K.
How many benchmarks is the Claude Opus 4.8 vs GLM 5.1 comparison based on?
86 benchmarks have a result for both models as of December 4, 2026. Claude Opus 4.8's coding index rests on 4 independent benchmarks and GLM 5.1's on 2. Where only one model has a result, the page says so instead of naming a winner.