Enter opens the highlighted result. Esc closes.

Claude Haiku 4.5 vs GLM 5.4

GLM 5.4 leads Claude Haiku 4.5 on coding, 72.7 to 31.4 on the Vibe Coding Index, at about the same output price ($4.40 vs $5.00 per million). Updated December 3, 2026; 3 benchmarks have a result for both.

Claude Haiku 4.5Anthropic
Coding
31.4
Overall
39.9
Output $/M
$5.00
0
GLM 5.4Z.ai
Coding
72.7
Overall
No data
Output $/M
$4.40
3
vs boards won of 3 shared

Claude Haiku 4.5 or GLM 5.4: which to pick

Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 31.4 for Claude Haiku 4.5, though on 2 benchmarks against 3.

Claude Haiku 4.5 is neither cheaper nor larger in context, and leads no benchmark both models were measured on.

Shared results
3
Claude Haiku 4.5 only
87
GLM 5.4 only
7
Like-for-like categories
1 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 31.4 from 3 benchmarks, GLM 5.4 72.7 from 2 benchmarks.
Widest category
Coding, 48.1 points apart on average over 3 shared benchmarks.
Widest single gap
LMArena WebDev: Claude Haiku 4.5 1330 against GLM 5.4 1690, 51.4 points apart on a 0 to 100 scale.
Output price
Claude Haiku 4.5 $5.00 against GLM 5.4 $4.40 per million output tokens, 1.1x apart.
Context window
Claude Haiku 4.5 takes 200K tokens, GLM 5.4 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.

