Gemma 4 31B is cheaper than Claude 2 at $0.14/M vs $11.02/M input tokens.
Catch the falling object. Paddle at the bottom, score at the top, one file.
Which answer wins?
One month, three habits, someone starting from nothing.
Claude 2: Here is a 1-month beginner health and longevity plan focused on diet, exercise, and sleep: Diet: Eliminate sugary drinks and limit sweets. Replace with water and fruits. Eat more veggies. Aim for 1-2 cups with each meal. Focus on dark leafy greens, broccoli, carrots. Increase fiber intake.
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.
Seven pantry ingredients, one dish, and a name worth saying out loud.
Claude 2: Here is a 7-ingredient recipe for a sweet dish I'll call "Cinnamon Apple Surprise": Cinnamon Apple Surprise Ingredients: 3 apples, cored and sliced 1⁄4 cup brown sugar 1⁄4 cup all-purpose flour 1 tsp ground cinnamon 1⁄4 tsp nutmeg 2 tbsp butter, melted 1 refrigerated pie crust Instructions: Preheat oven to 375°F.
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.
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 82x less per token.
| Spec | ||
|---|---|---|
| Input price | $11.02/M tokens | $0.14/M tokens |
| Output price | $32.68/M tokens | $0.4/M tokens |
| Context window | 100K tokens | 262K tokens |
| Weights | — | Open |
| Free API (OpenRouter) | No | Yes (1 provider) |
| Released | Jun 2023 | Apr 2026 |
| At 10M a month | $110 | $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.
Claude 2 is developed by Anthropic while Gemma 4 31B is developed by Google AI. Claude 2 has a 100K token context window vs Gemma 4 31B's 262K. You can compare their actual outputs across 4 challenges on Rival to see how they differ in practice.
It depends on your use case. Claude 2 and Gemma 4 31B each have strengths in different areas. Rival lets you compare their real outputs side-by-side across 4 challenges so you can judge which fits your needs best.
Claude 2 costs $11.02/M input tokens and Gemma 4 31B costs $0.14/M input tokens. Gemma 4 31B is $10.88/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 2 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.