Gemma 4 31B is cheaper than OpenAI Codex Mini at $0.14/M vs $1.5/M input tokens.
Pokémon battle screen you can actually click. One HTML file.
Which answer wins?
Not enough votes to call it. On the specs, Gemma 4 31B has the edge: bigger model tier, newer. Gemma 4 31B costs 15x less per token.
| Spec | ||
|---|---|---|
| Input price | $1.5/M tokens | $0.14/M tokens |
| Output price | $6/M tokens | $0.4/M tokens |
| Context window | 200K tokens | 262K tokens |
| Weights | — | Open |
| Free API (OpenRouter) | No | Yes (1 provider) |
| Released | May 2025 | Apr 2026 |
| At 10M a month | $15.00 | $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 6 Oct 2026.
OpenAI Codex Mini is developed by OpenAI while Gemma 4 31B is developed by Google AI. OpenAI Codex Mini has a 200K token context window vs Gemma 4 31B's 262K. You can compare their actual outputs across 7 challenges on Rival to see how they differ in practice.
It depends on your use case. OpenAI Codex Mini and Gemma 4 31B each have strengths in different areas. Rival lets you compare their real outputs side-by-side across 7 challenges so you can judge which fits your needs best.
OpenAI Codex Mini costs $1.5/M input tokens and Gemma 4 31B costs $0.14/M input tokens. Gemma 4 31B is $1.36/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 OpenAI Codex Mini 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.