Google
Google
vs
Google
Google

Gemma 3 4B vs Gemma 4 31B Instruct

A detailed comparison of pricing, benchmarks, and capabilities

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

Key Takeaways

Gemma 3 4B wins:

  • Cheaper input tokens
  • Cheaper output tokens

Gemma 4 31B Instruct wins:

  • Larger context window
Price Advantage
Gemma 3 4B
Benchmark Advantage
Gemma 3 4B
Context Window
Gemma 4 31B Instruct
Speed
N/A

Pricing Comparison

Context & Performance

Capabilities

Feature Comparison

FeatureGemma 3 4BGemma 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 4BGemma 4 31B Instruct
LicenseOpen SourceProprietary
AuthorGoogleGoogle
ReleasedMar 2025Apr 2026

Gemma 3 4B Modalities

Input
textimage
Output
text

Gemma 4 31B Instruct Modalities

Input
imagetextvideo
Output
text

Frequently Asked Questions

Gemma 3 4B has cheaper input pricing at $0.04/M tokens. Gemma 3 4B has cheaper output pricing at $0.05/M tokens.
Gemma 3 4B has a 131,072 token context window, while Gemma 4 31B Instruct has a 262,144 token context window.
Gemma 3 4B supports vision. Gemma 4 31B Instruct supports vision.