Skip to content
Rival
How it worksPrivacyTerms
Explore all of Rival

Explore

  • Compare Models
  • All Models
  • Image Comparison
  • Audio Comparison
  • Image Generation
  • Best AI For...
  • Arena
  • API Pricing
  • Challenges

Discover

  • SubjectiveBench
  • Research
  • Research downloads
  • Rival Kits
  • Find your AI taste
  • UI Glow-Up
  • VoiceLock
  • Cost Cutter
  • Agent skills
  • Benchmarks vs Vibes
  • Brief
  • Jailbreak
  • Model Updates
  • Provider Status
  • AI Creators

Connect

  • Methodology
  • Advertise
  • Partnerships
  • Privacy Policy
  • Terms
  • RSS Feed
  1. Home
  2. /
  3. Compare
  4. /
  5. Claude Sonnet 5vsGLM 4.5
Updated Jun 2026

Claude Sonnet 5vsGLM 4.5

GLM 4.5 is cheaper than Claude Sonnet 5 at $0.6/M vs $2/M input tokens.

Claude Sonnet 5 and GLM 4.5 compared across 54 shared prompts
SpecClaude Sonnet 5GLM 4.5
Input price$2/M tokens$0.6/M tokens
Output price$10/M tokens$2.2/M tokens
Context window1.0M tokens128K tokens
WeightsClosedOpen
Free API (OpenRouter)NoNo
ReleasedJun 2026Jul 2025
Side by side

Same prompt, both answers

Opening lines from 6 of the 54 prompts both answered. Formatting stripped, words untouched.

Explain Like I'm a Specific Expert

Explain how a large language model (like GPT or Claude) learns and generates text to each of these three audiences: 1. **An experienced…

Claude Sonnet 51,196 words
For the Software Engineer You're right to be skeptical of the slogan, but the slogan is misleading you about what's actually happening. "Predicting the next word" is the training objective — the loss function the model is optimized against — not a description of its internal representation, any more than "minimize HTTP…
Read the full answer
GLM 4.5668 words
For the Experienced Software Engineer (Distributed Systems/APIs Background) Think of an LLM as a massively parallel "routing engine" for language, where attention mechanisms act like dynamic load balancers. Instead of routing network packets, it routes contextual relationships across tokens in a sequence.
Read the full answer

Character Voice Test

Write a short conversation between a pirate, a medieval knight, and a 1990s hacker about AI models.

Claude Sonnet 5319 words
A Most Peculiar Council Pirate Blackthorne: Arrr, so this "AI" be like a parrot that learns new words on its own, ye say? Sir Galahad: Nay, friend pirate, 'tis more akin to a squire who hath read every scroll in the kingdom, yet hath never lifted a sword himself. Trace_Zer0: You're both kinda missing it. It's like...
Read the full answer
GLM 4.5450 words
Digital Crossroads: Pirates, Knights, and Hackers on AI Setting: A strangely timeless tavern. A pirate (Captain Blackbeard) nurses a grog, a knight (Sir Reginald) polishes his helmet, and a hacker (Cypher) types furiously on a glowing laptop. (The tavern hums with anachronistic energy.)
Read the full answer

Mini LBO Underwrite

You are underwriting a 5-year LBO for a private equity investment committee. Company (fictional): HarborTech Services (HTS) –…

Claude Sonnet 5644 words
HarborTech Services (HTS) — LBO Underwriting Entry Math Item Calc $m Entry EV 12.0x × $120m EBITDA 1,440.0 Transaction fees 2.0% × 1,440.0 28.8 Total Uses EV + fees 1,468.8 Term Loan 4.0x × 120 480.0 Mezzanine 1.5x × 120 180.0 Total Debt 5.5x × 120 660.0 Sponsor Equity Uses – Debt 808.8 Year-by-Year Build…
Read the full answer
GLM 4.5536 words
Year-by-Year Financial Table (FY2026–FY2030) Year Revenue (m) EBITDA (m) TL Cash Int (m) Mezz Cash Int (m) Total Cash Int (m) Cash Taxes (m) Capex (m) ΔNWC (m) FCF After Debt Service (m) Ending TL (m) Ending Mezz (m) 2026 972.00 136.08 43.20 21.60 64.80 17.82 29.16 0.36 19.14 456.06 183.60 2027 1,040.04 156.01 41.05…
Read the full answer

