Price Per TokenPrice Per Token
Google
Google
vs
Google
Google

Gemma 2 27B vs Gemma 3 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 3 4B wins:

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

Pricing Comparison

Price Comparison

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

Gemma 2 27B Providers

NextBit $0.65 (Cheapest)

Gemma 3 4B Providers

Chutes $0.02 (Cheapest)
DeepInfra $0.04

Benchmark Comparison

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

Benchmark Scores

BenchmarkGemma 2 27BGemma 3 4BWinner
Intelligence Index
Overall intelligence score
36.26.3
Coding Index
Code generation & understanding
-2.9-
Math Index
Mathematical reasoning
-12.7-
MMLU Pro
Academic knowledge
38.441.7
GPQA
Graduate-level science
16.729.1
LiveCodeBench
Competitive programming
-11.2-
Aider
Real-world code editing
36.1--
AIME
Competition math
-6.3-
BBH
Big-Bench Hard
49.3--
Gemma 3 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 3 4B
96,000
tokens
Gemma 3 4B has a 91% larger context window.

Speed Performance

MetricGemma 2 27BGemma 3 4BWinner
Tokens/secondN/A34.9 tok/s
Time to First TokenN/A0.96s

Capabilities

Feature Comparison

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

License & Release

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

Gemma 2 27B Modalities

Input
text
Output
text

Gemma 3 4B Modalities

Input
textimage
Output
text

Related Comparisons

Compare Gemma 2 27B with:

Compare Gemma 3 4B with:

Frequently Asked Questions

Gemma 3 4B has cheaper input pricing at $0.02/M tokens. Gemma 3 4B has cheaper output pricing at $0.07/M tokens.
Gemma 3 4B scores higher on coding benchmarks with a score of 2.9, compared to Gemma 2 27B's score of N/A.
Gemma 2 27B has a 8,192 token context window, while Gemma 3 4B has a 96,000 token context window.
Gemma 2 27B does not support vision. Gemma 3 4B supports vision.