Skip to content

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.

SpecGPT-5 NanoGemma 4 31B IT
ProviderOpenAIQVAC
Input / 1M tokens$0.05$0.00
Output / 1M tokens$0.40$0.00
Context window400K262K
Parameters——
Open weightsNoYes
ReleasedAug 2025Apr 2026
LiveBench score48.862.4
SWE-bench Verified score34.8—
GPQA Diamond score69.475.8
LMArena (Chatbot Arena) Elo score1320—
LMArena Vision Elo score1159—
FrontierMath score8.3—
Epoch Capabilities Index score139143

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.