Skip to content

Gemma 4 31B vs GPT-4.1 Nano

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

SpecGemma 4 31BGPT-4.1 Nano
ProviderGoogleOpenAI
Input / 1M tokens$0.20$0.10
Output / 1M tokens$0.40$0.40
Context window262K1M
Parameters——
Open weightsYesNo
ReleasedApr 2026Apr 2025
LMArena (Chatbot Arena) Elo score14431285
LMArena WebDev Elo score1366—
LMArena Vision Elo score12771063
Aider Polyglot score—8.9
GPQA Diamond score—48.9
FrontierMath score—1.0
Epoch Capabilities Index score—130

FAQ

Is Gemma 4 31B or GPT-4.1 Nano cheaper?

Gemma 4 31B and GPT-4.1 Nano have comparable output pricing.

Which has the larger context window, Gemma 4 31B or GPT-4.1 Nano?

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.