Skip to content

Gemma 4 31B Garnet vs GPT-4.1

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

SpecGemma 4 31B GarnetGPT-4.1
ProviderNanoGPTOpenAI
Input / 1M tokens$0.31$2.00
Output / 1M tokens$0.31$8.00
Context window262K1M
Parameters——
Open weightsNoNo
ReleasedMay 2026Apr 2025
Aider Polyglot score—52.4
GPQA Diamond score—66.9
FrontierMath score—5.5
Epoch Capabilities Index score—137
SWE-bench Verified score—39.6
SWE-bench Multimodal score—31.1
LMArena (Chatbot Arena) Elo score—1383
LMArena Vision Elo score—1211

FAQ

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

Gemma 4 31B Garnet is cheaper on output tokens ($0.31 vs $8.00 per 1M).

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

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