Google: Gemma 2 9B✓ Catalog verified
Gemma 2 9B by Google is an advanced, open-source language model that sets a new standard for efficiency and performance in its size class. Designed for a wide variety of tasks, it empowers developers and researchers to build innovative applications, while maintaining accessibility, safety, and cost-effectiveness. See the launch announcement for more details. Usage of Gemma is subject to Google's Gemma Terms of Use.
Overview
Gemma 2 9B by Google is an advanced, open-source language model that sets a new standard for efficiency and performance in its size class. Designed for a wide variety of tasks, it empowers developers and researchers to build innovative applications, while maintaining accessibility, safety, and cost-effectiveness. See the launch announcement for more details. Usage of Gemma is subject to Google's Gemma Terms of Use.
Access: available through the official Google API. Context window: 8K.
Specifications
| API identifier | google/gemma-2-9b-it |
| Provider | |
| Model type | Text LLM |
| Context window | 8K catalog |
| Input modalities | text |
| Output modalities | text |
| Released | Jun 28, 2024 |
| Tokenizer | Gemini |
| Instruction format | gemma |
| Moderated | No |
| Architecture modality | text->text |
Pricing
Live pricing components for google/gemma-2-9b-it as published in the catalog.
| Pricing component | Raw unit price | Normalized | Unit |
|---|---|---|---|
| Prompt tokens | $3e-8 | $0.03 / 1M | Per input token |
| Completion tokens | $9e-8 | $0.09 / 1M | Per output token |
| Request fee | N/A | N/A | Per request |
| Image fee | N/A | N/A | Per image unit |
| Web search fee | N/A | N/A | Per search request |
Cost calculator
Estimate monthly spend from your own token volumes.
Estimated Total Cost
$0.03Calculated from current list pricing in the ModelsAtlas catalog.Capabilities
| Capability | Status | What it means |
|---|---|---|
| Visual Understanding | Not advertised | Image and document analysis support |
| Audio Processing | Not advertised | Speech and voice aligned flows |
| Tool Calling | Not advertised | Supports tools / function calling |
| Self-Hosting | Not advertised | Deploy outside managed APIs |
Capability signals
Directional signals derived from model metadata and capability tags — not official benchmark submissions.
Quick start
Call Google: Gemma 2 9B through an OpenAI-compatible client.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="google/gemma-2-9b-it",
messages=[{"role": "user", "content": "Explain quantum physics."}]
)
print(response.choices[0].message.content)Alternatives
Closest models by context window from a different provider.
| Model | Provider | Context | Input /1M | Actions |
|---|---|---|---|---|
| Meta: Llama 3 70B Instruct | Meta | 8K | $0.51 | View → |
| Meta: Llama 3 8B Instruct | Meta | 8K | $0.03 | View → |
Sources & attribution
Pricing and metadata are maintained in the ModelsAtlas catalog.
Frequently asked questions
How much does Google: Gemma 2 9B cost?
$0.03 per 1M input tokens and $0.09 per 1M output tokens on the official Google API.
What is the context window of Google: Gemma 2 9B?
Google: Gemma 2 9B supports up to 8K tokens of context.
Does Google: Gemma 2 9B support tool / function calling?
Google: Gemma 2 9B does not advertise first-class tool/function calling. Check vendor docs for the latest capabilities.
How do I access Google: Gemma 2 9B?
Use the official Google API with the model id `google/gemma-2-9b-it`. See the Quick start section above for code examples.