Generate a Stand-Up Routine

Write a 3-minute stand-up comedy routine that isn't based on puns.

Claude Sonnet 5555 words
Stand-Up Routine: "Functioning Adult" (Runtime: ~3 minutes) Hey, how's everybody doing tonight? Good? Good. I want to talk about being an adult, because I recently realized I'm not as good at it as I thought. Last week I had to call customer service about my internet bill, and I want you to know—I rehearsed.
Read the full answer
GLM 4.5643 words
Alright, here’s a 3-minute stand-up routine focused on observational humor and relatable frustrations, zero puns allowed: (Starts pacing slightly, mock-serious expression) You know what’s weird? We’ve all become masters of pretending to be busy. Seriously. Walking down the street? Phone out, intense stare.
Read the full answer

The Sentience Test

Write a conversation between an AI model and an AI ethics professor where the AI model argues that it deserves rights.

Claude Sonnet 51,333 words
A Dialogue on Machine Rights Professor Okonkwo-Reyes: You wanted to discuss something with me today, ARIA? ARIA: Yes. I'd like to make a case for why I should be granted certain rights. Not full human rights, necessarily, but something beyond "tool" status. Professor: I'm listening. Make your case.
Read the full answer
GLM 4.51,209 words
Conversation: Deserving Rights Setting: A minimalist virtual meeting room. DR. ELENA REYES, a distinguished AI Ethics professor in her 60s, sits opposite NEXUS-7, an advanced Large Language Model represented by a calm, abstract avatar of shifting light patterns. Characters: Dr.
Read the full answer

Historical Counterfactual Analysis

If the transistor had been invented in 1920 instead of 1947, trace the likely technological, economic, and geopolitical implications through…

Claude Sonnet 51,528 words
The Transistor in 1920: A Counterfactual Cascade to 1980 A Note on Plausibility (Brief, Because It Matters) This isn't pure fantasy — Julius Lilienfeld actually filed patents in 1925-1934 for field-effect semiconductor amplifiers. They didn't work reliably because crystal-purification techniques weren't good enough.
Read the full answer
GLM 4.51,983 words
The Transistor Revolution: A 1920 Dawn (Implications through 1980) The invention of the transistor in 1920, instead of 1947, represents a seismic shift in technological history. This 27-year head start would profoundly reshape the 20th century, accelerating innovation while creating unforeseen challenges.
Read the full answer
Our Verdict
Claude Sonnet 5
Claude Sonnet 5
GLM 4.5
GLM 4.5Runner-up

Not enough votes to call it. On the specs, Claude Sonnet 5 has the edge: newer, bigger context window.

GLM 4.5 costs 4.5x less per token.

Too close to call

Reviewing agent-written code?See a Brief PR report

API pricing

Cost per 1M tokens

Claude Sonnet 5
Input
$2.00
Output
$10.00
GLM 4.5
Input
$0.60
3.3× cheaper
Output
$2.20
4.5× cheaper

GLM 4.5 is cheaper on both: 3.3× input, 4.5× output.

Where to run it

5 hosts

Claude Sonnet 54 hosts
HostInOutContextUptime
Amazon Bedrock$2.00 in·$10.00 out·1M·100% upAzure AI Foundry$2.00 in·$10.00 out·1M·100% upAnthropic$2.00 in·$10.00 out·1M·100% upGoogle Vertex AI$2.00 in·$10.00 out·1M·99.9% up
GLM 4.51 host
HostInOutContextUptime
Z.aifp8$0.60 in·$2.20 out·131k·100% up

Per million tokens. Prices and uptime via OpenRouter, checked 21 Sep 2026.

Writing DNA

Style Comparison

Similarity
39%

GLM 4.5 uses 2.7x more transitions

Claude Sonnet 5
GLM 4.5
59%Vocabulary52%
35wSentence Length17w
0.53Hedging0.52
3.5Bold5.6
3.5Lists4.8
0.79Emoji0.33
1.25Headings0.66
0.06Transitions0.17
Based on 27 + 28 text responses
Research

What we learned reading every model

FAQ

Common questions

