Price Per TokenPrice Per Token
Google
Google
vs
Google
Google

CodeGemma 7B 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 7B wins:

  • Cheaper input tokens
  • Cheaper output tokens

Gemma 2 27B wins:

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

Pricing Comparison

Price Comparison

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

CodeGemma 7B Providers

No provider data available

Gemma 2 27B Providers

No provider data available

Benchmark Comparison

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

Benchmark Scores

BenchmarkCodeGemma 7BGemma 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 7B
N/A
tokens
Gemma 2 27B
8,192
tokens

Speed Performance

Speed benchmarks not available for these models

Capabilities

Feature Comparison

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

License & Release

PropertyCodeGemma 7BGemma 2 27B
LicenseProprietaryOpen Source
AuthorGoogleGoogle
ReleasedUnknownJul 2024

CodeGemma 7B Modalities

Input
Output

Gemma 2 27B Modalities

Input
text
Output
text

Related Comparisons

Compare CodeGemma 7B with:

Compare Gemma 2 27B with:

Frequently Asked Questions

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