Gemma 2
About
Gemma 2 is a series of cutting-edge, lightweight open large language models developed by Google. Leveraging the same foundational research as the Gemini models, Gemma 2 offers models with 2 billion, 9 billion, and 27 billion parameters. These decoder-only text-to-text models, primarily trained on English data, demonstrate strong capabilities in multilingual tasks. They come in both pre-trained and instruction-tuned versions, making them versatile for diverse text generation applications such as question answering, summarization, and reasoning. Smaller models are optimized for deployment on resource-limited devices, while the larger variants deliver competitive performance with efficiency innovations like alternating local and global attention, logit soft-capping, and grouped-query attention12. Additionally, Gemma 2 includes tools for facilitating responsible AI development3.
Specifications(8 models)
| Model | Released | Context | Parameters | Structured Outputs |
|---|---|---|---|---|
| Gemma 2 9B SahabatAI Instruct | 2025-01 | 8K | 9B | No |
| Gemma 2 2B | 2024-07 | — | 2B | No |
| Gemma 2 2B Instruct | 2024-07 | — | 2B | No |
| ShieldGemma 9B | 2024-07 | 8K | 9B | No |
| Gemma 2 27B Instruct | 2024-06 | 8K | 27B | Yes |
| Gemma 2 9B Instruct | 2024-06 | 8K | 9B | Yes |
| Gemma 2 27B | 2024-06 | 8K | 27B | Yes |
| Gemma 2 9B | 2024-06 | 8K | 9B | Yes |
Available From(8 providers)
Pricing
| Model | Provider | Input / 1M | Output / 1M | Type |
|---|---|---|---|---|
| Gemma 2 9B Instruct | OpenRouter | $0.03 | $0.09 | Serverless |
| Gemma 2 9B | GCP Vertex AI | $0.06 | $0.18 | Serverless |
| Gemma 2 9B | Bitdeer AI | $0.08 | $0.24 | Serverless |
| Gemma 2 27B | Bitdeer AI | $0.08 | $0.24 | Serverless |
| Gemma 2 9B Instruct | Chutes AI | $0.1 | $0.3 | Serverless |
| Gemma 2 9B Instruct | Replicate API | $0.1 | $0.1 | Serverless |
| Gemma 2 9B Instruct | Fireworks AI | $0.2 | $0.2 | Serverless |
| Gemma 2 9B | Fireworks AI | $0.2 | $0.2 | Serverless |
| Gemma 2 27B Instruct | Arcee AI | $0.25 | $0.75 | Serverless |
| Gemma 2 27B | GCP Vertex AI | $0.3 | $0.9 | Serverless |
| Gemma 2 27B Instruct | Replicate API | $0.4 | $0.4 | Serverless |
| Gemma 2 27B Instruct | OpenRouter | $0.65 | $0.65 | Serverless |
| Gemma 2 27B Instruct | Fireworks AI | $0.9 | $0.9 | Serverless |
Frequently Asked Questions
- What is Gemma 2?
- Gemma 2 is a series of cutting-edge, lightweight open large language models developed by Google. Leveraging the same foundational research as the Gemini models, Gemma 2 offers models with 2 billion, 9 billion, and 27 billion parameters. These decoder-only text-to-text models, primarily trained on English data, demonstrate strong capabilities in multilingual tasks. They come in both pre-trained and instruction-tuned versions, making them versatile for diverse text generation applications such as question answering, summarization, and reasoning. Smaller models are optimized for deployment on resource-limited devices, while the larger variants deliver competitive performance with efficiency innovations like alternating local and global attention, logit soft-capping, and grouped-query attention12. Additionally, Gemma 2 includes tools for facilitating responsible AI development3.
- How many models are in the Gemma 2 family?
- The Gemma 2 family contains 8 models.
- What is the latest Gemma 2 model?
- The latest model is Gemma 2 9B SahabatAI Instruct, released in 2025-01.
- How much does Gemma 2 cost?
- Gemma 2 models range from $0.03/1M to $0.9/1M input tokens depending on the model and provider.
- Is Gemma 2 open source?
- 2 of 8 Gemma 2 models are open source.
Models(8)
Gemma 2 9B SahabatAI Instruct
Gemma 2 2B
Gemma 2 2B Instruct
ShieldGemma 9B
Gemma 2 27B Instruct
Gemma 2 9B Instruct
Gemma 2 27B
Gemma 2 9B






