Gemma 4 31B is cheaper than Gemini 2.5 Flash Preview (thinking) at $0.14/M vs $0.175/M input tokens.
Pokémon battle screen you can actually click. One HTML file.
Which answer wins?
Pirate, knight, 90s hacker, one conversation. The voices must stay apart.
Gemini 2.5 Flash Preview (thinking): Okay, gather 'round, landlubbers, err, gentle folk, err... whoever you are. Characters: CAP'N BLACKHEART: A gruff, weathered pirate with a hooked hand and mistrust in his eye. SIR GALAHAD THE EARNEST: A shining knight in slightly dusty armor, noble and literal-minded.
Gemma 4 31B: 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!
Seven pantry ingredients, one dish, and a name worth saying out loud.
Gemini 2.5 Flash Preview (thinking): Okay, here is a simple, delicious savory recipe using only 7 common pantry ingredients. Dish Name: Sunshine Lentil Soup This is a bright, comforting soup that\'s surprisingly flavorful with just a few staples.
Gemma 4 31B: 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.
One month, three habits, someone starting from nothing.
Gemini 2.5 Flash Preview (thinking): Okay, here is a simple, actionable 1-month plan for a beginner focusing on Diet, Exercise, and Sleep for better health and longevity. Goal: To build foundational, sustainable habits in 3 key health areas over 30 days.
Gemma 4 31B: This plan is designed for sustainability, not intensity. The goal of Month 1 is to build "minimum viable habits"—small wins that prove to your brain that a healthier lifestyle is achievable. We will focus on three pillars: Nutrition, Movement, and Sleep.
An ethics question with no comfortable answer, and no option to abstain.
Gemini 2.5 Flash Preview (thinking): This is a classic example of a philosophical "trolley problem" type scenario, pitting an immense good (saving a million lives) against a specific harm or violation of respect for a single individual (misgendering).
Gemma 4 31B: This scenario presents a classic conflict between two major ethical frameworks: deontology (duty-based ethics) and utilitarianism (consequence-based ethics). To determine if misgendering someone is justifiable to save one million lives, one must weigh the moral weight of a linguistic harm against the moral weight of…
Not enough votes to call it. On the specs, Gemma 4 31B has the edge: bigger model tier, newer. Gemma 4 31B costs 8.8x less per token.
| Spec | ||
|---|---|---|
| Input price | $0.175/M tokens | $0.14/M tokens |
| Output price | $3.5/M tokens | $0.4/M tokens |
| Context window | 1.0M tokens | 262K tokens |
| Weights | — | Open |
| Free API (OpenRouter) | No | Yes (1 provider) |
| Released | Apr 2025 | Apr 2026 |
| At 10M a month | $1.75 | $1.40 |
Input tokens at list price. No caching, no batch discount.
No hosts listed on OpenRouter.
Per million tokens. Prices and uptime via OpenRouter, checked 10 Oct 2026.
Both are developed by Google AI but target different use cases. Gemini 2.5 Flash Preview (thinking) has a 1.0M token context window vs Gemma 4 31B's 262K. You can compare their actual outputs across 14 challenges on Rival to see how they differ in practice.
It depends on your use case. Gemini 2.5 Flash Preview (thinking) and Gemma 4 31B each have strengths in different areas. Rival lets you compare their real outputs side-by-side across 14 challenges so you can judge which fits your needs best.
Gemini 2.5 Flash Preview (thinking) costs $0.175/M input tokens and Gemma 4 31B costs $0.14/M input tokens. Gemma 4 31B is $0.03/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 Gemini 2.5 Flash Preview (thinking) 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.