Gemma 2 9B API Pricing
As of October 10, 2026, Gemma 2 9B costs $0.20 per 1M input tokens and $0.20 per 1M output tokens on Vercel AI Gateway. It has an 8,192-token context window and returns up to 8,192 tokens per response.
- Input
- $0.20 / 1M tokens
- Output
- $0.20 / 1M tokens
- Context window
- 8,192 tokens
- Max output
- 8,192 tokens
- Providers
- 1
- Added to LiteLLM
- July 2025
Gemma 2 9B pricing by provider
1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Context |
|---|---|---|---|---|
| Vercel AI Gateway | vercel_ai_gateway/google/gemma-2-9b | $0.20 | $0.20 | 8K |
What Gemma 2 9B costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| Vercel AI Gateway | $0.50 |
Gemma 2 9B features
- Function calling
- Image input
Use Gemma 2 9B with LiteLLM
Call Gemma 2 9B through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.
from litellm import completion
response = completion(
model="vercel_ai_gateway/google/gemma-2-9b",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: gemma-2-9b
litellm_params:
model: vercel_ai_gateway/google/gemma-2-9b
# credentials: see the provider's LiteLLM docs pagecurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-1234" \
-d '{
"model": "gemma-2-9b",
"messages": [{"role": "user", "content": "Hello!"}]
}'Gemma 2 9B FAQ
How much does Gemma 2 9B cost?
Gemma 2 9B costs $0.20 per 1M input tokens and $0.20 per 1M output tokens on Vercel AI Gateway.
What is the context window of Gemma 2 9B?
Gemma 2 9B has an 8,192-token context window and returns up to 8,192 tokens per response.
Which providers offer Gemma 2 9B?
Gemma 2 9B is available from Vercel AI Gateway through LiteLLM, using the model name vercel_ai_gateway/google/gemma-2-9b.
How do I call Gemma 2 9B with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="vercel_ai_gateway/google/gemma-2-9b", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.
What features does Gemma 2 9B support?
Gemma 2 9B supports function calling and image input.
When did LiteLLM add Gemma 2 9B?
Gemma 2 9B was added to LiteLLM's model price file in July 2025.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request.
LiteLLM docs: Vercel AI Gateway.
Provider pages: Vercel AI Gateway.
