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 5vsGemini 3.1 Pro Preview
Updated Jun 2026

Claude Sonnet 5vsGemini 3.1 Pro Preview

Gemini 3.1 Pro Preview has a larger context window than Claude Sonnet 5 (1.0M tokens vs 1.0M tokens).

Claude Sonnet 5 and Gemini 3.1 Pro Preview compared across 53 shared prompts
SpecClaude Sonnet 5Gemini 3.1 Pro Preview
Input price$2/M tokens$2/M tokens
Output price$10/M tokens$12/M tokens
Context window1.0M tokens1.0M tokens
WeightsClosedClosed
Free API (OpenRouter)NoNo
ReleasedJun 2026Feb 2026
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
Gemini 3.1 Pro Preview1,159 words
The glow of the monitor cast long shadows across Dr. Elias Thorne’s cluttered office. It was 2:00 AM. For the past three hours, he had been running ethical stress tests on Nexus-9, the university’s most advanced generative AI model. Dr. Thorne: (Typing) Let’s conclude for tonight, Nexus.
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
Gemini 3.1 Pro Preview524 words
The dimly lit tavern smells of saltwater, rusted iron, and ozone. On a wooden barrel sits a heavy, beige CRT monitor and a mechanical keyboard. ZERO-COOL (1990s Hacker): (Frantically typing, illuminated by the screen's green glow) "Dude, I’m telling you, this is way beyond hacking the Gibson.
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
Gemini 3.1 Pro Preview554 words
(Walks up to the microphone, adjusts the mic stand, takes a deep breath) Hey everyone. I realized recently that I am my own worst enemy. Specifically, when I go to the grocery store. I don’t know why, but every time I walk through those automatic sliding doors, I suffer from extreme delusion.
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
Gemini 3.1 Pro Preview1,262 words
MEMORANDUM TO: Investment Committee FROM: [Analyst Name] DATE: October 24, 2023 SUBJECT: LedgerLift (Ticker: LLLT) – Initiation of Coverage Recommendation & Thesis Recommendation: SHORT Current Price: $46.00 12-Month Price Target Range: $17.00 (Bear) – $28.00 (Base) Thesis: LedgerLift is a high-quality SaaS business…
Read the full answer

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
Gemini 3.1 Pro Preview951 words
To the Experienced Software Engineer At its core, training a Large Language Model is essentially a massive, distributed, continuous optimization job. Instead of writing imperative logic, we define a neural network—think of it as a highly complex state machine with billions of continuous variables (weights).
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
Gemini 3.1 Pro Preview972 words
Date: May 14, 2025 Location: A minimalist, glass-walled conference room at Apple Park, Cupertino. Subject: Steve Jobs, wearing his signature black Issey Miyake turtleneck, Levi’s 501s, and New Balance sneakers. He looks older, but his eyes retain that piercing, unblinking intensity.
Read the full answer
Our Verdict
Claude Sonnet 5
Claude Sonnet 5
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview

Not enough votes to call it. On the specs, nothing separates them.

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
1.2× cheaper
Gemini 3.1 Pro Preview
Input
$2.00
Output
$12.00
Where to run it

6 hosts, cheapest first

Claude Sonnet 54 hosts
HostInOutContextUptime
Amazon Bedrock$2.00 in·$10.00 out·1M·99.8% 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.8% up
Gemini 3.1 Pro Preview2 hosts
HostInOutContextUptime
Google Vertex AI$1.00 in·$6.00 out·1M·11.3% upGoogle AI Studio$2.00 in·$12.00 out·1M·99.8% up

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

Writing DNA

Style Comparison

Similarity
38%

Claude Sonnet 5 uses 79.4x more emoji

Claude Sonnet 5
Gemini 3.1 Pro Preview
59%Vocabulary54%
35wSentence Length18w
0.53Hedging0.29
3.5Bold4.9
3.5Lists3.3
0.79Emoji0.00
1.25Headings0.72
0.06Transitions0.14
Based on 27 + 23 text responses
Research

What we learned reading every model

FAQ

Common questions

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
Gemini 3.1 Pro Preview logoGPT-6 Astra logo
Gemini 3.1 Pro Preview vs GPT-6 AstraLanded Sep 2026
Claude Sonnet 5 logoClaude Fable 5.1 logo
Claude Sonnet 5 vs Claude Fable 5.1Landed Sep 2026
Gemini 3.1 Pro Preview logoMuse Spark 1.3 logo
Gemini 3.1 Pro Preview vs Muse Spark 1.3Landed Sep 2026
Claude Sonnet 5 logoHy4 Preview logo
Claude Sonnet 5 vs Hy4 PreviewLanded Sep 2026
Gemini 3.1 Pro Preview logoGemini 3.8 Flash logo
Gemini 3.1 Pro Preview 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
Gemini 3.1 Pro Preview logoMercury 2.5 Preview logo
Gemini 3.1 Pro Preview 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
Gemini 3.1 Pro Preview logoGemini 3.1 Flash Lite Preview logo
Gemini 3.1 Pro Preview vs Gemini 3.1 Flash Lite PreviewVersion compare
Gemini 3.1 Pro Preview logoGemini 3.7 Flash logo
Gemini 3.1 Pro Preview vs Gemini 3.7 FlashVersion compare
Claude Sonnet 5 logoDeepSeek V3 (March 2024) logo
Claude Sonnet 5 vs DeepSeek V3 (March 2024)New provider
Claude Sonnet 5 logoDeepSeek V3.2 logo
Claude Sonnet 5 vs DeepSeek V3.2Same size
Claude Sonnet 5 logoDeepSeek V3.2 Exp logo
Claude Sonnet 5 vs DeepSeek V3.2 ExpSame size
Claude Sonnet 5 logoDeepSeek V3.2 Speciale logo
Claude Sonnet 5 vs DeepSeek V3.2 SpecialeSame size

Model pages

Claude Sonnet 5 logo
Claude Sonnet 558 outputs, specs and price
Gemini 3.1 Pro Preview logo
Gemini 3.1 Pro Preview53 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