Gemma 2 9B
gemma-2-9bPricing
List prices at Vercel AI Gateway, in US dollars per million tokens.
| Tier | Input / 1M | Output / 1M | |
|---|---|---|---|
| Standard | $0.20 | $0.20 |
What it costs a month
At Vercel AI Gateway list prices, 30 days.
- Chat assistant5,000 requests a day, 2K in / 0.5K out$75.00
- RAG over documents2,000 requests a day, 8K in / 0.6K out$103
- Coding agent1,000 requests a day, 40K in / 2K out$252
- Overnight batch20,000 requests a day, 4K in / 0.4K out$528
Where to run it
1 host serve Gemma 2 9B. The comparison is on blended price, 3 parts input to 1 part output.
| Host | In / out per 1M | Model id | |
|---|---|---|---|
Vercel AI GatewayGateway gemma-2-9b | $0.20 / $0.20 | gemma-2-9b |
Capabilities
Core
- Streaming
- Function calling
- JSON mode
- Structured outputs
Multimodal
- Vision
- Image input
- Audio
- Image generation
- Video
Advanced
- Reasoning
- Tool calling
- MCP
- Prompt caching
- Batch API
- Embeddings
- Takes in
- TextImages
- Produces
- Text
- Open weights
- License: Gemma LicenseRuntimes: Ollama, llama.cpp, vLLM
Cheaper alternatives
Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.
Same model, cheaper host
No host sells it for less than Vercel AI Gateway.
Smaller Google models
No cheaper Google model keeps its key capabilities.
Other frontier labs
No cheaper match from another frontier lab.
Open-weight picks
- 10% less
- 11% less
- 20% less
- 25% less
Call it
Using Vercel AI Gateway's API.
from litellm import completion
response = completion(
model="vercel_ai_gateway/gemma-2-9b",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Quick answers
How much does Gemma 2 9B cost?
On Vercel AI Gateway, Gemma 2 9B costs $0.20 per million input tokens and $0.20 per million output tokens.
Which APIs offer Gemma 2 9B?
Gemma 2 9B runs on 1 API: Vercel AI Gateway.
What is Gemma 2 9B's context window?
8K tokens, with up to 8K tokens in one reply.
Is Gemma 2 9B being retired?
No retirement date is scheduled for it on any API we track.
What are cheaper alternatives to Gemma 2 9B?
Models that cost less and keep most of what it can do: Qwen3.8 Flash on AIHubMix (10% less). Savings are on a mix of 3 input tokens to 1 output token.
What is Gemma 2 9B's API model id?
Use gemma-2-9b with Vercel AI Gateway.
Sources
Raw catalog entry for gemma-2-9b on Vercel AI Gateway
{
"input_cost_per_token": 2e-7,
"litellm_provider": "vercel_ai_gateway",
"max_input_tokens": 8192,
"max_output_tokens": 8192,
"mode": "chat",
"output_cost_per_token": 2e-7,
"supports_vision": true,
"supports_function_calling": true,
"supports_tool_choice": true
}