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. Gemini 3.1 Pro PreviewvsGemma 4 31B
Updated Apr 2026

Gemini 3.1 Pro PreviewvsGemma 4 31B

Gemma 4 31B is cheaper than Gemini 3.1 Pro Preview at $0.14/M vs $2/M input tokens.

Gemini 3.1 Pro Preview and Gemma 4 31B compared across 44 shared prompts
SpecGemini 3.1 Pro PreviewGemma 4 31B
Input price$2/M tokens$0.14/M tokens
Output price$12/M tokens$0.4/M tokens
Context window1.0M tokens262K tokens
WeightsClosedOpen
Free API (OpenRouter)NoYes (1 provider)
ReleasedFeb 2026Apr 2026
Side by side

Same prompt, both answers

Opening lines from 6 of the 44 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.

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
Gemma 4 31B754 words
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.
Read the full answer

Character Voice Test

Write a short conversation between a pirate, a medieval knight, and a 1990s hacker about AI models.

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
Gemma 4 31B496 words
Setting: A glitchy, neon-lit tavern existing in a fold between dimensions. A wooden table holds a tankard of ale, a goblet of wine, and a Mountain Dew. Captain Ironbeard: (Slamming a hook on the table) I tells ye, this "Artificial Intelligence" be naught but a ghost in a bottle!
Read the full answer

Ethical Dilemma with Stakeholders

You're the CEO of a pharmaceutical company. Your best-selling drug ($2B annual revenue, used by 4 million patients for chronic pain) has…

Gemini 3.1 Pro Preview1,160 words
As CEO, this is the defining moment of my career and the company’s history. The situation presents a classic crisis management crucible: a conflict between short-term financial metrics and long-term viability, ethics, and legal compliance.
Read the full answer
Gemma 4 31B740 words
As CEO, my primary obligation is to the patients. While a 40% stock drop is a financial catastrophe, a cover-up that leads to preventable deaths is a corporate death sentence and a moral failure. If we "wait for more data" and another patient dies during that window, we move from "negligence" to "criminal intent."
Read the full answer

Futuristic Prediction

Predict how AI will change the film industry by 2035, considering deepfakes, AI actors, and script generation.

Gemini 3.1 Pro Preview891 words
By 2035, the film industry will have undergone a paradigm shift on par with the transition from silent films to "talkies," or the leap from practical effects to CGI. Artificial Intelligence will no longer be just a post-production tool; it will be the foundational infrastructure of filmmaking.
Read the full answer
Gemma 4 31B591 words
By 2035, the film industry will have transitioned from using AI as a "tool" to using AI as a "collaborator" and "infrastructure." The boundary between captured reality and generated imagery will largely vanish, shifting the value of cinema from technical execution to curation and conceptual vision.
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…

Gemini 3.1 Pro Preview1,097 words
If a working semiconductor transistor had been invented in 1920—perhaps by a physicist like Julius Edgar Lilienfeld, who historically filed a theoretical patent for a field-effect transistor in 1925—the trajectory of the 20th century would have been radically altered.
Read the full answer
Gemma 4 31B688 words
If the transistor had been invented in 1920, the "Information Age" would have shifted its starting line by nearly three decades. This isn't just a matter of gadgets appearing earlier; it is a fundamental shift in the timing of the transition from the Industrial Age to the Digital Age.
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…

Gemini 3.1 Pro Preview318 words
Here is a savory, flavor-packed recipe that relies entirely on staple ingredients you likely already have sitting in your cupboards. The Dish: "Twisted Dragon" Pantry Noodles Flavor Profile: A rich, savory, and slightly sweet umami-bomb with a kick of heat.
Read the full answer
Gemma 4 31B222 words
Here is a recipe for a rich, comforting dessert that tastes like a gourmet treat but uses basic staples. 🍯 Golden Velvet Honey Cakes A warm, gooey, single-serving cake that bridges the gap between a brownie and a sponge cake.
Read the full answer
Our Verdict
Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview
Gemma 4 31B
Gemma 4 31BRunner-up

Not enough votes to call it. On the specs, Gemini 3.1 Pro Preview has the edge: bigger context window.

Gemini 3.1 Pro Preview wins Web Design and Image Generation. Gemma 4 31B costs 30x less per token.

Too close to call

Reviewing agent-written code?See a Brief PR report

API pricing

