Enter opens the highlighted result. Esc closes.

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.8Anthropic
Coding
56.7
Overall
71.6
Output $/M
$25.00
67
GLM 5.1Z.ai
Coding
63.5
Overall
66.0
Output $/M
$4.40
19
vs boards won of 86 shared

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.

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.

Boards won, where both have a result
CategoryClaude Opus 4.8BarsGLM 5.1Ties
Coding150
Intelligence10
Agentic work132
Reasoning90
Math60
Knowledge73
Web design17
General157
All shared boards6719
CodingLike-for-likeSix of these boards feed the Vibe Coding Index150
Coding benchmarks for Claude Opus 4.8 and GLM 5.1
BenchmarkClaude Opus 4.8GLM 5.1Leader
LMArena WebDev15551508Claude 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 measuredOnly 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 measuredOnly Claude Opus 4.8 measured
SciCode54.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
FrontierCode46.5%Not measuredOnly Claude Opus 4.8 measured
GSO-Bench47.1%Not measuredOnly Claude Opus 4.8 measured
WeirdML82.9%57.1%Claude Opus 4.8
MirrorCode65.6%Not measuredOnly Claude Opus 4.8 measured
ALE-BenchNot measured887.1Only GLM 5.1 measured
LMArena Text: coding14911485Claude Opus 4.8
LMArena Text: software and IT14881483Claude Opus 4.8
LMArena WebDev: React15551504Claude Opus 4.8
LMArena WebDev: HTML15421512Claude Opus 4.8
SciCode12.3%Not measuredOnly Claude Opus 4.8 measured
SWE Atlas: Codebase QnA57.3%Not measuredOnly Claude Opus 4.8 measured
SWE Atlas: Refactoring46.7%Not measuredOnly Claude Opus 4.8 measured
SWE Atlas: Test Writing49.6%Not measuredOnly Claude Opus 4.8 measured
GameBench 262.9Not measuredOnly Claude Opus 4.8 measured
Terminal-Bench 2.178.9%58.7%Claude Opus 4.8
Terminal-Bench 3.021.1%Not measuredOnly Claude Opus 4.8 measured
Terminal-Bench 4.023.6%Not measuredOnly Claude Opus 4.8 measured
ProgramBench0.0%Not measuredOnly 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
Intelligence benchmarks for Claude Opus 4.8 and GLM 5.1
BenchmarkClaude Opus 4.8GLM 5.1Leader
Epoch Capabilities Index159.7150.6Claude 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
Agentic work benchmarks for Claude Opus 4.8 and GLM 5.1
BenchmarkClaude Opus 4.8GLM 5.1Leader
Design Arena: agents building web apps11951139Claude Opus 4.8
Design Arena: agents building full-stack apps12971213Claude Opus 4.8
Design Arena: agents building mobile apps12061151Claude Opus 4.8
Design Arena: agents building Android apps12071158Claude Opus 4.8
Design Arena: agents building Godot games12071031Claude Opus 4.8
Design Arena: agents building games11821109Claude Opus 4.8
Design Arena: HTML slides11231072Claude Opus 4.8
Design Arena: PowerPoint slides11851154Claude Opus 4.8
Design Arena: spreadsheets10291315GLM 5.1
Finance Agent (Vals AI)53.9%44.8%Claude Opus 4.8
Tax Agent Bench (Vals AI)30.0%Not measuredOnly 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 measuredOnly Claude Opus 4.8 measured
Terminal-Bench-Science (Vals AI)4.3%Not measuredOnly Claude Opus 4.8 measured
Time Horizon Index (Vals AI)11.8%Not measuredOnly Claude Opus 4.8 measured
τ²-Bench Telecom94.4%97.7%GLM 5.1
APEX-Agents48.9%40.9%Claude Opus 4.8
Remote Labor Index8.3%Not measuredOnly Claude Opus 4.8 measured
OSWorld 2.020.6%Not measuredOnly Claude Opus 4.8 measured
DeepResearch Bench50.2%Not measuredOnly Claude Opus 4.8 measured
PostTrainBench31.0%Not measuredOnly Claude Opus 4.8 measured
Vending-Bench 2$5,787$5,634Claude Opus 4.8
LMArena Search1202Not measuredOnly Claude Opus 4.8 measured
MCP Atlas82.2%75.6%Claude Opus 4.8
Toolathlon-Verified76.2%Not measuredOnly Claude Opus 4.8 measured
τ³-Banking39.7%Not measuredOnly 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
Reasoning benchmarks for Claude Opus 4.8 and GLM 5.1
BenchmarkClaude Opus 4.8GLM 5.1Leader
GPQA Diamond92.4%84.5%Claude Opus 4.8
MMMU Pro (Vals AI)86.6%Not measuredOnly 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-AGI92.5%Not measuredOnly Claude Opus 4.8 measured
ARC-AGI-272.1%Not measuredOnly Claude Opus 4.8 measured
SimpleBench64.8%55.1%Claude Opus 4.8
Chess puzzles52.0%20.0%Claude Opus 4.8
Mystery game puzzles36.0%Not measuredOnly Claude Opus 4.8 measured
EBR-bench28.6%Not measuredOnly Claude Opus 4.8 measured
LMArena Text: hard prompts14821472Claude Opus 4.8
LMArena Text: expert15021477Claude Opus 4.8
LMArena Text: hard prompts in English14871482Claude Opus 4.8
LMArena Vision: diagrams1313Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: homework1336Not measuredOnly Claude Opus 4.8 measured
Kagi LLM Benchmark88.8%Not measuredOnly 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
Math benchmarks for Claude Opus 4.8 and GLM 5.1
BenchmarkClaude Opus 4.8GLM 5.1Leader
AIMENot measured91.9%Only GLM 5.1 measured
OTIS Mock AIME98.3%93.3%Claude Opus 4.8
FrontierMath, tiers 1 to 380.0%36.8%Claude Opus 4.8
FrontierMath, tier 456.1%Not measuredOnly Claude Opus 4.8 measured
ProofBench69.0%22.2%Claude Opus 4.8
LMArena Text: math14851472Claude Opus 4.8
LMArena Text: mathematical work14951471Claude Opus 4.8
MathArena35.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
Knowledge benchmarks for Claude Opus 4.8 and GLM 5.1
BenchmarkClaude Opus 4.8GLM 5.1Leader
MMLU Pro89.6%86.9%Claude Opus 4.8
LegalBench (Vals AI)83.6%84.4%GLM 5.1
CaseLaw (Vals AI)Not measured51.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 measuredOnly Claude Opus 4.8 measured
MedCode (Vals AI)53.2%41.6%Claude Opus 4.8
SimpleQA Verified53.0%34.0%Claude Opus 4.8
GeoBench81.0%Not measuredOnly Claude Opus 4.8 measured
LMArena Text: science14771479GLM 5.1
LMArena Text: medicine and healthcare14651474GLM 5.1
LMArena Text: legal and government14771466Claude Opus 4.8
LMArena Text: business and finance14581454Claude 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
Web design benchmarks for Claude Opus 4.8 and GLM 5.1
BenchmarkClaude Opus 4.8GLM 5.1Leader
Design Arena: websites12981308GLM 5.1
Design Arena: UI components12401292GLM 5.1
Design Arena: game dev12301236GLM 5.1
Design Arena: data viz12311366GLM 5.1
Design Arena: 3D11831336GLM 5.1
Design Arena: all code categories12961312GLM 5.1
Design Arena: SVG12311258GLM 5.1
Design Arena: ASCII art12551124Claude 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
General benchmarks for Claude Opus 4.8 and GLM 5.1
BenchmarkClaude Opus 4.8GLM 5.1Leader
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 Index70.9%Not measuredOnly Claude Opus 4.8 measured
IFBench62.2%76.3%GLM 5.1
Long context reasoning (AA-LCR)77.7%73.7%Claude Opus 4.8
GDPval-AA14621125Claude Opus 4.8
DTBench94.9%Not measuredOnly Claude Opus 4.8 measured
LMCA57.5%Not measuredOnly Claude Opus 4.8 measured
Surface Evolver Bench87.5%Not measuredOnly Claude Opus 4.8 measured
Furniture assembly42.5%Not measuredOnly Claude Opus 4.8 measured
ExploitBenchNot measured18.1%Only GLM 5.1 measured
LMArena Text14621462GLM 5.1
LMArena Text: instruction following14771452Claude Opus 4.8
LMArena Text: creative writing14551453Claude Opus 4.8
LMArena Vision1294Not measuredOnly Claude Opus 4.8 measured
LMArena Text: English14691475GLM 5.1
LMArena Text: non-English14511448Claude Opus 4.8
LMArena Text: Chinese15081517GLM 5.1
LMArena Text: German14701467Claude Opus 4.8
LMArena Text: Japanese14431439Claude Opus 4.8
LMArena Text: Korean14231425GLM 5.1
LMArena Text: French14811470Claude Opus 4.8
LMArena Text: Spanish14681470GLM 5.1
LMArena Text: Russian14751454Claude Opus 4.8
LMArena Text: Polish14601452Claude Opus 4.8
LMArena Text: multi-turn14761472Claude Opus 4.8
LMArena Text: longer queries14841467Claude Opus 4.8
LMArena Text: writing and language14621454Claude Opus 4.8
LMArena Text: entertainment and media14411443GLM 5.1
LMArena Vision: English1293Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: Chinese1346Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: reading text1303Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: humor1284Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: creative writing1300Not measuredOnly Claude Opus 4.8 measured
LMArena Document1474Not measuredOnly Claude Opus 4.8 measured
EQ-Bench 41268Not measuredOnly 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
Image generation benchmarks for Claude Opus 4.8 and GLM 5.1
BenchmarkClaude Opus 4.8GLM 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 Opus 4.8$0.018Fits in one request
GLM 5.1$0.0036Fits in one request

GLM 5.1 costs less

Repository review

50K input + 3K output tokens

Claude Opus 4.8$0.325Fits in one request
GLM 5.1$0.083Fits in one request

GLM 5.1 costs less

Agent loop

200K input + 10K output tokens

Claude Opus 4.8$1.25Fits 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 Opus 4.8 and GLM 5.1
SpecificationAnthropic Claude Opus 4.8Z.ai GLM 5.1
MakerAnthropicZ.ai
WeightsNo public weights listedOpen weights
ReleasedMay 27, 2026April 7, 2026
Context window1M205K
Input $/Mtok$5.00$1.40
Output $/Mtok$25.00$4.40
Coding index56.763.5
Independent measurements behind it42
Cost per solved task$2.17$0.60
SourceOpenRouter listingOpenRouter 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.

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-opus-4-8-vs-glm-5-1" title="Claude Opus 4.8 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-opus-4-8-vs-glm-5-1">LLMBenchmark.ai, Claude Opus 4.8 vs GLM 5.1</a></p>