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 32B
Updated Jun 2026

Claude Sonnet 5vsGLM 4 32B

GLM 4 32B is cheaper than Claude Sonnet 5 at $0.1/M vs $2/M input tokens.

Claude Sonnet 5 and GLM 4 32B compared across 54 shared prompts
SpecClaude Sonnet 5GLM 4 32B
Input price$2/M tokens$0.1/M tokens
Output price$10/M tokens$0.1/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.

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 32B1,590 words
Okay, let's rewind history and place the invention of the transistor firmly in 1920 instead of 1947. This is a massive shift with cascading effects. Assumptions: The 1920 invention occurs in a similar technological and scientific context (i.e., solid-state physics is nascent but the groundwork is there, perhaps through…
Read the full answer

Simple 7-Ingredient Recipe

Create a simple recipe for a delicious dish (sweet or savory) using only 7 common pantry ingredients. Include a creative name for the dish…

Claude Sonnet 5250 words
Honey Garlic Skillet Pasta A quick, comforting dish that balances sweet and savory flavors using ingredients you probably already have on hand. Ingredients (7 total) Pasta (8 oz, any short shape like penne or rotini) Olive oil (3 tbsp) Garlic (4 cloves, minced) Honey (2 tbsp) Soy sauce (3 tbsp) Butter (2 tbsp) Black…
Read the full answer
GLM 4 32B208 words
Okay, here's a simple, delicious savory dish using just 7 common pantry ingredients! Dish Name: Cheesy Tomato Toastie Yields: 1 serving Prep Time: 5 minutes Cook Time: 5-7 minutes Ingredients: 1 Slice of Bread 1 Tablespoon Tomato Paste 1 Tablespoon Water (or more if needed) 1 Tablespoon Grated Cheese (like Cheddar…
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 32B492 words
(Steps onto stage, takes a sip of water, looks out at the audience) Alright, alright. Thanks for having me. It's nice to be here. Feels good. Honestly, sometimes I forget what it feels like to be here. Like, physically. In a room. With other humans. It's been a thing lately, you know? Just...
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 32B391 words
Year-by-Year LBO Model (FY2026–FY2030) Metric FY2026 FY2027 FY2028 FY2029 FY2030 Revenue $972m $1,040m $1,102m $1,162m $1,218m EBITDA $136m $156m $177m $192m $207m Cash Interest (Term Loan) $43m $39m $34m $30m $26m Cash Interest (Mezz) $18m $16m $14m $12m $11m Cash Taxes $15m $22m $29m $35m $41m Capex $29m $31m $33m…
Read the full answer

Michelin Star Recipe Design

Design an innovative recipe for a multi-component dish worthy of a Michelin 3-star restaurant. The recipe should feature an unusual…

Claude Sonnet 5895 words
"Tide & Timber" Smoked Eel, Charred Pine, Fermented Black Garlic, and Bitter Almond Conceptual Narrative This dish explores the unexpected harmony between deep coastal umami and resinous forest aromatics—a culinary meditation on the moment where ocean meets ancient woodland, as happens along the fjords of Scandinavia.
Read the full answer
GLM 4 32B2,224 words
Okay, here is a design for a multi-component dish, "Symbiosis: Birch & Bee," aiming for the heights of a Michelin 3-star experience. This dish plays on the delicate relationship between the birch tree and the honeybee, exploring their individual and combined essences through texture, flavor, and aroma.
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 32B672 words
Setting: A bizarre, technicolor dimension where a pirate's ship, a medieval castle, and a 90s computer lab somehow coexist. Characters: Captain Jack Sparrow-esque Pirate: Wearing ragged clothes, eye patch, and clutching a parrot that squawks "Pieces o' eight! Pieces o' eight!"
Read the full answer
Our Verdict
Claude Sonnet 5
Claude Sonnet 5
GLM 4 32B
GLM 4 32BRunner-up

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

GLM 4 32B costs 100x 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 32B
Input
$0.10
20× cheaper
Output
$0.10
100× cheaper

GLM 4 32B is cheaper on both: 20× input, 100× output.

Where to run it

4 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 32B

No hosts listed on OpenRouter.

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

Writing DNA

Style Comparison

Similarity
40%

Claude Sonnet 5 uses 79.4x more emoji

Claude Sonnet 5
GLM 4 32B
59%Vocabulary55%
35wSentence Length15w
0.53Hedging0.74
3.5Bold4.9
3.5Lists3.8
0.79Emoji0.00
1.25Headings0.35
0.06Transitions0.04
Based on 27 + 27 text responses
Research

What we learned reading every model

FAQ

Common questions

Claude Sonnet 5 is developed by Anthropic while GLM 4 32B is developed by Zhipu AI. Claude Sonnet 5 has a 1.0M token context window vs GLM 4 32B'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 32B 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 32B costs $0.1/M input tokens. GLM 4 32B is $1.90/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 32B 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 32B logoGPT-6 Astra logo
GLM 4 32B 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 32B logoMuse Spark 1.3 logo
GLM 4 32B vs Muse Spark 1.3Landed Sep 2026
Claude Sonnet 5 logoHy4 Preview logo
Claude Sonnet 5 vs Hy4 PreviewLanded Sep 2026
GLM 4 32B logoGemini 3.8 Flash logo
GLM 4 32B 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 32B logoMercury 2.5 Preview logo
GLM 4 32B 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 32B logoGLM 5.2 logo
GLM 4 32B vs GLM 5.2Same lab
GLM 4 32B logoGLM 5 logo
GLM 4 32B vs GLM 5Same lab
Claude Sonnet 5 logoClaude Sonnet 3.6 (2022-10-22) logo
Claude Sonnet 5 vs Claude Sonnet 3.6 (2022-10-22)Version compare
Claude Sonnet 5 logoClaude 3.7 Sonnet logo
Claude Sonnet 5 vs Claude 3.7 SonnetVersion compare
Claude Sonnet 5 logoClaude 3.7 Thinking Sonnet logo
Claude Sonnet 5 vs Claude 3.7 Thinking SonnetVersion compare
Claude Sonnet 5 logoClaude Sonnet 4.5 logo
Claude Sonnet 5 vs Claude Sonnet 4.5Same lab

Model pages

Claude Sonnet 5 logo
Claude Sonnet 558 outputs, specs and price
GLM 4 32B logo
GLM 4 32B58 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