LiteLLMLiteLLM/ MODELS

Gemma 2 9B API Pricing

By Google · 1 providervercel_ai_gateway/google/gemma-2-9bCompare
Input / output
$0.20 / $0.20 per 1M tokens
Context
8K tokens
Max output
8K tokens

As of November 24, 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.

Prices updated Checked

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.

Gemma 2 9B prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputContext
Vercel AI Gatewayvercel_ai_gateway/google/gemma-2-9b$0.20$0.208K

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 cost calculator

At Vercel AI Gateway's price ($0.20 input, $0.20 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $3.00 a day, about $90.00 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.0003
Per day
$3.00
Per month (30 days)
$90.00

Gemma 2 9B features

Input: text, image. Output: text.

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.

Python SDK
from litellm import completion

response = completion(
    model="vercel_ai_gateway/google/gemma-2-9b",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: gemma-2-9b
    litellm_params:
      model: vercel_ai_gateway/google/gemma-2-9b
      # credentials: see the provider's LiteLLM docs page
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -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. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change.

LiteLLM docs: Vercel AI Gateway.

Provider pages: Vercel AI Gateway.