token.app โ€บ Compare โ€บ Gemma 4 31B vs Claude Opus 5

Gemma 4 31B vs Claude Opus 5

Claude Opus 5 leads on 3 of 3 shared benchmarks. Gemma 4 31B is 62ร— cheaper per token on a blended 3:1 basis. Claude Opus 5 accepts the larger context window (1M).

Head to head
Blended price uses a 3:1 input:output mix
Gemma 4 31BClaude Opus 5
ProviderGoogleAnthropic
Input $/1M$0.100$5.00
Output $/1M$0.340$25.00
Blended $/1M$0.160$10.00
Context window262K1M
Max output262K128K
ReleasedApr 2026Jul 2026
LicenceOpen weightsProprietary
GPQA Diamond 75.8% 93.9%
SimpleQA Verified 9.6% 56.7%
OTIS Mock AIME 73.3% 98.9%
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 Gemma 4 31B ifโ€ฆ
  • Costs less per token โ€” $0.160 vs $10.00 blended
  • Open weights โ€” self-hostable
Choose Claude Opus 5 ifโ€ฆ
  • Higher GPQA Diamond (93.9% vs 75.8%)
  • Higher SimpleQA Verified (56.7% vs 9.6%)
  • Higher OTIS Mock AIME (98.9% vs 73.3%)
  • Larger context window (1M)
  • Newer model (released Jul 2026)
FAQ
Which is better, Gemma 4 31B or Claude Opus 5?
Across the 3 benchmarks both models have independently-run scores for, Gemma 4 31B leads on 0 and Claude Opus 5 leads on 3. Benchmarks are one input โ€” price and context window are on this page too.
Is Gemma 4 31B cheaper than Claude Opus 5?
Gemma 4 31B is cheaper: $0.160 versus $10.00 per million tokens blended at 3:1 input:output. Input alone: $0.100 vs $5.00. Output alone: $0.340 vs $25.00.
What context windows do Gemma 4 31B and Claude Opus 5 have?
Gemma 4 31B: 262,144 tokens. Claude Opus 5: 1,000,000 tokens.
Who makes Gemma 4 31B and Claude Opus 5?
Gemma 4 31B is made by Google. Claude Opus 5 is made by Anthropic.
Related comparisons