Boards won, where both have a result
CategoryClaude Haiku 4.5BarsGLM 5.4Ties
Coding03
All shared boards03
CodingLike-for-likeSix of these boards feed the Vibe Coding Index03
Coding benchmarks for Claude Haiku 4.5 and GLM 5.4
BenchmarkClaude Haiku 4.5GLM 5.4Leader
SWE-bench Verified66.6%Not measuredOnly Claude Haiku 4.5 measured
SWE-bench Multilingual64.7%Not measuredOnly Claude Haiku 4.5 measured
LiveBench codingNot measured74.5%Only GLM 5.4 measured
LMArena WebDev13301690GLM 5.4
LiveCodeBench (Vals AI)41.2%Not measuredOnly Claude Haiku 4.5 measured
SWE-bench Verified (Vals AI)66.6%Not measuredOnly Claude Haiku 4.5 measured
Vibe Code Bench (Vals AI)11.4%Not measuredOnly Claude Haiku 4.5 measured
Code migration (Vals AI)7.5%Not measuredOnly Claude Haiku 4.5 measured
ProgramBench (Vals AI)0.0%Not measuredOnly Claude Haiku 4.5 measured
Terminal-Bench 2.1 (Vals AI)43.8%Not measuredOnly Claude Haiku 4.5 measured
Terminal-Bench35.5%Not measuredOnly Claude Haiku 4.5 measured
WeirdML45.4%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: coding1454Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: software and IT1439Not measuredOnly Claude Haiku 4.5 measured
LMArena WebDev: React13251739GLM 5.4
LMArena WebDev: HTML13181675GLM 5.4
Terminal-Bench 2.035.5%Not measuredOnly Claude Haiku 4.5 measured
ProgramBench0.0%Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 34 boards here
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
Intelligence benchmarks for Claude Haiku 4.5 and GLM 5.4
BenchmarkClaude Haiku 4.5GLM 5.4Leader
AA Intelligence Index7.0Not measuredOnly Claude Haiku 4.5 measured
Epoch Capabilities Index142.7Not measuredOnly Claude Haiku 4.5 measured
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index12 boards, none shared
Agentic work benchmarks for Claude Haiku 4.5 and GLM 5.4
BenchmarkClaude Haiku 4.5GLM 5.4Leader
LiveBench researchNot measured86.0%Only GLM 5.4 measured
LiveBench browserNot measured64.5%Only GLM 5.4 measured
LiveBench long agenticNot measured41.3%Only GLM 5.4 measured
Finance Agent (Vals AI)31.0%Not measuredOnly Claude Haiku 4.5 measured
Tax Agent Bench (Vals AI)5.9%Not measuredOnly Claude Haiku 4.5 measured
Legal Research Bench (Vals AI)10.6%Not measuredOnly Claude Haiku 4.5 measured
Excel Modeling Benchmark (Vals AI)22.7%Not measuredOnly Claude Haiku 4.5 measured
BALROG31.2%Not measuredOnly Claude Haiku 4.5 measured
DeepResearch Bench45.5%Not measuredOnly Claude Haiku 4.5 measured
Vending-Bench 2$459Not measuredOnly Claude Haiku 4.5 measured
Berkeley Function Calling Leaderboard (BFCL)68.7%Not measuredOnly Claude Haiku 4.5 measured
MCP Atlas40.2%Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 32 boards here
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index10 boards, none shared
Reasoning benchmarks for Claude Haiku 4.5 and GLM 5.4
BenchmarkClaude Haiku 4.5GLM 5.4Leader
GPQA Diamond72.2%Not measuredOnly Claude Haiku 4.5 measured
LiveBench reasoningNot measured85.2%Only GLM 5.4 measured
MMMU Pro (Vals AI)46.1%Not measuredOnly Claude Haiku 4.5 measured
GPQA Diamond (Epoch AI run)71.2%Not measuredOnly Claude Haiku 4.5 measured
ARC-AGI47.7%Not measuredOnly Claude Haiku 4.5 measured
ARC-AGI-24.0%Not measuredOnly Claude Haiku 4.5 measured
Chess puzzles8.0%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: hard prompts1420Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: expert1443Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: hard prompts in English1435Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 16 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Math benchmarks for Claude Haiku 4.5 and GLM 5.4
BenchmarkClaude Haiku 4.5GLM 5.4Leader
AIME82.7%Not measuredOnly Claude Haiku 4.5 measured
MGSM (Vals AI)92.2%Not measuredOnly Claude Haiku 4.5 measured
OTIS Mock AIME66.7%Not measuredOnly Claude Haiku 4.5 measured
MATH level 596.4%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: math1398Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: mathematical work1430Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 8 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index13 boards, none shared
Knowledge benchmarks for Claude Haiku 4.5 and GLM 5.4
BenchmarkClaude Haiku 4.5GLM 5.4Leader
MMLU Pro78.7%Not measuredOnly Claude Haiku 4.5 measured
LegalBench (Vals AI)81.2%Not measuredOnly Claude Haiku 4.5 measured
CaseLaw (Vals AI)56.5%Not measuredOnly Claude Haiku 4.5 measured
CorpFin (Vals AI)60.6%Not measuredOnly Claude Haiku 4.5 measured
TaxEval (Vals AI)67.5%Not measuredOnly Claude Haiku 4.5 measured
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%Not measuredOnly Claude Haiku 4.5 measured
SimpleQA Verified13.2%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: science1406Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: medicine and healthcare1394Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: legal and government1400Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: business and finance1400Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 8 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
Web design benchmarks for Claude Haiku 4.5 and GLM 5.4
BenchmarkClaude Haiku 4.5GLM 5.4Leader
Design Arena: websites1163Not measuredOnly Claude Haiku 4.5 measured
Design Arena: UI components1082Not measuredOnly Claude Haiku 4.5 measured
Design Arena: game dev1062Not measuredOnly Claude Haiku 4.5 measured
Design Arena: data viz1119Not measuredOnly Claude Haiku 4.5 measured
Design Arena: 3D1034Not measuredOnly Claude Haiku 4.5 measured
Design Arena: all code categories1157Not measuredOnly Claude Haiku 4.5 measured
Design Arena: SVG1066Not measuredOnly Claude Haiku 4.5 measured
Design Arena: ASCII art1108Not measuredOnly Claude Haiku 4.5 measured
LiveBench designNot measured74.2%Only GLM 5.4 measured
GeneralDirectional onlyPublic boards, shown as published, kept out of the index27 boards, none shared
General benchmarks for Claude Haiku 4.5 and GLM 5.4
BenchmarkClaude Haiku 4.5GLM 5.4Leader
LiveBench data analysisNot measured72.2%Only GLM 5.4 measured
Public Benefits Bench (Vals AI)54.3%Not measuredOnly Claude Haiku 4.5 measured
MedScribe (Vals AI)85.2%Not measuredOnly Claude Haiku 4.5 measured
Vals Multimodal Index42.9%Not measuredOnly Claude Haiku 4.5 measured
DTBench73.6%Not measuredOnly Claude Haiku 4.5 measured
LMCA30.9%Not measuredOnly Claude Haiku 4.5 measured
ExploitBench13.7%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text1397Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: instruction following1414Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: creative writing1370Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: English1414Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: non-English1376Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Chinese1418Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: German1373Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Japanese1338Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Korean1345Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: French1410Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Spanish1422Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Russian1380Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Polish1344Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: multi-turn1409Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: longer queries1426Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: writing and language1386Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: entertainment and media1369Not measuredOnly Claude Haiku 4.5 measured
LMArena Document1420Not measuredOnly Claude Haiku 4.5 measured
MultiChallenge50.5%Not measuredOnly Claude Haiku 4.5 measured
EQ-Bench 41053Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 22 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.4
BenchmarkClaude Haiku 4.5GLM 5.4Leader
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.4$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.4$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.4$0.324Fits in one request

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.4
SpecificationAnthropic Claude Haiku 4.5Z.ai GLM 5.4
MakerAnthropicZ.ai
WeightsNo public weights listedOpen weights
ReleasedOctober 15, 2025December 2, 2026
Context window200K1.05M
Input $/Mtok$1.00$1.40
Output $/Mtok$5.00$4.40
Coding index31.472.7
Independent measurements behind it32
Cost per solved task$0.56Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Haiku 4.5 better than GLM 5.4 for coding?

Pick GLM 5.4 for coding: it scores 72.7 on the Vibe Coding Index against 31.4 for Claude Haiku 4.5, though on 2 benchmarks against 3. Claude Haiku 4.5 is neither cheaper nor larger in context, and leads no benchmark both models were measured on.

Which is cheaper, Claude Haiku 4.5 or GLM 5.4?

Claude Haiku 4.5 costs $1.00 per million input tokens and $5.00 per million output tokens; GLM 5.4 costs $1.40 and $4.40. Cost per solved task is known for Claude Haiku 4.5 only.

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

GLM 5.4, with 1.05M tokens against 200K.

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

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