Enter opens the highlighted result. Esc closes.

Claude Haiku 4.5 vs GLM 5.1

GLM 5.1 leads Claude Haiku 4.5 on coding, 49.2 to 35.6 on the Vibe Coding Index, at about the same output price ($4.40 vs $5.00 per million). Updated October 22, 2026; 68 benchmarks have a result for both.

Claude Haiku 4.5Anthropic
Coding
35.6
Overall
41.0
Output $/M
$5.00
2
GLM 5.1Z.ai
Coding
49.2
Overall
57.5
Output $/M
$4.40
65
vs boards won of 68 shared, 1 tied

Claude Haiku 4.5 or GLM 5.1: which to pick

Pick GLM 5.1 for coding: it scores 49.2 on the Vibe Coding Index against 35.6 for Claude Haiku 4.5, though on 3 benchmarks against 4.

Pick Claude Haiku 4.5 for a lower cost per solved task ($0.56 against $0.60) and work measured by CaseLaw (Vals AI) or MedScribe (Vals AI), where it leads.

Shared results
68
Claude Haiku 4.5 only
27
GLM 5.1 only
21
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 Haiku 4.5 35.6 from 4 benchmarks, GLM 5.1 49.2 from 3 benchmarks.
Widest category
Web design, 21.7 points apart on average over 8 shared benchmarks.
Widest single gap
LiveCodeBench (Vals AI): Claude Haiku 4.5 41.2% against GLM 5.1 81.4%, 40.2 points apart on a 0 to 100 scale.
Output price
Claude Haiku 4.5 $5.00 against GLM 5.1 $4.40 per million output tokens, 1.1x apart.
Context window
Claude Haiku 4.5 takes 200K 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 Haiku 4.5BarsGLM 5.1Ties
Coding0121 tie
Intelligence02
Agentic work04
Reasoning06
Math04
Knowledge110
Web design08
General119
All shared boards2651 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index012
Coding benchmarks for Claude Haiku 4.5 and GLM 5.1
BenchmarkClaude Haiku 4.5GLM 5.1Leader
SWE-bench Verified66.6%Not measuredOnly Claude Haiku 4.5 measured
SWE-bench Multilingual64.7%Not measuredOnly Claude Haiku 4.5 measured
LiveBench coding48.1%Not measuredOnly Claude Haiku 4.5 measured
LMArena WebDev13301508GLM 5.1
AA Coding Index43.955.8GLM 5.1
LiveCodeBench (Vals AI)41.2%81.4%GLM 5.1
SWE-bench Verified (Vals AI)66.6%76.4%GLM 5.1
Vibe Code Bench (Vals AI)11.4%31.5%GLM 5.1
Code migration (Vals AI)7.5%25.8%GLM 5.1
ProgramBench (Vals AI)0.0%0.0%Tie
Terminal-Bench 2.1 (Vals AI)43.8%56.9%GLM 5.1
SciCodeNot measured44.8%Only GLM 5.1 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured43.2%Only GLM 5.1 measured
Terminal-Bench35.5%Not measuredOnly Claude Haiku 4.5 measured
WeirdML45.4%57.1%GLM 5.1
ALE-BenchNot measured887.1Only GLM 5.1 measured
LMArena Text: coding14541485GLM 5.1
LMArena Text: software and IT14391484GLM 5.1
LMArena WebDev: React13261505GLM 5.1
LMArena WebDev: HTML13181508GLM 5.1
Neither model has a result on the other 19 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Claude Haiku 4.5 and GLM 5.1
BenchmarkClaude Haiku 4.5GLM 5.1Leader
AA Intelligence Index16.926.1GLM 5.1
Epoch Capabilities Index142.2149.8GLM 5.1
Agentic workLike-for-likePublic boards, shown as published, kept out of the index04
Agentic work benchmarks for Claude Haiku 4.5 and GLM 5.1
BenchmarkClaude Haiku 4.5GLM 5.1Leader
AA Agentic Index8.023.9GLM 5.1
Design Arena: agents building web appsNot measured1175Only GLM 5.1 measured
Design Arena: agents building full-stack appsNot measured1167Only GLM 5.1 measured
Design Arena: agents building mobile appsNot measured1162Only GLM 5.1 measured
Design Arena: agents building Android appsNot measured1182Only GLM 5.1 measured
Design Arena: agents building Godot gamesNot measured1053Only GLM 5.1 measured
Design Arena: agents building gamesNot measured1164Only GLM 5.1 measured
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 research42.2%Not measuredOnly Claude Haiku 4.5 measured
LiveBench browser40.0%Not measuredOnly Claude Haiku 4.5 measured
LiveBench long agentic11.1%Not measuredOnly Claude Haiku 4.5 measured
Finance Agent (Vals AI)31.0%44.8%GLM 5.1
Tax Agent Bench (Vals AI)5.9%Not measuredOnly Claude Haiku 4.5 measured
Legal Research Bench (Vals AI)10.6%27.9%GLM 5.1
Excel Modeling Benchmark (Vals AI)22.7%Not measuredOnly Claude Haiku 4.5 measured
τ²-Bench TelecomNot measured97.7%Only GLM 5.1 measured
APEX-AgentsNot measured40.9%Only GLM 5.1 measured
BALROG31.2%Not measuredOnly Claude Haiku 4.5 measured
DeepResearch Bench45.5%Not measuredOnly Claude Haiku 4.5 measured
Vending-Bench 2$459$5,634GLM 5.1
Berkeley Function Calling Leaderboard (BFCL)68.7%Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 18 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index06
Reasoning benchmarks for Claude Haiku 4.5 and GLM 5.1
BenchmarkClaude Haiku 4.5GLM 5.1Leader
GPQA Diamond72.2%84.5%GLM 5.1
LiveBench reasoning61.7%Not measuredOnly Claude Haiku 4.5 measured
MMMU Pro (Vals AI)46.1%Not measuredOnly Claude Haiku 4.5 measured
GPQA Diamond (Artificial Analysis run)Not measured86.8%Only GLM 5.1 measured
Humanity's Last Exam (Artificial Analysis run)Not measured30.1%Only GLM 5.1 measured
GPQA Diamond (Epoch AI run)71.2%89.9%GLM 5.1
ARC-AGI47.7%Not measuredOnly Claude Haiku 4.5 measured
ARC-AGI-24.0%Not measuredOnly Claude Haiku 4.5 measured
SimpleBenchNot measured55.1%Only GLM 5.1 measured
Chess puzzles8.0%20.0%GLM 5.1
LMArena Text: hard prompts14211473GLM 5.1
LMArena Text: expert14431478GLM 5.1
LMArena Text: hard prompts in English14351482GLM 5.1
Neither model has a result on the other 9 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index04
Math benchmarks for Claude Haiku 4.5 and GLM 5.1
BenchmarkClaude Haiku 4.5GLM 5.1Leader
AIME82.7%91.9%GLM 5.1
MGSM (Vals AI)92.2%Not measuredOnly Claude Haiku 4.5 measured
OTIS Mock AIME66.7%93.3%GLM 5.1
FrontierMath, tiers 1 to 3Not measured36.8%Only GLM 5.1 measured
ProofBenchNot measured22.2%Only GLM 5.1 measured
MATH level 596.4%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: math13981473GLM 5.1
LMArena Text: mathematical work14301470GLM 5.1
Neither model has a result on the other 5 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index110
Knowledge benchmarks for Claude Haiku 4.5 and GLM 5.1
BenchmarkClaude Haiku 4.5GLM 5.1Leader
MMLU Pro78.7%86.9%GLM 5.1
LegalBench (Vals AI)81.2%84.4%GLM 5.1
CaseLaw (Vals AI)56.5%51.5%Claude Haiku 4.5
CorpFin (Vals AI)60.6%64.5%GLM 5.1
TaxEval (Vals AI)67.5%71.2%GLM 5.1
MortgageTax (Vals AI)62.2%Not measuredOnly Claude Haiku 4.5 measured
MedQA (Vals AI)79.6%Not measuredOnly Claude Haiku 4.5 measured
MedCode (Vals AI)32.7%41.6%GLM 5.1
SimpleQA Verified13.2%34.0%GLM 5.1
LMArena Text: science14061478GLM 5.1
LMArena Text: medicine and healthcare13941474GLM 5.1
LMArena Text: legal and government14001465GLM 5.1
LMArena Text: business and finance14001452GLM 5.1
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index08
Web design benchmarks for Claude Haiku 4.5 and GLM 5.1
BenchmarkClaude Haiku 4.5GLM 5.1Leader
Design Arena: websites11221290GLM 5.1
Design Arena: UI components10971292GLM 5.1
Design Arena: game dev10971265GLM 5.1
Design Arena: data viz11241366GLM 5.1
Design Arena: 3D10711336GLM 5.1
Design Arena: all code categories11141268GLM 5.1
Design Arena: SVG10251218GLM 5.1
Design Arena: ASCII art11401141GLM 5.1
LiveBench design59.9%Not measuredOnly Claude Haiku 4.5 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index119
General benchmarks for Claude Haiku 4.5 and GLM 5.1
BenchmarkClaude Haiku 4.5GLM 5.1Leader
LiveBench data analysis59.3%Not measuredOnly Claude Haiku 4.5 measured
Public Benefits Bench (Vals AI)54.3%61.8%GLM 5.1
SAGE (Vals AI)31.8%Not measuredOnly Claude Haiku 4.5 measured
MedScribe (Vals AI)85.2%72.3%Claude Haiku 4.5
Vals Multimodal Index42.9%Not measuredOnly Claude Haiku 4.5 measured
IFBenchNot measured76.3%Only GLM 5.1 measured
Long context reasoning (AA-LCR)Not measured73.7%Only GLM 5.1 measured
DTBench73.6%Not measuredOnly Claude Haiku 4.5 measured
LMCA30.9%Not measuredOnly Claude Haiku 4.5 measured
ExploitBench13.7%18.1%GLM 5.1
LMArena Text13971463GLM 5.1
LMArena Text: instruction following14141453GLM 5.1
LMArena Text: creative writing13711453GLM 5.1
LMArena Text: English14141476GLM 5.1
LMArena Text: non-English13771448GLM 5.1
LMArena Text: Chinese14181515GLM 5.1
LMArena Text: German13741467GLM 5.1
LMArena Text: Japanese13381435GLM 5.1
LMArena Text: Korean13461424GLM 5.1
LMArena Text: French14111470GLM 5.1
LMArena Text: Spanish14211468GLM 5.1
LMArena Text: Russian13811454GLM 5.1
LMArena Text: Polish13431449GLM 5.1
LMArena Text: multi-turn14091473GLM 5.1
LMArena Text: longer queries14271467GLM 5.1
LMArena Text: writing and language13861454GLM 5.1
LMArena Text: entertainment and media13691442GLM 5.1
LMArena Document1420Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 18 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Haiku 4.5 and GLM 5.1
BenchmarkClaude Haiku 4.5GLM 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 Haiku 4.5$0.0035Fits in one request
GLM 5.1$0.0036Fits in one request

