Price Per TokenPrice Per Token
Google
Google
vs
OpenAI
OpenAI

Gemma 4 31B Instruct vs GPT-5.1-Codex-Mini

A detailed comparison of pricing, benchmarks, and capabilities

Get our weekly newsletter on pricing changes, new releases, and tools.

Join the Price Per Token Community

Key Takeaways

Gemma 4 31B Instruct wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Higher intelligence benchmark
  • Better at coding

GPT-5.1-Codex-Mini wins:

  • Larger context window
  • Faster response time
  • Better at math
  • Has reasoning mode
Price Advantage
Gemma 4 31B Instruct
Benchmark Advantage
Gemma 4 31B Instruct
Context Window
GPT-5.1-Codex-Mini
Speed
GPT-5.1-Codex-Mini

Pricing Comparison

Benchmark Comparison

Context & Performance

Capabilities

Feature Comparison

FeatureGemma 4 31B InstructGPT-5.1-Codex-Mini
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGemma 4 31B InstructGPT-5.1-Codex-Mini
LicenseProprietaryProprietary
AuthorGoogleOpenAI
ReleasedApr 2026Nov 2025

Gemma 4 31B Instruct Modalities

Input
imagetextvideo
Output
text

GPT-5.1-Codex-Mini Modalities

Input
imagetext
Output
text

Frequently Asked Questions

Gemma 4 31B Instruct has cheaper input pricing at $0.14/M tokens. Gemma 4 31B Instruct has cheaper output pricing at $0.40/M tokens.
Gemma 4 31B Instruct scores higher on coding benchmarks with a score of 38.7, compared to GPT-5.1-Codex-Mini's score of 36.4.
Gemma 4 31B Instruct has a 262,144 token context window, while GPT-5.1-Codex-Mini has a 400,000 token context window.
Gemma 4 31B Instruct supports vision. GPT-5.1-Codex-Mini supports vision.