Enter opens the highlighted result. Esc closes.

Claude Haiku 4.5 vs GLM 5.2

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

Claude Haiku 4.5Anthropic
Coding
47.4
Overall
43.6
Output $/M
$5.00
1
GLM 5.2Z.ai
Coding
59.7
Overall
65.2
Output $/M
$4.40
66
vs boards won of 68 shared, 1 tied

Claude Haiku 4.5 or GLM 5.2: which to pick

Pick GLM 5.2 for coding: it scores 59.7 on the Vibe Coding Index against 47.4 for Claude Haiku 4.5.

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

Shared results
68
Claude Haiku 4.5 only
21
GLM 5.2 only
43
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 47.4 from 2 benchmarks, GLM 5.2 59.7 from 3 benchmarks.
Widest category
Agentic work, 33.0 points apart on average over 5 shared benchmarks.
Widest single gap
Vending-Bench 2: Claude Haiku 4.5 $459 against GLM 5.2 $8,314, 49.1 points apart on a 0 to 100 scale.
Output price
Claude Haiku 4.5 $5.00 against GLM 5.2 $4.40 per million output tokens, 1.1x apart.
Context window
Claude Haiku 4.5 takes 200K tokens, GLM 5.2 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.2Ties
Coding0111 tie
Intelligence01
Agentic work05
Reasoning08
Math03
Knowledge010
Web design08
General120
All shared boards1661 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index011
Coding benchmarks for Claude Haiku 4.5 and GLM 5.2
BenchmarkClaude Haiku 4.5GLM 5.2Leader
SWE-bench Verified66.6%Not measuredOnly Claude Haiku 4.5 measured
SWE-bench Multilingual64.7%Not measuredOnly Claude Haiku 4.5 measured
LMArena WebDev13301608GLM 5.2
LiveCodeBench (Vals AI)41.2%69.5%GLM 5.2
SWE-bench Verified (Vals AI)66.6%82.8%GLM 5.2
Code migration (Vals AI)7.5%37.9%GLM 5.2
ProgramBench (Vals AI)0.0%0.5%GLM 5.2
Terminal-Bench 2.1 (Vals AI)43.8%67.8%GLM 5.2
SkillsBench (Vals AI)Not measured45.1%Only GLM 5.2 measured
SciCodeNot measured51.2%Only GLM 5.2 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured50.8%Only GLM 5.2 measured
Terminal-Bench 4.0 (Artificial Analysis run)Not measured1.0%Only GLM 5.2 measured
Terminal-Bench35.5%Not measuredOnly Claude Haiku 4.5 measured
FrontierCodeNot measured24.5%Only GLM 5.2 measured
WeirdML45.4%70.1%GLM 5.2
MirrorCodeNot measured36.7%Only GLM 5.2 measured
ALE-BenchNot measured1047.0Only GLM 5.2 measured
LMArena Text: coding14541488GLM 5.2
LMArena Text: software and IT14391487GLM 5.2
LMArena WebDev: React13251621GLM 5.2
LMArena WebDev: HTML13171567GLM 5.2
SWE Atlas: Codebase QnANot measured48.1%Only GLM 5.2 measured
SWE Atlas: RefactoringNot measured42.4%Only GLM 5.2 measured
SWE Atlas: Test WritingNot measured41.5%Only GLM 5.2 measured
GameBench 2Not measured49.9Only GLM 5.2 measured
Terminal-Bench 2.035.5%Not measuredOnly Claude Haiku 4.5 measured
Terminal-Bench 3.0Not measured4.6%Only GLM 5.2 measured
ProgramBench0.0%0.0%Tie
Neither model has a result on the other 24 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Claude Haiku 4.5 and GLM 5.2
BenchmarkClaude Haiku 4.5GLM 5.2Leader
AA Intelligence Index7.0Not measuredOnly Claude Haiku 4.5 measured
Epoch Capabilities Index142.7153.0GLM 5.2
Agentic workLike-for-likePublic boards, shown as published, kept out of the index05
Agentic work benchmarks for Claude Haiku 4.5 and GLM 5.2
BenchmarkClaude Haiku 4.5GLM 5.2Leader
Design Arena: agents building web appsNot measured1184Only GLM 5.2 measured
Design Arena: agents building full-stack appsNot measured1288Only GLM 5.2 measured
Design Arena: agents building mobile appsNot measured1152Only GLM 5.2 measured
Design Arena: agents building Android appsNot measured1162Only GLM 5.2 measured
Design Arena: agents building Godot gamesNot measured1142Only GLM 5.2 measured
Design Arena: agents building gamesNot measured1156Only GLM 5.2 measured
Design Arena: HTML slidesNot measured1077Only GLM 5.2 measured
Design Arena: PowerPoint slidesNot measured1157Only GLM 5.2 measured
Design Arena: spreadsheetsNot measured1123Only GLM 5.2 measured
SREBench (Vals AI)Not measured0.0%Only GLM 5.2 measured
Finance Agent (Vals AI)31.0%49.7%GLM 5.2
Tax Agent Bench (Vals AI)5.9%Not measuredOnly Claude Haiku 4.5 measured
Legal Research Bench (Vals AI)10.6%31.3%GLM 5.2
Excel Modeling Benchmark (Vals AI)22.7%61.5%GLM 5.2
τ²-Bench TelecomNot measured99.1%Only GLM 5.2 measured
APEX-AgentsNot measured45.2%Only GLM 5.2 measured
BALROG31.2%Not measuredOnly Claude Haiku 4.5 measured
DeepResearch Bench45.5%Not measuredOnly Claude Haiku 4.5 measured
PostTrainBenchNot measured30.4%Only GLM 5.2 measured
Vending-Bench 2$459$8,314GLM 5.2
Berkeley Function Calling Leaderboard (BFCL)68.7%Not measuredOnly Claude Haiku 4.5 measured
MCP Atlas40.2%77.8%GLM 5.2
Toolathlon-VerifiedNot measured59.9%Only GLM 5.2 measured
τ³-BankingNot measured37.1%Only GLM 5.2 measured
Neither model has a result on the other 20 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index08
Reasoning benchmarks for Claude Haiku 4.5 and GLM 5.2
BenchmarkClaude Haiku 4.5GLM 5.2Leader
GPQA Diamond72.2%85.6%GLM 5.2
MMMU Pro (Vals AI)46.1%Not measuredOnly Claude Haiku 4.5 measured
GPQA Diamond (Artificial Analysis run)Not measured89.5%Only GLM 5.2 measured
Humanity's Last Exam (Artificial Analysis run)Not measured41.1%Only GLM 5.2 measured
HLE-Diamond (Artificial Analysis run)Not measured17.7%Only GLM 5.2 measured
GPQA Diamond (Epoch AI run)71.2%91.9%GLM 5.2
ARC-AGI47.7%77.0%GLM 5.2
ARC-AGI-24.0%22.8%GLM 5.2
SimpleBenchNot measured58.8%Only GLM 5.2 measured
Chess puzzles8.0%22.0%GLM 5.2
Mystery game puzzlesNot measured19.0%Only GLM 5.2 measured
EBR-benchNot measured9.5%Only GLM 5.2 measured
LMArena Text: hard prompts14201481GLM 5.2
LMArena Text: expert14431488GLM 5.2
LMArena Text: hard prompts in English14351481GLM 5.2
Kagi LLM BenchmarkNot measured62.6%Only GLM 5.2 measured
Neither model has a result on the other 10 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index03
Math benchmarks for Claude Haiku 4.5 and GLM 5.2
BenchmarkClaude Haiku 4.5GLM 5.2Leader
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%86.4%GLM 5.2
FrontierMath, tiers 1 to 3Not measured59.2%Only GLM 5.2 measured
FrontierMath, tier 4Not measured29.3%Only GLM 5.2 measured
ProofBenchNot measured35.0%Only GLM 5.2 measured
MATH level 596.4%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: math13981485GLM 5.2
LMArena Text: mathematical work14301490GLM 5.2
MathArenaNot measured21.1%Only GLM 5.2 measured
Neither model has a result on the other 4 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index010
Knowledge benchmarks for Claude Haiku 4.5 and GLM 5.2
BenchmarkClaude Haiku 4.5GLM 5.2Leader
MMLU Pro78.7%86.7%GLM 5.2
LegalBench (Vals AI)81.2%84.1%GLM 5.2
CaseLaw (Vals AI)56.5%Not measuredOnly Claude Haiku 4.5 measured
CorpFin (Vals AI)60.6%66.1%GLM 5.2
TaxEval (Vals AI)67.5%73.3%GLM 5.2
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%40.8%GLM 5.2
AA-OmniscienceNot measured0.6Only GLM 5.2 measured
SimpleQA Verified13.2%34.2%GLM 5.2
LMArena Text: science14061489GLM 5.2
LMArena Text: medicine and healthcare13941476GLM 5.2
LMArena Text: legal and government14001490GLM 5.2
LMArena Text: business and finance14001450GLM 5.2
Neither model has a result on the other 7 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.2
BenchmarkClaude Haiku 4.5GLM 5.2Leader
Design Arena: websites11621323GLM 5.2
Design Arena: UI components10791271GLM 5.2
Design Arena: game dev10621234GLM 5.2
Design Arena: data viz11171275GLM 5.2
Design Arena: 3D10321247GLM 5.2
Design Arena: all code categories11561328GLM 5.2
Design Arena: SVG10671245GLM 5.2
Design Arena: ASCII art11061174GLM 5.2
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index120
General benchmarks for Claude Haiku 4.5 and GLM 5.2
BenchmarkClaude Haiku 4.5GLM 5.2Leader
Public Benefits Bench (Vals AI)54.3%Not measuredOnly Claude Haiku 4.5 measured
MedScribe (Vals AI)85.2%83.5%Claude Haiku 4.5
Vals Multimodal Index42.9%Not measuredOnly Claude Haiku 4.5 measured
IFBenchNot measured73.3%Only GLM 5.2 measured
Long context reasoning (AA-LCR)Not measured78.3%Only GLM 5.2 measured
GDPval-AANot measured1383Only GLM 5.2 measured
DTBench73.6%93.6%GLM 5.2
LMCA30.9%45.8%GLM 5.2
Surface Evolver BenchNot measured55.6%Only GLM 5.2 measured
ExploitBench13.7%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text13971470GLM 5.2
LMArena Text: instruction following14141467GLM 5.2
LMArena Text: creative writing13701460GLM 5.2
LMArena Text: English14141475GLM 5.2
LMArena Text: non-English13761458GLM 5.2
LMArena Text: Chinese14181523GLM 5.2
LMArena Text: German13731467GLM 5.2
LMArena Text: Japanese13381452GLM 5.2
LMArena Text: Korean13451430GLM 5.2
LMArena Text: French14101477GLM 5.2
LMArena Text: Spanish14221480GLM 5.2
LMArena Text: Russian13801466GLM 5.2
LMArena Text: Polish13441459GLM 5.2
LMArena Text: multi-turn14091470GLM 5.2
LMArena Text: longer queries14261479GLM 5.2
LMArena Text: writing and language13861462GLM 5.2
LMArena Text: entertainment and media13691448GLM 5.2
LMArena Document1420Not measuredOnly Claude Haiku 4.5 measured
MultiChallenge50.5%Not measuredOnly Claude Haiku 4.5 measured
EQ-Bench 410531208GLM 5.2
Neither model has a result on the other 19 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.2
BenchmarkClaude Haiku 4.5GLM 5.2Leader
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.2$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.2$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.2$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.2
SpecificationAnthropic Claude Haiku 4.5Z.ai GLM 5.2
MakerAnthropicZ.ai
WeightsNo public weights listedOpen weights
ReleasedOctober 15, 2025June 16, 2026
Context window200K1.05M
Input $/Mtok$1.00$1.40
Output $/Mtok$5.00$4.40
Coding index47.459.7
Independent measurements behind it23
Cost per solved task$0.56$0.86
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Haiku 4.5 better than GLM 5.2 for coding?

Pick GLM 5.2 for coding: it scores 59.7 on the Vibe Coding Index against 47.4 for Claude Haiku 4.5. Pick Claude Haiku 4.5 for a lower cost per solved task ($0.56 against $0.86) and work measured by MedScribe (Vals AI), where it leads.

Which is cheaper, Claude Haiku 4.5 or GLM 5.2?

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

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

GLM 5.2, with 1.05M tokens against 200K.

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

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