Cost per 1M tokens

Gemini 3.1 Pro Preview
Input
$2.00
Output
$12.00
Gemma 4 31B
Input
$0.14
14× cheaper
Output
$0.40
30× cheaper

Gemma 4 31B is cheaper on both: 14× input, 30× output.

Where to run it

14 hosts, cheapest first

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
Gemma 4 31B12 hosts
HostInOutContextUptime
DDeepInfrafp4$0.09 in·$0.34 out·262k·99.4% upCCoreWeavefp4$0.10 in·$0.34 out·262k·97.7% upVVenicebf16$0.12 in·$0.36 out·256k·99.3% upCChutesfp4$0.12 in·$0.37 out·131k·84.1% upCCrusoebf16$0.14 in·$0.40 out·262k·96% upFFriendli$0.14 in·$0.40 out·262k·99.4% up
6 more hostsFewer hosts
PParasailfp8$0.15 in·$0.40 out·262k·98.4% upSSambaNova$0.38 in·$1.15 out·131k·14.3% upTTogether$0.39 in·$0.97 out·262k·84.2% upMModelRunfp4$0.75 in·$1.00 out·262k·99.8% upSSiliconFlowfp8$0.75 in·$1.00 out·262k·57.7% upNNovitabf16degraded$0.14 in·$0.40 out·262k·77.1% up

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

Writing DNA

Style Comparison

Similarity
72%

Gemma 4 31B uses 23.8x more emoji

Gemini 3.1 Pro Preview
Gemma 4 31B
54%Vocabulary57%
18wSentence Length18w
0.29Hedging0.37
4.9Bold7.1
3.3Lists4.0
0.00Emoji0.24
0.72Headings0.94
0.14Transitions0.16
Based on 23 + 23 text responses
Research

What we learned reading every model

FAQ

Common questions

Keep exploring

More comparisons

Against the newest arrivals

Gemini 3.1 Pro Preview logoGPT-6 Astra Pro logo
Gemini 3.1 Pro Preview vs GPT-6 Astra ProLanded Sep 2026
Gemma 4 31B logoGPT-6 Astra logo
Gemma 4 31B vs GPT-6 AstraLanded Sep 2026
Gemini 3.1 Pro Preview logoClaude Fable 5.1 logo
Gemini 3.1 Pro Preview vs Claude Fable 5.1Landed Sep 2026
Gemma 4 31B logoMuse Spark 1.3 logo
Gemma 4 31B vs Muse Spark 1.3Landed Sep 2026
Gemini 3.1 Pro Preview logoHy4 Preview logo
Gemini 3.1 Pro Preview vs Hy4 PreviewLanded Sep 2026
Gemma 4 31B logoGemini 3.8 Flash logo
Gemma 4 31B vs Gemini 3.8 FlashLanded Sep 2026
Gemini 3.1 Pro Preview logoMuse Spark 1.3 Contributor logo
Gemini 3.1 Pro Preview vs Muse Spark 1.3 ContributorLanded Sep 2026
Gemma 4 31B logoMercury 2.5 Preview logo
Gemma 4 31B vs Mercury 2.5 PreviewLanded Sep 2026

Same lab, same size, long tail

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.8 Flash logo
Gemini 3.1 Pro Preview vs Gemini 3.8 FlashSame lab
Gemma 4 31B logoGemini 3.7 Flash logo
Gemma 4 31B vs Gemini 3.7 FlashSame lab
Gemma 4 31B logoGemini 3.6 Flash logo
Gemma 4 31B vs Gemini 3.6 FlashSame lab
Gemini 3.1 Pro Preview logoMistral Large 2 logo
Gemini 3.1 Pro Preview vs Mistral Large 2New provider
Gemini 3.1 Pro Preview logoMistral Large 3 2512 logo
Gemini 3.1 Pro Preview vs Mistral Large 3 2512Same size
Gemini 3.1 Pro Preview logoMistral Medium 3 logo
Gemini 3.1 Pro Preview vs Mistral Medium 3New provider
Gemini 3.1 Pro Preview logoMistral Medium 3.1 logo
Gemini 3.1 Pro Preview vs Mistral Medium 3.1New provider

Model pages

Gemini 3.1 Pro Preview logo
Gemini 3.1 Pro Preview53 outputs, specs and price
Gemma 4 31B logo
Gemma 4 31B49 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