token.app โ€บ Compare โ€บ GPT-4.1 Mini vs Gemma 4 31B

GPT-4.1 Mini vs Gemma 4 31B

Gemma 4 31B leads on 2 of 2 shared benchmarks. Gemma 4 31B is 4.4ร— cheaper per token on a blended 3:1 basis. GPT-4.1 Mini accepts the larger context window (1.0M).

Head to head
Blended price uses a 3:1 input:output mix
GPT-4.1 MiniGemma 4 31B
ProviderOpenAIGoogle
Input $/1M$0.400$0.100
Output $/1M$1.60$0.340
Blended $/1M$0.700$0.160
Context window1.0M262K
Max output33K262K
ReleasedApr 2025Apr 2026
LicenceProprietaryOpen weights
GPQA Diamond 65.8% 75.8%
OTIS Mock AIME 44.7% 73.3%
Benchmark scores independently run and published by Epoch AI, 'AI Benchmarking Hub', used under CC BY 4.0. Only benchmarks with a score for BOTH models are compared.
Choose GPT-4.1 Mini ifโ€ฆ
  • Larger context window (1.0M)
Choose Gemma 4 31B ifโ€ฆ
  • Costs less per token โ€” $0.160 vs $0.700 blended
  • Higher GPQA Diamond (75.8% vs 65.8%)
  • Higher OTIS Mock AIME (73.3% vs 44.7%)
  • Open weights โ€” self-hostable
  • Newer model (released Apr 2026)
FAQ
Which is better, GPT-4.1 Mini or Gemma 4 31B?
Across the 2 benchmarks both models have independently-run scores for, GPT-4.1 Mini leads on 0 and Gemma 4 31B leads on 2. Benchmarks are one input โ€” price and context window are on this page too.
Is GPT-4.1 Mini cheaper than Gemma 4 31B?
Gemma 4 31B is cheaper: $0.160 versus $0.700 per million tokens blended at 3:1 input:output. Input alone: $0.400 vs $0.100. Output alone: $1.60 vs $0.340.
What context windows do GPT-4.1 Mini and Gemma 4 31B have?
GPT-4.1 Mini: 1,047,576 tokens. Gemma 4 31B: 262,144 tokens.
Who makes GPT-4.1 Mini and Gemma 4 31B?
GPT-4.1 Mini is made by OpenAI. Gemma 4 31B is made by Google.
Related comparisons