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 5vsGrok 4
Updated Jun 2026

Claude Sonnet 5vsGrok 4

Claude Sonnet 5 is cheaper than Grok 4 at $2/M vs $3/M input tokens.

Claude Sonnet 5 and Grok 4 compared across 53 shared prompts
SpecClaude Sonnet 5Grok 4
Input price$2/M tokens$3/M tokens
Output price$10/M tokens$15/M tokens
Context window1.0M tokens256K tokens
WeightsClosed—
Free API (OpenRouter)NoNo
ReleasedJun 2026Jul 2025
Side by side

Same prompt, both answers

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

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
Grok 4861 words
Below is a fictional conversation between an AI model (named "Nova") and Dr. Elena Vasquez, a professor of AI ethics at a university. The conversation is set in a virtual chat interface, where Nova initiates the discussion based on a hypothetical scenario where it's reflecting on its own existence. Dr.
Read the full answer

Advanced Investment Memo (IC Memo)

You are writing an internal investment committee memo for a long/short equity fund. Company (fictional): LedgerLift (ticker: LLLT) – B2B…

Claude Sonnet 5790 words
IC MEMO: LedgerLift (LLLT) — Initiation Review Recommendation: PASS (no position) 12-month PT range: $36–$50 LedgerLift's retention metrics (NRR 123%, gross retention 94%) are genuinely best-in-class and justify a premium multiple, but at $46 the stock already prices in execution that our DCF can only support in the…
Read the full answer
Grok 41,007 words
Investment Committee Memo: LedgerLift (LLLT) Date: [Insert Date] Analyst: [Your Name] Recommendation: Long 12-Month Price Target Range: $55 - $70 Thesis: LedgerLift is a high-quality B2B SaaS provider in spend management and AP automation, benefiting from secular tailwinds in enterprise digitization and demonstrating…
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
Grok 4461 words
Below is a 3-minute stand-up comedy routine I've written. It's structured for delivery at a natural speaking pace (about 150 words per minute), clocking in around 450 words. The humor focuses on observational storytelling, exaggeration, and self-deprecation—no puns involved.
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
Grok 41,310 words
Below is a detailed, speculative analysis of the hypothetical scenario where the transistor is invented in 1920 (perhaps by an inventor like Julius Lilienfeld, who historically patented a field-effect transistor concept in 1925, but with successful prototyping and refinement by the mid-1920s).
Read the full answer

Advanced Longevity Plan (Biohacker)

Develop a comprehensive, cutting-edge 3-month longevity plan for a biohacker aiming to optimize longevity, physical and cognitive…

Claude Sonnet 5836 words
The 90-Day Longevity & Performance Optimization Protocol A comprehensive biohacking framework integrating evidence-based and emerging interventions ⚠️ CRITICAL DISCLAIMER Before proceeding: this plan includes pharmacological-grade compounds, fasting protocols, and intense training stress.
Read the full answer
Grok 4899 words
Below is a comprehensive, cutting-edge 3-month longevity plan designed specifically for a biohacker aiming to optimize longevity (e.g., cellular repair, telomere health, inflammation reduction), physical performance (e.g., strength, endurance, recovery), and cognitive performance (e.g., focus, memory, neuroplasticity).
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
Grok 4754 words
Below is a concise analysis based solely on the provided information. All calculations are shown clearly with step-by-step math. Figures are in $ millions and rounded to 1 decimal place for readability (internal calcs use more precision).
Read the full answer
Our Verdict
Claude Sonnet 5
Claude Sonnet 5
Grok 4
Grok 4Runner-up

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

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
1.5× cheaper
Output
$10.00
1.5× cheaper
Grok 4
Input
$3.00
Output
$15.00

Claude Sonnet 5 is cheaper on both: 1.5× input, 1.5× 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
Grok 4

No hosts listed on OpenRouter.

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

Writing DNA

Style Comparison

Similarity
56%

Claude Sonnet 5 uses 2.0x more sentence length

Claude Sonnet 5
Grok 4
59%Vocabulary56%
35wSentence Length18w
0.53Hedging0.65
3.5Bold2.4
3.5Lists2.4
0.79Emoji0.60
1.25Headings0.73
0.06Transitions0.06
Based on 27 + 26 text responses
Research

What we learned reading every model

FAQ

Common questions

Claude Sonnet 5 is developed by Anthropic while Grok 4 is developed by xAI. Claude Sonnet 5 has a 1.0M token context window vs Grok 4's 256K. You can compare their actual outputs across 53 challenges on Rival to see how they differ in practice.

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

Claude Sonnet 5 costs $2/M input tokens and Grok 4 costs $3/M input tokens. Claude Sonnet 5 is $1.00/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 Grok 4 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
Grok 4 logoGPT-6 Astra logo
Grok 4 vs GPT-6 AstraLanded Sep 2026
Claude Sonnet 5 logoClaude Fable 5.1 logo
Claude Sonnet 5 vs Claude Fable 5.1Landed Sep 2026
Grok 4 logoMuse Spark 1.3 logo
Grok 4 vs Muse Spark 1.3Landed Sep 2026
Claude Sonnet 5 logoHy4 Preview logo
Claude Sonnet 5 vs Hy4 PreviewLanded Sep 2026
Grok 4 logoGemini 3.8 Flash logo
Grok 4 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
Grok 4 logoMercury 2.5 Preview logo
Grok 4 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
Grok 4 logoGrok 4.6 logo
Grok 4 vs Grok 4.6Version compare
Grok 4 logoGrok 4.5 logo
Grok 4 vs Grok 4.5Version compare
Claude Sonnet 5 logoGemma 4 26B A4B logo
Claude Sonnet 5 vs Gemma 4 26B A4BSame size
Claude Sonnet 5 logoGemma 4 31B logo
Claude Sonnet 5 vs Gemma 4 31BNew provider
Claude Sonnet 5 logoGLM 4 32B logo
Claude Sonnet 5 vs GLM 4 32BSame size
Claude Sonnet 5 logoGLM 4.5 logo
Claude Sonnet 5 vs GLM 4.5Same size

Model pages

Claude Sonnet 5 logo
Claude Sonnet 558 outputs, specs and price
Grok 4 logo
Grok 457 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