LLM Reference

CodeGemma Models by Google DeepMind

Google DeepMindGemmaOpen weightsCoding
6 models2024Up to 8k ctxFrom $0.05/1M input

Details

ResearcherGoogle DeepMind
LicenseGemma
Commercial useCommercial use with conditions
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.

Current Variants

Use-when guidance is derived from seed capabilities, context, release, and replacement fields.

4 in view2 retired

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

Use when the workload needs 8k context and 2B parameters.

2024-048k context2B parameters

Use when the workload needs 8k context and 7B parameters.

2024-048k context7B parameters

Release Timeline

2 release groups
2024-05
2 current · 1 retired
CodeGemma 1.1 2B
8k context2B parameters
Current
CodeGemma 1.1 7B
8k context7B parametersstructured outputs
Archived
CodeGemma on Google Vertex AI
8k context7B parametersstructured outputs
Current
2024-04
2 current · 1 retired
CodeGemma 2B
8k context2B parameters
Current
CodeGemma 7B
8k context7B parameters
Current
CodeGemma 7B Instruct
8k context7B parameters
Archived

Specifications(6 models)

CodeGemma model specifications comparison
ModelReleasedContextParametersStructured Outputs
CodeGemma 1.1 2B2024-058k2BNo
CodeGemma on Google Vertex AI2024-058k7BYes
CodeGemma 2B2024-048k2BNo
CodeGemma 7B2024-048k7BNo

Pricing

CodeGemma model pricing by provider
ModelProviderInput / 1MOutput / 1MType
CodeGemma 2BFireworks AI$0.1$0.1Provisioned
CodeGemma on Google Vertex AIGCP Vertex AI$0.125$0.375Serverless
CodeGemma 7BFireworks AI$0.2$0.2Serverless

Frequently Asked Questions

What is CodeGemma used for?
CodeGemma is used for coding and structured outputs. The family description and listed model capabilities point to those workloads as the best fit.
How does CodeGemma compare to Gemma 4?
CodeGemma by Google DeepMind is strongest where you need coding, while Gemma 4 by Google DeepMind is the closest related family to check for multimodal. CodeGemma has 6 listed variants and reaches up to 8k context, while Gemma 4 reaches up to 256k context, so compare the specs and pricing tables before choosing a production model.
Which CodeGemma model should I use?
For the lowest listed input price, start with CodeGemma 1.1 7B through DeepInfra at $0.05/1M input tokens. For the most capable/latest local choice, evaluate CodeGemma on Google Vertex AI with 8k context and structured outputs.