Claude Haiku 4.5 costs less

Repository review

50K input + 3K output tokens

Claude Haiku 4.5$0.065Fits in one request
GLM 5.1$0.083Fits in one request

Claude Haiku 4.5 costs less

Agent loop

200K input + 10K output tokens

Claude Haiku 4.5$0.250Exceeds the context window
GLM 5.1$0.324Exceeds the context window

Claude Haiku 4.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 Haiku 4.5 and GLM 5.1
SpecificationAnthropic Claude Haiku 4.5Z.ai GLM 5.1
MakerAnthropicZ.ai
WeightsNo public weights listedOpen weights
ReleasedOctober 15, 2025April 7, 2026
Context window200K205K
Input $/Mtok$1.00$1.40
Output $/Mtok$5.00$4.40
Coding index35.649.2
Independent measurements behind it43
Cost per solved task$0.56$0.60
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Haiku 4.5 better than GLM 5.1 for coding?

Pick GLM 5.1 for coding: it scores 49.2 on the Vibe Coding Index against 35.6 for Claude Haiku 4.5, though on 3 benchmarks against 4. Pick Claude Haiku 4.5 for a lower cost per solved task ($0.56 against $0.60) and work measured by CaseLaw (Vals AI) or MedScribe (Vals AI), where it leads.

Which is cheaper, Claude Haiku 4.5 or GLM 5.1?

Claude Haiku 4.5 costs $1.00 per million input tokens and $5.00 per million output tokens; GLM 5.1 costs $1.40 and $4.40. Per solved SWE-bench Verified task, Claude Haiku 4.5 costs $0.56 and GLM 5.1 $0.60.

Which has the bigger context window, Claude Haiku 4.5 or GLM 5.1?

GLM 5.1, with 205K tokens against 200K.

How many benchmarks is the Claude Haiku 4.5 vs GLM 5.1 comparison based on?

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