Price Per TokenPrice Per Token
Google
Google
vs
Google
Google

Gemma 3n 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.

Join the Price Per Token Community

Key Takeaways

Gemma 3n 4B wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Faster response time
  • Better at math

Gemma 4 31B Instruct wins:

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

Pricing Comparison

Benchmark Comparison

Context & Performance

Capabilities

Feature Comparison

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

Gemma 3n 4B Modalities

Input
text
Output
text

Gemma 4 31B Instruct Modalities

Input
imagetextvideo
Output
text

Frequently Asked Questions

Gemma 3n 4B has cheaper input pricing at $0.02/M tokens. Gemma 3n 4B has cheaper output pricing at $0.04/M tokens.
Gemma 4 31B Instruct scores higher on coding benchmarks with a score of 38.7, compared to Gemma 3n 4B's score of 4.2.
Gemma 3n 4B has a 32,768 token context window, while Gemma 4 31B Instruct has a 262,144 token context window.
Gemma 3n 4B does not support vision. Gemma 4 31B Instruct supports vision.