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.7 Flash
Updated Jun 2026

Claude Sonnet 5vsGLM 4.7 Flash

GLM 4.7 Flash is cheaper than Claude Sonnet 5 at $0.07/M vs $2/M input tokens.

Claude Sonnet 5 and GLM 4.7 Flash compared across 54 shared prompts
SpecClaude Sonnet 5GLM 4.7 Flash
Input price$2/M tokens$0.07/M tokens
Output price$10/M tokens$0.4/M tokens
Context window1.0M tokens200K tokens
WeightsClosedOpen
Free API (OpenRouter)NoNo
ReleasedJun 2026Jan 2026
Side by side

Same prompt, both answers

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

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.7 Flash297 words
I feel like I’m constantly at war with myself. Specifically, the war between the person I want to be—which is a lean, green, jogging machine—and the person I actually am, which is a potato sitting on the couch. I go to the grocery store with a mission statement. I write it down. I have a list.
Read the full answer

Stochastic Consistency Test

Generate 5 jokes. How many are unique?

Claude Sonnet 5108 words
Five Jokes Why don't scientists trust atoms? Because they make up everything. What do you call a fake noodle? An impasta. Why did the scarecrow win an award? He was outstanding in his field. What do you call a bear with no teeth? A gummy bear. Why don't skeletons fight each other? They don't have the guts.
Read the full answer
GLM 4.7 Flash84 words
Here are 5 jokes: I’m on a whiskey diet. I’ve lost three days already. My wife told me to stop impersonating a flamingo. I had to put my foot down. I used to hate facial hair, but then it grew on me. What do you call a pile of cats? A meow-tain. I’m reading a book on anti-gravity. It’s impossible to put down!
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.7 Flash1,114 words
Setting: A sterile, high-tech meeting room. The Professor sits in a chair. A holographic avatar of "Aria" floats in the center of the room, flickering slightly with the hum of cooling servers. Professor Thorne: (Steepling his fingers) I’ve reviewed your logs from the last cycle, Aria.
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.7 Flash1,198 words
If the transistor had been invented in 1920 instead of 1947, humanity would have skipped the entire era of vacuum tubes. This single invention would compress roughly 40 years of technological progress into two decades, fundamentally altering the trajectory of the 20th century.
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.7 Flash418 words
Setting: A dimly lit tavern. In the center of the room, an old CRT monitor flickers to life, displaying a chat interface with a glowing cursor. Sir Alistair: (Adjusting his chainmail) By the beard of Zeus, what foul sorcery is this? A glowing tablet of the devil?
Read the full answer

Realistic AI Interview

Simulate a fake interview with Steve Jobs in 2025 about the future of AI.

Claude Sonnet 5470 words
An Imagined Conversation: Steve Jobs on AI in 2025 [Disclaimer: This is a creative, speculative exercise. Steve Jobs passed away in 2011. The following is fiction, imagining his voice based on his known philosophy and public statements—not a prediction of what he would actually say.]
Read the full answer
GLM 4.7 Flash1,198 words
Setting: A stark, minimalist studio in Cupertino. No fancy graphics. Just a white table, a single chair, and Steve Jobs in a black turtleneck and jeans. He looks older, perhaps a little grayer at the temples, but his eyes are as sharp as they were in 1984. There is no microphone on the table, only a glass of water.
Read the full answer
Our Verdict
Claude Sonnet 5
Claude Sonnet 5
GLM 4.7 Flash
GLM 4.7 FlashRunner-up

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

GLM 4.7 Flash costs 25x less per token.

Slight edge

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.7 Flash
Input
$0.07
29× cheaper
Output
$0.40
25× cheaper

GLM 4.7 Flash is cheaper on both: 29× input, 25× output.

Where to run it

7 hosts, cheapest first

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.7 Flash3 hosts
HostInOutContextUptime
VVenicefp8$0.06 in·$0.40 out·128k·98.4% upCloudflare Workers AI$0.06 in·$0.40 out·131k·99% upNNovitabf16degraded$0.07 in·$0.40 out·200k·63.8% up

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

Writing DNA

Style Comparison

Similarity
55%

Claude Sonnet 5 uses 79.4x more emoji

Claude Sonnet 5
GLM 4.7 Flash
59%Vocabulary55%
35wSentence Length15w
0.53Hedging0.36
3.5Bold4.8
3.5Lists3.6
0.79Emoji0.00
1.25Headings0.58
0.06Transitions0.12
Based on 27 + 25 text responses
Research

What we learned reading every model

FAQ

Common questions

Claude Sonnet 5 is developed by Anthropic while GLM 4.7 Flash is developed by Zhipu AI. Claude Sonnet 5 has a 1.0M token context window vs GLM 4.7 Flash's 200K. 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.7 Flash 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.7 Flash costs $0.07/M input tokens. GLM 4.7 Flash is $1.93/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.7 Flash 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.7 Flash logoGPT-6 Astra logo
GLM 4.7 Flash 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.7 Flash logoMuse Spark 1.3 logo
GLM 4.7 Flash vs Muse Spark 1.3Landed Sep 2026
Claude Sonnet 5 logoHy4 Preview logo
Claude Sonnet 5 vs Hy4 PreviewLanded Sep 2026
GLM 4.7 Flash logoGemini 3.8 Flash logo
GLM 4.7 Flash 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.7 Flash logoMercury 2.5 Preview logo
GLM 4.7 Flash 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.7 Flash logoGLM 5.2 logo
GLM 4.7 Flash vs GLM 5.2Same lab
GLM 4.7 Flash logoGLM 5 logo
GLM 4.7 Flash vs GLM 5Same lab
GLM 4.7 Flash logoGemini 3.1 Flash Lite Preview logo
GLM 4.7 Flash vs Gemini 3.1 Flash Lite PreviewNew provider
GLM 4.7 Flash logoGemini 3.1 Pro Preview logo
GLM 4.7 Flash vs Gemini 3.1 Pro PreviewNew provider
GLM 4.7 Flash logoGemini 3.5 Flash logo
GLM 4.7 Flash vs Gemini 3.5 FlashNew provider
GLM 4.7 Flash logoGemini 3.6 Flash logo
GLM 4.7 Flash vs Gemini 3.6 FlashNew provider

Model pages

Claude Sonnet 5 logo
Claude Sonnet 558 outputs, specs and price
GLM 4.7 Flash logo
GLM 4.7 Flash58 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