CodeGemma 2B API Pricing 2026
Compare pricing, benchmarks, and providers for CodeGemma 2B. Find the best value for your use case.
Overview
CodeGemma 2B. Pricing starts at $0.100 per million input tokens and $0.100 per million output tokens. The model supports a context window of up to 8K tokens. API access is available through Google.
CodeGemma 2B is priced at $0.100 per million input tokens and $0.100 per million output tokens. It has a context window of 8,192 tokens. It is available from 1 provider, with Fireworks the cheapest at $0.100 per million input tokens.
Pricing Comparison
Compare CodeGemma 2B with 10 similar models by price.
Current Pricing (per 1M tokens)
11 models
Provider | Model | Input $/M | Output $/M | Coding | MMLU | GPQA | Context | Actions |
|---|---|---|---|---|---|---|---|---|
$0.100 | $0.100 | — | — | — | 8,192 | |||
$0.090 | $0.500 | — | — | — | 32,768 | |||
$0.090 | $0.180 | — | — | — | 262,144 | |||
$0.093 | $0.373 | — | — | — | 131,072 | |||
$0.100 | $0.625 | — | — | — | 400,000 | |||
RE | $0.100 | $0.100 | — | — | — | 16,384 | ||
RE | $0.100 | $0.200 | — | — | — | 65,536 | ||
$0.100 | $0.100 | — | — | — | 262,144 | |||
$0.100 | $0.200 | — | — | — | 262,144 | |||
$0.100 | $0.300 | — | — | — | 128,000 | |||
$0.100 | $0.600 | — | — | — | 1,050,000 |
* Some models use tiered pricing based on prompt length. Displayed prices are for prompts ≤ 200k tokens.
Compare Providers
CodeGemma 2B is available from multiple providers with different pricing and availability.
Provider Pricing
1 models
Provider | Input $/M | Output $/M | Cache Read $/M | Cache Write $/M | Uptime |
|---|---|---|---|---|---|
Fireworks Best Price | $0.100 | $0.100 | $0.050 | - | - |
Community Rankings
How does CodeGemma 2B perform? Vote based on your experience.
Cost vs. Quality
Compare CodeGemma 2B's benchmark performance against all models.
Try CodeGemma 2B
Use our Calculator
Estimate your costs based on expected token usage.
Open Cost CalculatorTry in Playground
Test CodeGemma 2B directly in your browser.
Open PlaygroundCompare CodeGemma 2B
Similar Price Range
Same Provider
Popular Competitors
Frequently Asked Questions
All Google Models
See pricing for all Google models.
View all Google models →