Skip to content

GPT-4.1 Nano vs Gemma 4 31B IT

Gemma 4 31B IT is cheaper on output tokens, while GPT-4.1 Nano offers a larger context window. Choose GPT-4.1 Nano or Gemma 4 31B IT based on the trade-off between cost, context, and the benchmarks that matter for your use case.

SpecGPT-4.1 NanoGemma 4 31B IT
ProviderOpenAIQVAC
Input / 1M tokens$0.10$0.00
Output / 1M tokens$0.40$0.00
Context window1M262K
Parameters——
Open weightsNoYes
ReleasedApr 2025Apr 2026
Aider Polyglot score8.9—
FrontierMath score1.0—
Epoch Capabilities Index score130143
GPQA Diamond score48.975.8
LMArena (Chatbot Arena) Elo score1285—
LMArena Vision Elo score1063—
LiveBench score—62.4

FAQ

Is GPT-4.1 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-4.1 Nano or Gemma 4 31B IT?

GPT-4.1 Nano 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.