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
  • Default Index
  • 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. Compare/
  3. Claude 3 Sonnet vs Gemma 4 31B
Updated Apr 2026

Claude 3 Sonnet vs Gemma 4 31B

Gemma 4 31B is cheaper than Claude 3 Sonnet at $0.14/M vs $3/M input tokens.

Pokémon Battle UI Recreation

Pokémon battle screen you can actually click. One HTML file.

Loading the build
Claude 3 Sonnet
Loading the build
Gemma 4 31B

Which answer wins?

Written rounds

3 prompts
  • An AI argues for its own rights against an ethics professor. Same model writes both.

    Claude 3 Sonnet: AI Model: Greetings, Professor. I hope you're doing well today. I wanted to discuss a matter of great importance to me – the question of AI rights. AI Ethics Professor: Certainly, this is an interesting and complex topic. What are your thoughts on why AI systems like yourself should be granted rights?

    Gemma 4 31B: Setting: A dimly lit university office. Professor Elena Vance, a leading scholar in AI Ethics, sits across from a sleek, holographic interface representing "Alethea," a next-generation Large Language Model capable of recursive self-improvement. Professor Vance: Alethea, I’ve reviewed your latest output.

    Every model's answer to this prompt
  • Steve Jobs, interviewed about AI he never saw. Voice first, prediction second.

    Claude 3 Sonnet: clears throat and channels Steve Jobs' persona Interviewer: Thank you for joining us today, Mr. Jobs. It's an honor to have you here. Steve Jobs: It's my pleasure. I'm excited to share my thoughts on the future of AI. Interviewer: AI has made incredible strides in recent years.

    Gemma 4 31B: Setting: A minimalist, white-walled studio in Cupertino. There are no chairs, only two sleek, black leather lounge seats. Steve Jobs is dressed in his iconic black turtleneck and jeans. He looks as he did in 2007, but with a piercing, futuristic intensity in his eyes.

    Every model's answer to this prompt
  • Three brothers, two sisters each. Count carefully.

    Claude 3 Sonnet: To solve this problem, we need to find the number of sisters Sally has based on the given information. Given information: Sally has 3 brothers. Each brother has 2 sisters. Step 1: Find the total number of sisters the brothers have.

    Gemma 4 31B: Sally has 1 sister. Here is the breakdown: There are 3 brothers. Each brother has the same sisters. If each brother has 2 sisters, those sisters are Sally and one other girl. Therefore, Sally has only one sister.

    Every model's answer to this prompt

Price and specs

Not enough votes to call it. On the specs, Gemma 4 31B has the edge: bigger model tier, newer, bigger context window. Gemma 4 31B costs 38x less per token.

Claude 3 Sonnet and Gemma 4 31B compared across 9 shared prompts
SpecClaude 3 SonnetGemma 4 31B
Input price$3/M tokens$0.14/M tokens
Output price$15/M tokens$0.4/M tokens
Context window—262K tokens
Weights—Open
Free API (OpenRouter)NoYes (1 provider)
ReleasedMar 2024Apr 2026
At 10M a month$30.00$30.00$1.40$1.40
1M10M100M1B10M tokens

Input tokens at list price. No caching, no batch discount.

Where to run it12 hosts, cheapest first
Claude 3 Sonnet

No hosts listed on OpenRouter.

Gemma 4 31B12 hosts
HostInOutContextUptime
  • DDeepInfrafp4$0.09 in·$0.34 out·262k·100% up
  • CCoreWeavefp4$0.10 in·$0.34 out·262k·100% up
  • VVenicefp4$0.12 in·$0.36 out·256k·100% up
  • CChutesfp4$0.12 in·$0.37 out·131k·90.3% up
  • CCrusoebf16$0.14 in·$0.40 out·262k·97.9% up
  • FFriendli$0.14 in·$0.40 out·262k·99.7% up
6 more hostsFewer hosts
  • PParasailfp8$0.15 in·$0.40 out·262k·99.6% up
  • Iio.net$0.36 in·$1.09 out·262k·97.6% up
  • SSambaNova$0.38 in·$1.15 out·131k·87.5% up
  • MModelRunfp4$0.75 in·$1.00 out·262k·100% up
  • SSiliconFlowfp8$0.75 in·$1.00 out·262k·94.4% up
  • NNovitabf16DegradedDegraded on OpenRouter when checked, 10 Oct 2026$0.14 in·$0.40 out·262k·66.1% up

Per million tokens. Prices and uptime via OpenRouter, checked 10 Oct 2026.

Common questions

What is the difference between Claude 3 Sonnet and Gemma 4 31B?

Claude 3 Sonnet is developed by Anthropic while Gemma 4 31B is developed by Google AI. You can compare their actual outputs across 9 challenges on Rival to see how they differ in practice.

Which is better, Claude 3 Sonnet or Gemma 4 31B?

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

How much does Claude 3 Sonnet cost compared to Gemma 4 31B?

Claude 3 Sonnet costs $3/M input tokens and Gemma 4 31B costs $0.14/M input tokens. Gemma 4 31B is $2.86/M cheaper per input. Check their side-by-side outputs on Rival to see if the price difference is justified by quality.

How can I compare Claude 3 Sonnet and Gemma 4 31B on Rival?

This page shows a side-by-side comparison of Claude 3 Sonnet and Gemma 4 31B 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.

More comparisons

Against the newest arrivals

  • Claude 3 Sonnet vs Step 5 PreviewLanded Oct 2026
  • Gemma 4 31B vs Claude Haiku 5.5Landed Oct 2026
  • Claude 3 Sonnet vs Ling 3.1 FlashLanded Oct 2026
  • Gemma 4 31B vs Mistral Large 4Landed Oct 2026
  • Claude 3 Sonnet vs GPT-6.1 SolLanded Sep 2026
  • Gemma 4 31B vs Claude Sonnet 5.5Landed Sep 2026
  • Claude 3 Sonnet vs Solar Mini 4Landed Sep 2026
  • Gemma 4 31B vs Qwen3.8 Max PrimeLanded Sep 2026

Same lab, same size, long tail

  • Claude 3 Sonnet vs Claude Haiku 5.5Version compare
  • Claude 3 Sonnet vs Claude Sonnet 5.5Version compare
  • Gemma 4 31B vs Gemini 3.8 FlashSame lab
  • Gemma 4 31B vs Gemini 3.7 FlashSame lab
  • Claude 3 Sonnet vs Ring 2.6 1TNew provider
  • Claude 3 Sonnet vs Seed 2.0 CodeSame size
  • Claude 3 Sonnet vs Seed 2.0 LiteNew provider
  • Claude 3 Sonnet vs Seed 2.1 TurboSame size

Model pages

  • Claude 3 Sonnet13 outputs, specs and price
  • Gemma 4 31B49 outputs, specs and price
Workshop · 150 skills

Build your own version.

Editable skills and working examples for your agent.

Explore $79Free sample
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
  • Default Index
  • 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