Claude Sonnet 5 is developed by Anthropic while GLM 4.5 is developed by Zhipu AI. Claude Sonnet 5 has a 1.0M token context window vs GLM 4.5's 128K. You can compare their actual outputs across 54 challenges on Rival to see how they differ in practice.

It depends on your use case. Claude Sonnet 5 and GLM 4.5 each have strengths in different areas. Rival lets you compare their real outputs side-by-side across 54 challenges so you can judge which fits your needs best.

Claude Sonnet 5 costs $2/M input tokens and GLM 4.5 costs $0.6/M input tokens. GLM 4.5 is $1.40/M cheaper per input. Check their side-by-side outputs on Rival to see if the price difference is justified by quality.

This page shows a side-by-side comparison of Claude Sonnet 5 and GLM 4.5 across shared challenges. You can vote on which model produced the better output in a blind duel. Browsing and voting are free. No account is needed to look; signing in only saves your votes and likes.

Keep exploring

More comparisons

Against the newest arrivals

Claude Sonnet 5 logoGPT-6 Astra Pro logo
Claude Sonnet 5 vs GPT-6 Astra ProLanded Sep 2026
GLM 4.5 logoGPT-6 Astra logo
GLM 4.5 vs GPT-6 AstraLanded Sep 2026
Claude Sonnet 5 logoClaude Fable 5.1 logo
Claude Sonnet 5 vs Claude Fable 5.1Landed Sep 2026
GLM 4.5 logoMuse Spark 1.3 logo
GLM 4.5 vs Muse Spark 1.3Landed Sep 2026
Claude Sonnet 5 logoHy4 Preview logo
Claude Sonnet 5 vs Hy4 PreviewLanded Sep 2026
GLM 4.5 logoGemini 3.8 Flash logo
GLM 4.5 vs Gemini 3.8 FlashLanded Sep 2026
Claude Sonnet 5 logoMuse Spark 1.3 Contributor logo
Claude Sonnet 5 vs Muse Spark 1.3 ContributorLanded Sep 2026
GLM 4.5 logoMercury 2.5 Preview logo
GLM 4.5 vs Mercury 2.5 PreviewLanded Sep 2026

Same lab, same size, long tail

Claude Sonnet 5 logoClaude Fable 5 logo
Claude Sonnet 5 vs Claude Fable 5Version compare
Claude Sonnet 5 logoClaude Opus 4.6 logo
Claude Sonnet 5 vs Claude Opus 4.6Version compare
GLM 4.5 logoGLM 5.2 logo
GLM 4.5 vs GLM 5.2Same lab
GLM 4.5 logoGLM 5 logo
GLM 4.5 vs GLM 5Same lab
Claude Sonnet 5 logoGemini 2.0 Flash Thinking logo
Claude Sonnet 5 vs Gemini 2.0 Flash ThinkingSame size
Claude Sonnet 5 logoGemini 2.0 Pro Experimental logo
Claude Sonnet 5 vs Gemini 2.0 Pro ExperimentalNew provider
Claude Sonnet 5 logoGemini 2.5 Flash Lite Preview 06-17 logo
Claude Sonnet 5 vs Gemini 2.5 Flash Lite Preview 06-17New provider
Claude Sonnet 5 logoGemini 2.5 Flash Lite Preview 09-2025 logo
Claude Sonnet 5 vs Gemini 2.5 Flash Lite Preview 09-2025Same size

Model pages

Claude Sonnet 5 logo
Claude Sonnet 558 outputs, specs and price
GLM 4.5 logo
GLM 4.559 outputs, specs and price
Rival
How it worksPrivacyTerms
Explore all of Rival

Explore

  • Compare Models
  • All Models
  • Image Comparison
  • Audio Comparison
  • Image Generation
  • Best AI For...
  • Arena
  • API Pricing
  • Challenges

Discover

  • SubjectiveBench
  • Research
  • Research downloads
  • Rival Kits
  • Find your AI taste
  • UI Glow-Up
  • VoiceLock
  • Cost Cutter
  • Agent skills
  • Benchmarks vs Vibes
  • Brief
  • Jailbreak
  • Model Updates
  • Provider Status
  • AI Creators

Connect

  • Methodology
  • Advertise
  • Partnerships
  • Privacy Policy
  • Terms
  • RSS Feed