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

GPT-5 Mini vs Gemma 4 31B

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

Head to head
Blended price uses a 3:1 input:output mix
GPT-5 MiniGemma 4 31B
ProviderOpenAIGoogle
Input $/1M$0.250$0.100
Output $/1M$2.00$0.340
Blended $/1M$0.688$0.160
Context window400K262K
Max output128K262K
ReleasedAug 2025Apr 2026
LicenceProprietaryOpen weights
GPQA Diamond 75.0% 75.8%
SimpleQA Verified 21.0% 9.6%
OTIS Mock AIME 86.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-5 Mini ifโ€ฆ
  • Higher SimpleQA Verified (21.0% vs 9.6%)
  • Higher OTIS Mock AIME (86.7% vs 73.3%)
  • Larger context window (400K)
Choose Gemma 4 31B ifโ€ฆ
  • Costs less per token โ€” $0.160 vs $0.688 blended
  • Higher GPQA Diamond (75.8% vs 75.0%)
  • Open weights โ€” self-hostable
  • Newer model (released Apr 2026)
FAQ
Which is better, GPT-5 Mini or Gemma 4 31B?
Across the 3 benchmarks both models have independently-run scores for, GPT-5 Mini leads on 2 and Gemma 4 31B leads on 1. Benchmarks are one input โ€” price and context window are on this page too.
Is GPT-5 Mini cheaper than Gemma 4 31B?
Gemma 4 31B is cheaper: $0.160 versus $0.688 per million tokens blended at 3:1 input:output. Input alone: $0.250 vs $0.100. Output alone: $2.00 vs $0.340.
What context windows do GPT-5 Mini and Gemma 4 31B have?
GPT-5 Mini: 400,000 tokens. Gemma 4 31B: 262,144 tokens.
Who makes GPT-5 Mini and Gemma 4 31B?
GPT-5 Mini is made by OpenAI. Gemma 4 31B is made by Google.
Related comparisons