Compare
Codegemma 2b vs R1
This page is context-first: how much text each model can take in one request. Full specs adds capabilities and limits; the pricing matrix below is only about $/million tokens from hosts that list both models.
Context window · side by side
Bar length is relative to the larger of the two windows (100% = max of this pair). This is not pricing.
R1 has about 15.6× the context window of the other in this pair.
R1 has 1462% more context capacity (128K vs 8K tokens). Codegemma 2b is 81% cheaper on input.
Quick verdicts
Short takeaways — validate with your own workloads.
Long document processing
Use R1. Its 128K context fits entire documents without chunking (vs 8K).
RAG / high-volume retrieval
Use Codegemma 2b. Input tokens are 81% cheaper — critical when sending large retrieved contexts.
Full specs
Context, output, capabilities, and dates. Green highlights the favorable value where we compute a winner.
| Spec | Codegemma 2b | R1 |
|---|---|---|
| Context window | 8,192 tokens (8K) | 128,000 tokens (128K) |
| Max output tokens | 8,192 tokens (8K) | 8,192 tokens (8K) |
| Speed tier | Balanced | Deep |
| Vision | No | No |
| Function calling | No | Yes |
| Extended thinking | No | Yes |
| Prompt caching | No | No |
| Batch API | No | No |
| Release date | N/A | Jan 2025 |
Pricing matrix
Dollar rates only: hosts that list both models, per 1M tokens. For how much text fits, use the context section above — not this table.
| Provider | Codegemma 2b in | Codegemma 2b out | R1 in | R1 out |
|---|---|---|---|---|
| Aws Bedrock | — | — | $1.35/M | $5.40/M |
| Azure | — | — | $1.35/M | $5.40/M |
| Deepinfra | — | — | $0.700/M | $2.40/M |
| Deepseek | — | — | $0.550/M | $2.19/M |
| Fireworks | $0.100/M | $0.100/M | $3.00/M | $8.00/M |
| Hyperbolic | — | — | $0.400/M | $0.400/M |
| Nebius | — | — | $0.800/M | $2.40/M |
| Novita | — | — | $0.700/M | $2.50/M |
| Openrouter | — | — | $0.550/M | $2.19/M |
| Replicate | — | — | $3.75/M | $10.00/M |
| Sambanova | — | — | $5.00/M | $7.00/M |
| Snowflake | — | — | — | — |
| Together Ai | — | — | $3.00/M | $7.00/M |
Frequently asked questions
Powered by Mem0
Use a smaller model.
Get better results.
Mem0 gives your AI long-term memory so you stop re-sending context on every call. That means you can use a smaller, faster, cheaper model — and still get better answers.
Example: a multi-turn chat session
80% less to send — works with any model