Gemma 4 31B Garnet vs GPT-4.1 Mini
Gemma 4 31B Garnet is cheaper on output tokens, while GPT-4.1 Mini offers a larger context window. Choose Gemma 4 31B Garnet or GPT-4.1 Mini based on the trade-off between cost, context, and the benchmarks that matter for your use case.
| Spec | Gemma 4 31B Garnet | GPT-4.1 Mini |
|---|---|---|
| Provider | NanoGPT | OpenAI |
| Input / 1M tokens | $0.31 | $0.40 |
| Output / 1M tokens | $0.31 | $1.60 |
| Context window | 262K | 1M |
| Parameters | — | — |
| Open weights | No | No |
| Released | May 2026 | Apr 2025 |
| Aider Polyglot score | — | 32.4 |
| GPQA Diamond score | — | 65.8 |
| LMArena (Chatbot Arena) Elo score | — | 1341 |
| FrontierMath score | — | 4.5 |
| SWE-bench Verified score | — | 23.9 |
| LMArena Vision Elo score | — | 1181 |
| Epoch Capabilities Index score | — | 135 |
FAQ
Is Gemma 4 31B Garnet or GPT-4.1 Mini cheaper?
Gemma 4 31B Garnet is cheaper on output tokens ($0.31 vs $1.60 per 1M).
Which has the larger context window, Gemma 4 31B Garnet or GPT-4.1 Mini?
GPT-4.1 Mini has the larger context window (1M tokens).
Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.