Price Per TokenPrice Per Token
Google
Google
vs
Google
Google

Gemma 2 27B vs Gemma 3n 4B

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Best LLMs for OpenClaw Vote for which model works best with OpenClaw

112 out of our 301 tracked models have had a price change in February.

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

Key Takeaways

Gemma 2 27B wins:

  • Higher intelligence benchmark

Gemma 3n 4B wins:

  • Cheaper input tokens
  • Cheaper output tokens
  • Larger context window
  • Faster response time
  • Better at coding
  • Better at math
  • Supports tool calls
Price Advantage
Gemma 3n 4B
Benchmark Advantage
Gemma 3n 4B
Context Window
Gemma 3n 4B
Speed
Gemma 3n 4B

Pricing Comparison

Price Comparison

MetricGemma 2 27BGemma 3n 4BWinner
Input (per 1M tokens)$0.65$0.02 Gemma 3n 4B
Output (per 1M tokens)$0.65$0.04 Gemma 3n 4B
Using a 3:1 input/output ratio, Gemma 3n 4B is 96% cheaper overall.

Gemma 2 27B Providers

NextBit $0.65 (Cheapest)

Gemma 3n 4B Providers

Together $0.02 (Cheapest)

Benchmark Comparison

9
Benchmarks Compared
1
Gemma 2 27B Wins
2
Gemma 3n 4B Wins

Benchmark Scores

BenchmarkGemma 2 27BGemma 3n 4BWinner
Intelligence Index
Overall intelligence score
36.26.3
Coding Index
Code generation & understanding
-4.2-
Math Index
Mathematical reasoning
-14.3-
MMLU Pro
Academic knowledge
38.448.8
GPQA
Graduate-level science
16.729.6
LiveCodeBench
Competitive programming
-14.6-
Aider
Real-world code editing
36.1--
AIME
Competition math
-13.7-
BBH
Big-Bench Hard
49.3--
Gemma 3n 4B shows stronger mathematical reasoning abilities.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Gemma 2 27B
Other models

Context & Performance

Context Window

Gemma 2 27B
8,192
tokens
Max output: 2,048 tokens
Gemma 3n 4B
32,768
tokens
Gemma 3n 4B has a 75% larger context window.

Speed Performance

MetricGemma 2 27BGemma 3n 4BWinner
Tokens/secondN/A38.4 tok/s
Time to First TokenN/A0.37s

Capabilities

Feature Comparison

FeatureGemma 2 27BGemma 3n 4B
Vision (Image Input)
Tool/Function Calls
Reasoning Mode
Audio Input
Audio Output
PDF Input
Prompt Caching
Web Search

License & Release

PropertyGemma 2 27BGemma 3n 4B
LicenseOpen SourceOpen Source
AuthorGoogleGoogle
ReleasedJul 2024May 2025

Gemma 2 27B Modalities

Input
text
Output
text

Gemma 3n 4B Modalities

Input
text
Output
text

Related Comparisons

Compare Gemma 2 27B with:

Compare Gemma 3n 4B with:

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 3n 4B scores higher on coding benchmarks with a score of 4.2, compared to Gemma 2 27B's score of N/A.
Gemma 2 27B has a 8,192 token context window, while Gemma 3n 4B has a 32,768 token context window.
Gemma 2 27B does not support vision. Gemma 3n 4B does not support vision.