Price Per TokenPrice Per Token
Google
Google
vs
Google
Google

Gemma 3 12B vs Gemma 4 31B Instruct

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 3 12B wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Better at math

Gemma 4 31B Instruct wins:

  • Larger context window
  • Faster response time
  • Higher intelligence benchmark
  • Better at coding
  • Supports tool calls
Price Advantage
Gemma 3 12B
Benchmark Advantage
Gemma 4 31B Instruct
Context Window
Gemma 4 31B Instruct
Speed
Gemma 4 31B Instruct

Pricing Comparison

Benchmark Comparison

Context & Performance

Capabilities

Feature Comparison

FeatureGemma 3 12BGemma 4 31B Instruct
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGemma 3 12BGemma 4 31B Instruct
LicenseOpen SourceProprietary
AuthorGoogleGoogle
ReleasedMar 2025Apr 2026

Gemma 3 12B Modalities

Input
textimage
Output
text

Gemma 4 31B Instruct Modalities

Input
imagetextvideo
Output
text

Frequently Asked Questions

Gemma 3 12B has cheaper input pricing at $0.04/M tokens. Gemma 3 12B has cheaper output pricing at $0.13/M tokens.
Gemma 4 31B Instruct scores higher on coding benchmarks with a score of 38.7, compared to Gemma 3 12B's score of 6.3.
Gemma 3 12B has a 131,072 token context window, while Gemma 4 31B Instruct has a 262,144 token context window.
Gemma 3 12B supports vision. Gemma 4 31B Instruct supports vision.