Gemini Gemma 2 9b It API pricing
Gemini Gemma 2 9b It costs $0.35 per million input tokens and $1.05 per million output tokens on the Google API. Context window: 8k tokens. Updated .
| Price per 1M tokens | US dollars |
|---|---|
| Input | $0.35 |
| Cached input | — |
| Output | $1.05 |
What it costs in practice
- One chat or extraction call (2,000 tokens in, 500 out): $0.0012
- 1,000 such calls: $1.23
- 1 million tokens at a typical 80% input / 20% output mix: $0.490
Abilities: image input, tool use. Batch, long-context, priority and regional prices differ; check the full table and the provider’s own pricing page before you commit.
Cheapest alternatives from other providers
| Model | Input | Output | Context | Typical call ×1,000 |
|---|---|---|---|---|
| GPT-5 nano OpenAI | $0.050 | $0.40 | 272k | $0.30 |
| Claude Haiku 5.5 Anthropic | $0.10 | $0.50 | 1M | $0.45 |
| GPT-6 luna OpenAI | $0.10 | $0.50 | 922k | $0.45 |
| Qwen3.8 Flash Alibaba (Qwen) | $0.15 | $0.47 | 992k | $0.54 |
| Qwen3.8 Omni Flash Alibaba (Qwen) | $0.15 | $0.47 | 992k | $0.54 |
| GLM 5.3 Flash Zhipu (GLM) | $0.15 | $0.50 | 1.0M | $0.55 |
Other Google models
| Model | Input | Output | Context | Typical call ×1,000 |
|---|---|---|---|---|
| Gemini 2.5 Flash Lite Google | $0.10 | $0.40 | 1.0M | $0.40 |
| Gemini Gemma 2 27b It Google | $0.35 | $1.05 | 8k | $1.23 |
| Gemini 3.1 Flash Lite Google | $0.25 | $1.50 | 1.0M | $1.25 |
| Gemini 2.5 Flash Google | $0.30 | $2.50 | 1.0M | $1.85 |
| Gemini 3.5 Flash Lite Google | $0.30 | $2.50 | 1.0M | $1.85 |
| Gemini 3 Flash Preview Google | $0.50 | $3.00 | 1.0M | $2.50 |
Questions
How much does Gemini Gemma 2 9b It cost?
Gemini Gemma 2 9b It costs $0.35 per million input tokens and $1.05 per million output tokens on the Google API. A typical call with 2,000 tokens in and 500 out costs about $0.0012.
What is the context window of Gemini Gemma 2 9b It?
Gemini Gemma 2 9b It accepts up to 8,192 input tokens and returns up to 8,192 output tokens.
Is there a cheaper alternative to Gemini Gemma 2 9b It?
For a typical call, GPT-5 nano (OpenAI, $0.0003 per call), Claude Haiku 5.5 (Anthropic, $0.0004 per call), GPT-6 luna (OpenAI, $0.0004 per call) cost less and also support image input, tool use. Quality differs, so test on your own prompts.
Source: the open LiteLLM model price map (MIT), checked daily (data file).