Compare

Codegemma 2b vs Gemini 1.5 Flash

Pricing is only the shared seller matrix below. Best rates and catalog map are separate sections, so no chart is embedded in pricing. Open the calculator for the same workload on each side.

Google

Model

Codegemma 2b

Best $0.100 in · $0.100 out

Context window 8K

Pricing
Google

Model

Gemini 1.5 Flash

Image inputTool calling

Best $0.075 in · $0.300 out

Context window 1.0M

Pricing

Gemini 1.5 Flash is 25% cheaper on input. Codegemma 2b is 66% cheaper on output. The best choice depends on your input/output ratio.

Pricing matrix

Shared sellers only. Each row is a host that lists both models. Dollar amounts are per 1M tokens. Lowest in each pair of columns is emphasized.

ProviderCodegemma 2b inCodegemma 2b outGemini 1.5 Flash inGemini 1.5 Flash out
Fireworks AI$0.100$0.100N/AN/A
GoogleN/AN/A$0.075$0.300

Best listed rates (this pair)

Same "best row in current pricing" logic as model pages: a compact view of the lowest input and output we show for each side. This is not the seller matrix.

Catalog map · Google

Each chart uses real catalog rows that include both list input and list output ($/1M). Larger green dots are the models on this comparison page; accent dots are other active models from that provider.

Google · input vs output

Scatter chart: X = input $/M, Y = output $/M. This page's models are labeled on the green dots; hover others for detail.

ListedoutputUSD/1M

One dot per catalog row that has both list prices. Green dots are labeled with the models on this page; hover any dot for name and prices. Upper-right means higher cost on both axes ($/1M).

Specifications

Each column header is the full model name. Tint marks the favorable value where we compute a winner.

Spec
Codegemma 2b
Gemini 1.5 Flash
Context window
8,192 tokens
1,048,576 tokens
Max output tokens
8,192 tokens
8,192 tokens
Vision
No
Yes
Function calling
No
Yes
Streaming
No
Yes
Release date
N/A
May 2024

Cost calculator

Same requests, input tokens, and output tokens for both columns. Pick the provider row that matches how you buy.

Codegemma 2b
Monthly
$45
Annual
$548
Gemini 1.5 Flash
Monthly
$68
Annual
$821
Save $23/month with Codegemma 2b

When to pick which

Short takeaways: no cards, just the points. Validate with your own workloads.

  • Long-context tasks

    Use Gemini 1.5 Flash. Its 1048K context window handles large codebases and documents better than 8K.

  • High-volume text generation

    Use Codegemma 2b. Output tokens are 66% cheaper, which compounds significantly at scale.

Frequently asked questions

Gemini 1.5 Flash is cheaper on input tokens, while Codegemma 2b is cheaper on output. The best choice depends on your input/output ratio.

More comparisons

Other popular head-to-head matchups.