Claude Haiku 4.5 vs GLM 5
GLM 5 leads Claude Haiku 4.5 on coding, 41.7 to 35.6 on the Vibe Coding Index, and GLM 5 costs 1.6x less per output token ($3.20 vs $5.00 per million). Updated October 22, 2026; 61 benchmarks have a result for both.
Claude Haiku 4.5 or GLM 5: which to pick
Pick GLM 5 for coding: it scores 41.7 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.63) and work measured by ARC-AGI or CaseLaw (Vals AI), where it leads.
- Shared results
- 61
- Claude Haiku 4.5 only
- 34
- GLM 5 only
- 15
- 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
GLM 5 scores 41.7 against 35.6.
4 and 3 benchmarks behind the scores
Intelligence
AA Intelligence Index
GLM 5
GLM 5 leads, 27.9 against 16.9.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Claude Haiku 4.5 has a AA Agentic Index result, 8.0.
Directional only
Reasoning
GPQA Diamond
GLM 5
GLM 5 leads, 83.3% against 72.2%.
Same board, both measured
Math
AIME
GLM 5
GLM 5 leads, 91.7% against 82.7%.
Same board, both measured
Knowledge
MMLU Pro
GLM 5
GLM 5 leads, 86.0% against 78.7%.
Same board, both measured
Web design
Design Arena: websites
GLM 5
GLM 5 leads, 1247 against 1122.
Same board, both measured
Long documents
Listed context window
GLM 5
GLM 5 takes 205K tokens against 200K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GLM 5
Claude Haiku 4.5 $0.0035, GLM 5 $0.0026 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
Claude Haiku 4.5
Claude Haiku 4.5 $0.56, GLM 5 $0.63.
Published attempt cost and pass rate
At a glance
- Coding index
- Claude Haiku 4.5 35.6 from 4 benchmarks, GLM 5 41.7 from 3 benchmarks.
- Widest category
- Agentic work, 24.8 points apart on average over 1 shared benchmark.
- Widest single gap
- LiveCodeBench (Vals AI): Claude Haiku 4.5 41.2% against GLM 5 81.9%, 40.7 points apart on a 0 to 100 scale.
- Output price
- Claude Haiku 4.5 $5.00 against GLM 5 $3.20 per million output tokens, 1.6x apart.
- Context window
- Claude Haiku 4.5 takes 200K tokens, GLM 5 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 Haiku 4.5 | Bars | GLM 5 | Ties |
|---|---|---|---|---|
| Coding | 0 | 12 | ||
| Intelligence | 0 | 2 | ||
| Agentic work | 0 | 1 | ||
| Reasoning | 1 | 6 | ||
| Math | 0 | 4 | ||
| Knowledge | 1 | 9 | ||
| Web design | 0 | 8 | ||
| General | 0 | 17 | ||
| All shared boards | 2 | 59 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index012
| Benchmark | Claude Haiku 4.5 | GLM 5 | Leader |
|---|---|---|---|
| SWE-bench Verified | 66.6% | 72.8% | GLM 5 |
| SWE-bench Multilingual | 64.7% | 69.7% | GLM 5 |
| LiveBench coding | 48.1% | Not measured | Only Claude Haiku 4.5 measured |
| LMArena WebDev | 1330 | 1435 | GLM 5 |
| AA Coding Index | 43.9 | Not measured | Only Claude Haiku 4.5 measured |
| LiveCodeBench (Vals AI) | 41.2% | 81.9% | GLM 5 |
| SWE-bench Verified (Vals AI) | 66.6% | 71.4% | GLM 5 |
| Vibe Code Bench (Vals AI) | 11.4% | 23.4% | GLM 5 |
| Code migration (Vals AI) | 7.5% | Not measured | Only Claude Haiku 4.5 measured |
| ProgramBench (Vals AI) | 0.0% | Not measured | Only Claude Haiku 4.5 measured |
| Terminal-Bench 2.1 (Vals AI) | 43.8% | Not measured | Only Claude Haiku 4.5 measured |
| Terminal-Bench Hard (Artificial Analysis run) | Not measured | 43.2% | Only GLM 5 measured |
| Terminal-Bench | 35.5% | 52.4% | GLM 5 |
| WeirdML | 45.4% | 48.2% | GLM 5 |
| ALE-Bench | Not measured | 765.6 | Only GLM 5 measured |
| LMArena Text: coding | 1454 | 1461 | GLM 5 |
| LMArena Text: software and IT | 1439 | 1460 | GLM 5 |
| LMArena WebDev: React | 1326 | 1424 | GLM 5 |
| LMArena WebDev: HTML | 1318 | 1450 | GLM 5 |
| Neither model has a result on the other 20 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Claude Haiku 4.5 | GLM 5 | Leader |
|---|---|---|---|
| AA Intelligence Index | 16.9 | 27.9 | GLM 5 |
| Epoch Capabilities Index | 142.2 | 145.8 | GLM 5 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
| Benchmark | Claude Haiku 4.5 | GLM 5 | Leader |
|---|---|---|---|
| AA Agentic Index | 8.0 | Not measured | Only Claude Haiku 4.5 measured |
| Design Arena: agents building full-stack apps | Not measured | 1123 | Only GLM 5 measured |
| Design Arena: agents building mobile apps | Not measured | 1136 | Only GLM 5 measured |
| Design Arena: agents building Android apps | Not measured | 1147 | Only GLM 5 measured |
| Design Arena: agents building Godot games | Not measured | 1144 | Only GLM 5 measured |
| Design Arena: HTML slides | Not measured | 1098 | Only GLM 5 measured |
| LiveBench research | 42.2% | Not measured | Only Claude Haiku 4.5 measured |
| LiveBench browser | 40.0% | Not measured | Only Claude Haiku 4.5 measured |
| LiveBench long agentic | 11.1% | Not measured | Only Claude Haiku 4.5 measured |
| Finance Agent (Vals AI) | 31.0% | Not measured | Only Claude Haiku 4.5 measured |
| Tax Agent Bench (Vals AI) | 5.9% | Not measured | Only Claude Haiku 4.5 measured |
| Legal Research Bench (Vals AI) | 10.6% | Not measured | Only Claude Haiku 4.5 measured |
| Excel Modeling Benchmark (Vals AI) | 22.7% | Not measured | Only Claude Haiku 4.5 measured |
| τ²-Bench Telecom | Not measured | 98.2% | Only GLM 5 measured |
| BALROG | 31.2% | Not measured | Only Claude Haiku 4.5 measured |
| DeepResearch Bench | 45.5% | Not measured | Only Claude Haiku 4.5 measured |
| Vending-Bench 2 | $459 | $4,432 | GLM 5 |
| Berkeley Function Calling Leaderboard (BFCL) | 68.7% | Not measured | Only Claude Haiku 4.5 measured |
| Neither model has a result on the other 23 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index16
| Benchmark | Claude Haiku 4.5 | GLM 5 | Leader |
|---|---|---|---|
| GPQA Diamond | 72.2% | 83.3% | GLM 5 |
| LiveBench reasoning | 61.7% | Not measured | Only Claude Haiku 4.5 measured |
| MMMU Pro (Vals AI) | 46.1% | Not measured | Only Claude Haiku 4.5 measured |
| GPQA Diamond (Artificial Analysis run) | Not measured | 82.0% | Only GLM 5 measured |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 29.3% | Only GLM 5 measured |
| GPQA Diamond (Epoch AI run) | 71.2% | 87.8% | GLM 5 |
| ARC-AGI | 47.7% | 44.7% | Claude Haiku 4.5 |
| ARC-AGI-2 | 4.0% | 4.9% | GLM 5 |
| SimpleBench | Not measured | 53.2% | Only GLM 5 measured |
| Chess puzzles | 8.0% | Not measured | Only Claude Haiku 4.5 measured |
| LMArena Text: hard prompts | 1421 | 1452 | GLM 5 |
| LMArena Text: expert | 1443 | 1454 | GLM 5 |
| LMArena Text: hard prompts in English | 1435 | 1460 | GLM 5 |
| Kagi LLM Benchmark | Not measured | 75.0% | Only GLM 5 measured |
| Neither model has a result on the other 8 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | Claude Haiku 4.5 | GLM 5 | Leader |
|---|---|---|---|
| AIME | 82.7% | 91.7% | GLM 5 |
| MGSM (Vals AI) | 92.2% | Not measured | Only Claude Haiku 4.5 measured |
| OTIS Mock AIME | 66.7% | 80.0% | GLM 5 |
| MATH level 5 | 96.4% | Not measured | Only Claude Haiku 4.5 measured |
| LMArena Text: math | 1398 | 1440 | GLM 5 |
| LMArena Text: mathematical work | 1430 | 1451 | GLM 5 |
| Neither model has a result on the other 7 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index19
| Benchmark | Claude Haiku 4.5 | GLM 5 | Leader |
|---|---|---|---|
| MMLU Pro | 78.7% | 86.0% | GLM 5 |
| LegalBench (Vals AI) | 81.2% | 84.1% | GLM 5 |
| CaseLaw (Vals AI) | 56.5% | 52.5% | Claude Haiku 4.5 |
| CorpFin (Vals AI) | 60.6% | 62.9% | GLM 5 |
| TaxEval (Vals AI) | 67.5% | 70.0% | GLM 5 |
| MortgageTax (Vals AI) | 62.2% | Not measured | Only Claude Haiku 4.5 measured |
| MedQA (Vals AI) | 79.6% | 94.3% | GLM 5 |
| MedCode (Vals AI) | 32.7% | Not measured | Only Claude Haiku 4.5 measured |
| SimpleQA Verified | 13.2% | Not measured | Only Claude Haiku 4.5 measured |
| LMArena Text: science | 1406 | 1460 | GLM 5 |
| LMArena Text: medicine and healthcare | 1394 | 1455 | GLM 5 |
| LMArena Text: legal and government | 1400 | 1453 | GLM 5 |
| LMArena Text: business and finance | 1400 | 1430 | GLM 5 |
| Neither model has a result on the other 5 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index08
| Benchmark | Claude Haiku 4.5 | GLM 5 | Leader |
|---|---|---|---|
| Design Arena: websites | 1122 | 1247 | GLM 5 |
| Design Arena: UI components | 1097 | 1227 | GLM 5 |
| Design Arena: game dev | 1097 | 1234 | GLM 5 |
| Design Arena: data viz | 1124 | 1228 | GLM 5 |
| Design Arena: 3D | 1071 | 1228 | GLM 5 |
| Design Arena: all code categories | 1114 | 1246 | GLM 5 |
| Design Arena: SVG | 1025 | 1168 | GLM 5 |
| Design Arena: ASCII art | 1140 | 1147 | GLM 5 |
| LiveBench design | 59.9% | Not measured | Only Claude Haiku 4.5 measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index017
| Benchmark | Claude Haiku 4.5 | GLM 5 | Leader |
|---|---|---|---|
| LiveBench data analysis | 59.3% | Not measured | Only Claude Haiku 4.5 measured |
| Public Benefits Bench (Vals AI) | 54.3% | Not measured | Only Claude Haiku 4.5 measured |
| SAGE (Vals AI) | 31.8% | Not measured | Only Claude Haiku 4.5 measured |
| MedScribe (Vals AI) | 85.2% | Not measured | Only Claude Haiku 4.5 measured |
| Vals Multimodal Index | 42.9% | Not measured | Only Claude Haiku 4.5 measured |
| IFBench | Not measured | 72.3% | Only GLM 5 measured |
| Long context reasoning (AA-LCR) | Not measured | 75.7% | Only GLM 5 measured |
| DTBench | 73.6% | Not measured | Only Claude Haiku 4.5 measured |
| LMCA | 30.9% | Not measured | Only Claude Haiku 4.5 measured |
| CL-bench | Not measured | 18.7% | Only GLM 5 measured |
| ExploitBench | 13.7% | Not measured | Only Claude Haiku 4.5 measured |
| LMArena Text | 1397 | 1446 | GLM 5 |
| LMArena Text: instruction following | 1414 | 1428 | GLM 5 |
| LMArena Text: creative writing | 1371 | 1438 | GLM 5 |
| LMArena Text: English | 1414 | 1458 | GLM 5 |
| LMArena Text: non-English | 1377 | 1430 | GLM 5 |
| LMArena Text: Chinese | 1418 | 1511 | GLM 5 |
| LMArena Text: German | 1374 | 1447 | GLM 5 |
| LMArena Text: Japanese | 1338 | 1416 | GLM 5 |
| LMArena Text: Korean | 1346 | 1423 | GLM 5 |
| LMArena Text: French | 1411 | 1456 | GLM 5 |
| LMArena Text: Spanish | 1421 | 1454 | GLM 5 |
| LMArena Text: Russian | 1381 | 1436 | GLM 5 |
| LMArena Text: Polish | 1343 | 1434 | GLM 5 |
| LMArena Text: multi-turn | 1409 | 1456 | GLM 5 |
| LMArena Text: longer queries | 1427 | 1446 | GLM 5 |
| LMArena Text: writing and language | 1386 | 1437 | GLM 5 |
| LMArena Text: entertainment and media | 1369 | 1426 | GLM 5 |
| LMArena Document | 1420 | Not measured | Only Claude Haiku 4.5 measured |
| Neither model has a result on the other 17 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Haiku 4.5 | GLM 5 | 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 costs less
Repository review
50K input + 3K output tokens
GLM 5 costs less
Agent loop
200K input + 10K output tokens
GLM 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.
| Specification | Anthropic Claude Haiku 4.5 | Z.ai GLM 5 |
|---|---|---|
| Maker | Anthropic | Z.ai |
| Weights | No public weights listed | Open weights |
| Released | October 15, 2025 | February 11, 2026 |
| Context window | 200K | 205K |
| Input $/Mtok | $1.00 | $1.00 |
| Output $/Mtok | $5.00 | $3.20 |
| Coding index | 35.6 | 41.7 |
| Independent measurements behind it | 4 | 3 |
| Cost per solved task | $0.56 | $0.63 |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Haiku 4.5 better than GLM 5 for coding?
Pick GLM 5 for coding: it scores 41.7 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.63) and work measured by ARC-AGI or CaseLaw (Vals AI), where it leads.
Which is cheaper, Claude Haiku 4.5 or GLM 5?
Claude Haiku 4.5 costs $1.00 per million input tokens and $5.00 per million output tokens; GLM 5 costs $1.00 and $3.20. Per solved SWE-bench Verified task, Claude Haiku 4.5 costs $0.56 and GLM 5 $0.63.
Which has the bigger context window, Claude Haiku 4.5 or GLM 5?
GLM 5, with 205K tokens against 200K.
How many benchmarks is the Claude Haiku 4.5 vs GLM 5 comparison based on?
61 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's on 3. Where only one model has a result, the page says so instead of naming a winner.