Price Per TokenPrice Per Token
Google
Google
vs
Google
Google

CodeGemma 2B vs Gemma 2 27B

A detailed comparison of pricing, benchmarks, and capabilities

OpenClaw

Deploy OpenClaw in Under 1 Minute We handle hosting, scaling, and maintenance

107 out of our 480 tracked models have had a price change in March.

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

Key Takeaways

CodeGemma 2B wins:

  • Cheaper input tokens
  • Cheaper output tokens

Gemma 2 27B wins:

  • Larger context window
  • Higher intelligence benchmark
Price Advantage
CodeGemma 2B
Benchmark Advantage
Gemma 2 27B
Context Window
Gemma 2 27B
Speed
N/A

Pricing Comparison

Price Comparison

MetricCodeGemma 2BGemma 2 27BWinner
Input (per 1M tokens)$0.10$0.65 CodeGemma 2B
Output (per 1M tokens)$0.10$0.65 CodeGemma 2B
Cache Read (per 1M)$0.05N/A CodeGemma 2B
Using a 3:1 input/output ratio, CodeGemma 2B is 85% cheaper overall.

CodeGemma 2B Providers

No provider data available

Gemma 2 27B Providers

No provider data available

Benchmark Comparison

5
Benchmarks Compared
0
CodeGemma 2B Wins
0
Gemma 2 27B Wins

Benchmark Scores

BenchmarkCodeGemma 2BGemma 2 27BWinner
Intelligence Index
Overall intelligence score
-36.2-
MMLU Pro
Academic knowledge
-38.4-
GPQA
Graduate-level science
-16.7-
Aider
Real-world code editing
-36.1-
BBH
Big-Bench Hard
-49.3-
Both models show comparable benchmark performance.

Cost vs Quality

X-axis:
Y-axis:
Loading chart...
Other models

Context & Performance

Context Window

CodeGemma 2B
N/A
tokens
Gemma 2 27B
8,192
tokens

Speed Performance

Speed benchmarks not available for these models

Capabilities

Feature Comparison

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

License & Release

PropertyCodeGemma 2BGemma 2 27B
LicenseProprietaryOpen Source
AuthorGoogleGoogle
ReleasedUnknownJul 2024

CodeGemma 2B Modalities

Input
Output

Gemma 2 27B Modalities

Input
text
Output
text

Related Comparisons

Compare CodeGemma 2B with:

Compare Gemma 2 27B with:

Frequently Asked Questions

CodeGemma 2B has cheaper input pricing at $0.10/M tokens. CodeGemma 2B has cheaper output pricing at $0.10/M tokens.
CodeGemma 2B scores higher on coding benchmarks with a score of N/A, compared to Gemma 2 27B's score of N/A.
CodeGemma 2B has a unknown token context window, while Gemma 2 27B has a 8,192 token context window.
CodeGemma 2B does not support vision. Gemma 2 27B does not support vision.
Advertise with us