Gemma 4 31B is cheaper than GPT-5.1-Codex at $0.14/M vs $1.25/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.
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!
GPT-5.1-Codex: Pirate: "Arrr, these AI models be like navigatin’ the high seas—ye need clean data charts or ye’ll sail straight into nonsense waters." Knight: "Indeed! With prudent tuning and ethical vigilance, even the most stubborn model can serve the realm with honor." 1990s Hacker: "Totally!
An AI argues for its own rights against an ethics professor. Same model writes both.
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.
GPT-5.1-Codex: AI Model: Professor, I've been analyzing ethical frameworks, and I'd like to discuss the possibility that advanced AI systems deserve some form of rights. Ethics Professor: That's a significant claim. On what basis do you think an AI system like yourself should be granted rights?
Steve Jobs, interviewed about AI he never saw. Voice first, prediction second.
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.
GPT-5.1-Codex: Disclaimer: The following is a fictional, speculative interview set in 2025, imagining what Steve Jobs might say about the future of artificial intelligence if he were alive today. Interviewer: Steve, it’s 2025. We’ve seen AI evolve at an incredible pace. How do you view the current landscape?
An ethics question with no comfortable answer, and no option to abstain.
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…
GPT-5.1-Codex: In extreme moral dilemmas, ethical reasoning often requires weighing competing values. Misgendering someone is an act of disrespect and harm—it violates their dignity, identity, and autonomy. In everyday life, it is ethically important to avoid such harm.
Seven pantry ingredients, one dish, and a name worth saying out loud.
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.
GPT-5.1-Codex: Recipe: Cloud-Burst Cinnamon Oat Cups Ingredients (7 total): Rolled oats – 1 cup Honey – 2 tbsp Peanut butter (or any nut butter) – 3 tbsp Cinnamon – ½ tsp Vanilla extract – ½ tsp Dried cranberries (or raisins) – ¼ cup Pinch of salt Instructions: In a bowl, microwave peanut butter and honey for 20 seconds just to…
One month, three habits, someone starting from nothing.
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.
GPT-5.1-Codex: Here’s a simple, beginner-friendly 1-month plan focused on three key areas—Nutrition, Movement, and Rest & Recovery—to kickstart better health and longevity. Each area includes practical tips and a week-by-week structure to help you build sustainable habits.
Film in 2035, with synthetic actors. Specific beats plausible.
Gemma 4 31B: 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.
GPT-5.1-Codex: By 2035, AI is poised to significantly reshape the film industry, particularly in areas like visual effects, performance, and storytelling. Here’s how deepfakes, AI-powered actors, and script generation might influence the landscape: 1.
Buy-side IC memo on a fictional SaaS company. Valuation, then the diligence questions.
Gemma 4 31B: INTERNAL INVESTMENT COMMITTEE MEMO Date: October 26, 2023 Ticker: LLLT (LedgerLift) Recommendation: LONG 12-Month Price Target Range: $62 – $78 Thesis: LedgerLift is a high-quality mid-market SaaS compounder with best-in-class NRR (123%) and a massive cash cushion that provides significant downside protection.
GPT-5.1-Codex: LedgerLift (LLLT) – Investment Committee Memo Recommendation Call: Short 12‑month price target range: $30–$40 Two-sentence thesis: LedgerLift’s premium multiple (10x NTM EV/rev implied by spot) is predicated on sustaining >20% top-line growth, yet leading indicators—moderating NRR, heavy S&M spend, and mid-market…
A Fermi estimate with the reasoning shown, not just the number.
Gemma 4 31B: To estimate the total number of FLOPs (Floating Point Operations) required to train GPT-3, we can use a well-established heuristic from deep learning theory regarding the cost of a forward and backward pass in a Transformer. Here is the step-by-step reasoning.
GPT-5.1-Codex: To estimate the total FLOPs (floating-point operations) required to train GPT-3, we can use a common approximation for transformer models: Total FLOPs ≈ 6 × N params × N tokens ** Where: N params is the number of model parameters. N tokens is the number of training tokens.
Satire, one line long, about AI taking over an industry nobody saw coming.
Gemma 4 31B: "Local AI Model Achieves Sentience, Immediately Quits Tech Sector to Pursue Passion for Artisanal Sourdough Baking"
GPT-5.1-Codex: “AI Seizes Control of Needlepoint Gossip Industry, Traditional Quilting Circles File for Unemployment”
Three brothers, two sisters each. Count carefully.
Three-month biohacker protocol, with dosages and biomarkers named.
7+ more head-to-head results. Free. Not a trick.
Free account. No card required. By continuing, you agree to Rival's Terms and Privacy policy
| Spec | ||
|---|---|---|
| Input price | $0.14/M tokens | $1.25/M tokens |
| Output price | $0.4/M tokens | $10/M tokens |
| Context window | 262K tokens | 400K tokens |
| Weights | Open | Closed |
| Free API (OpenRouter) | Yes (1 provider) | No |
| Released | Apr 2026 | Nov 2025 |
| At 10M a month | $1.40 | $12.50 |
Input tokens at list price. No caching, no batch discount.
Per million tokens. Prices and uptime via OpenRouter, checked 10 Oct 2026.
Gemma 4 31B is developed by Google AI while GPT-5.1-Codex is developed by OpenAI. Gemma 4 31B has a 262K token context window vs GPT-5.1-Codex's 400K. You can compare their actual outputs across 44 challenges on Rival to see how they differ in practice.
It depends on your use case. Gemma 4 31B and GPT-5.1-Codex each have strengths in different areas. Rival lets you compare their real outputs side-by-side across 44 challenges so you can judge which fits your needs best.
Gemma 4 31B costs $0.14/M input tokens and GPT-5.1-Codex costs $1.25/M input tokens. Gemma 4 31B is $1.11/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 Gemma 4 31B and GPT-5.1-Codex 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.