Gemma 4 31B vs GPT-5 Nano
Both have similar output pricing, while GPT-5 Nano offers a larger context window. Choose Gemma 4 31B or GPT-5 Nano based on the trade-off between cost, context, and the benchmarks that matter for your use case.
| Spec | Gemma 4 31B | GPT-5 Nano |
|---|---|---|
| Provider | OpenAI | |
| Input / 1M tokens | $0.20 | $0.05 |
| Output / 1M tokens | $0.40 | $0.40 |
| Context window | 262K | 400K |
| Parameters | — | — |
| Open weights | Yes | No |
| Released | Apr 2026 | Aug 2025 |
| LMArena (Chatbot Arena) Elo score | 1443 | 1320 |
| LMArena WebDev Elo score | 1366 | — |
| LMArena Vision Elo score | 1277 | 1159 |
| LiveBench score | — | 48.8 |
| SWE-bench Verified score | — | 34.8 |
| GPQA Diamond score | — | 69.4 |
| FrontierMath score | — | 8.3 |
| Epoch Capabilities Index score | — | 139 |
FAQ
Is Gemma 4 31B or GPT-5 Nano cheaper?
Gemma 4 31B and GPT-5 Nano have comparable output pricing.
Which has the larger context window, Gemma 4 31B or GPT-5 Nano?
GPT-5 Nano has the larger context window (400K tokens).
Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.