GPT-5 Nano vs Gemma 4 31B IT
Gemma 4 31B IT is cheaper on output tokens, while GPT-5 Nano offers a larger context window. Choose GPT-5 Nano or Gemma 4 31B IT based on the trade-off between cost, context, and the benchmarks that matter for your use case.
| Spec | GPT-5 Nano | Gemma 4 31B IT |
|---|---|---|
| Provider | OpenAI | QVAC |
| Input / 1M tokens | $0.05 | $0.00 |
| Output / 1M tokens | $0.40 | $0.00 |
| Context window | 400K | 262K |
| Parameters | — | — |
| Open weights | No | Yes |
| Released | Aug 2025 | Apr 2026 |
| LiveBench score | 48.8 | 62.4 |
| SWE-bench Verified score | 34.8 | — |
| FrontierMath score | 8.3 | — |
| Epoch Capabilities Index score | 139 | 143 |
| GPQA Diamond score | 69.4 | 75.8 |
| LMArena (Chatbot Arena) Elo score | 1320 | — |
| LMArena Vision Elo score | 1159 | — |
FAQ
Is GPT-5 Nano or Gemma 4 31B IT cheaper?
Gemma 4 31B IT is cheaper on output tokens ($0.00 vs $0.40 per 1M).
Which has the larger context window, GPT-5 Nano or Gemma 4 31B IT?
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.