CodeGemma Models by Google DeepMind
6 models2024Up to 8k ctxFrom $0.05/1M input
Last refreshed 2026-05-22. Next refresh: weekly.
Details
ResearcherGoogle DeepMind
LicenseGemma
Commercial useCommercial use: conditional
Models6
Released2024
Max context8k
Capabilities
Structured Outputs2 of 6 models
About
CodeGemma is a family of 6 AI models by Google DeepMind, released in 2024.
Decision facts
- Best fit
- codingstructured outputs
- Capability starting point
- CodeGemma on Google Vertex AI with 8k context and structured outputs
- Lowest tracked input
- CodeGemma 1.1 7B · $0.05/1M · DeepInfra
- Closest related family
- T5Gemma
Current Variants
Use-when guidance is based on each model's tracked capabilities, context window, release date, and replacement status.
4 in view2 retired
CodeGemma 1.1 2BCurrent
Use when the workload needs 8k context and 2B parameters.
2024-058k context2B parameters
Use when the workload needs 8k context, 7B parameters, and structured outputs.
2024-058k context7B parametersstructured outputs
CodeGemma 2BCurrent
Use when the workload needs 8k context and 2B parameters.
2024-048k context2B parameters
CodeGemma 7BCurrent
Use when the workload needs 8k context and 7B parameters.
2024-048k context7B parameters
| Model | Use when | Released | Signals | Status |
|---|---|---|---|---|
| CodeGemma 1.1 2B | Use when the workload needs 8k context and 2B parameters. | 2024-05 | 8k context2B parameters | Current |
| CodeGemma on Google Vertex AI | Use when the workload needs 8k context, 7B parameters, and structured outputs. | 2024-05 | 8k context7B parametersstructured outputs | Current |
| CodeGemma 2B | Use when the workload needs 8k context and 2B parameters. | 2024-04 | 8k context2B parameters | Current |
| CodeGemma 7B | Use when the workload needs 8k context and 7B parameters. | 2024-04 | 8k context7B parameters | Current |
Release Timeline
2 release groups2024-05
2 current · 1 retired
CodeGemma 1.1 2B
Current8k context2B parameters
CodeGemma 1.1 7B
Archived8k context7B parametersstructured outputs
CodeGemma on Google Vertex AI
Current8k context7B parametersstructured outputs
2024-04
2 current · 1 retired
CodeGemma 2B
Current8k context2B parameters
CodeGemma 7B
Current8k context7B parameters
CodeGemma 7B Instruct
Archived8k context7B parameters
Specifications(6 models)
| Model | Released | Context | Parameters | Structured Outputs |
|---|---|---|---|---|
| CodeGemma 1.1 2B | 2024-05 | 8k | 2B | No |
| CodeGemma on Google Vertex AI | 2024-05 | 8k | 7B | Yes |
| CodeGemma 2B | 2024-04 | 8k | 2B | No |
| CodeGemma 7B | 2024-04 | 8k | 7B | No |
Available From(4 providers)
Pricing
| Model | Provider | Input / 1M | Output / 1M | Type |
|---|---|---|---|---|
| CodeGemma 2B | Fireworks AI | $0.1 | $0.1 | Provisioned |
| CodeGemma on Google Vertex AI | GCP Vertex AI | $0.125 | $0.375 | Serverless |
| CodeGemma 7B | Fireworks AI | $0.2 | $0.2 | Serverless |

