Gemma 4 12B
Pricing as of October 2026<$0.0001/1M input · <$0.0001/1M output · 262K context · Google
Gemma 4 12B costs <$0.0001 per 1M input tokens and <$0.0001 per 1M output tokens from Google, with a 262K-token context window. A typical chat reply (1,500 tokens in, 400 out) costs <$0.0001, or <$0.0001 per 10,000 requests. On that workload it is cheaper than 172 of the 175 other buyable models tracked here.
Count Tokens
—
Tokens
—
Input Cost
—
Output Cost
Estimate Monthly Cost
Monthly Cost Estimator
Quick:
<$0.0001/mo
Pick a preset above or enter custom usage
What Gemma 4 12B Costs Per Request
At <$0.0001 per 1M input and <$0.0001 per 1M output tokens, before caching or batch discounts.
| Workload | Input / output tokens | Per request | Per 10,000 requests |
|---|---|---|---|
| Chat reply | 1,500 / 400 | <$0.0001 | <$0.0001 |
| RAG answer over retrieved docs | 8,000 / 600 | <$0.0001 | <$0.0001 |
| Coding-agent step | 30,000 / 2,000 | <$0.0001 | <$0.0001 |
Gemma 4 12B vs Similarly Priced Models
Nearest buyable models by price, with the RAG answer above (8,000 in / 600 out) priced on each.
| Model | Input /1M | Output /1M | Context | RAG answer |
|---|---|---|---|---|
| Gemma 4 12B Google | <$0.0001 | <$0.0001 | 262K | <$0.0001 |
| Recursive Flint Recursive | <$0.0001 | <$0.0001 | 262K | <$0.0001 |
| Ling-3.0-tiny Ant Group | <$0.0001 | <$0.0001 | 262K | <$0.0001 |
| Qwen3.7 Flash Alibaba | $0.030 | $0.130 | 1.0M | $0.0003 |
Alternatives to Gemma 4 12B
Pricing Details
GoogleOpen-weight (Apache 2.0). Dense 11.95B params. Encoder-free unified multimodal: text, image, and audio input; text output. First mid-sized Gemma with native audio. Runs on a 16GB laptop (int4 QAT). No paid per-token API at launch; free rate-limited in Google AI Studio, or self-host (Ollama gemma4:12b). Marginal cost is GPU + power.
Input / 1M tokens
$0
Output / 1M tokens
$0
Context Window
262K
Max Output
33K
Price History
No price change recorded since 2026-08-11, when this site started tracking this model; it launched on 2026-06-03.
Frequently Asked Questions
Common questions about Gemma 4 12B pricing and usage
How much does Gemma 4 12B cost?
Gemma 4 12B costs $0 per 1 million input tokens and $0 per 1 million output tokens. This pricing is set by Google.
What tokenizer does Gemma 4 12B use?
Gemma 4 12B uses the cl100k_base tokenizer. This tokenizer has a vocabulary of ~100,000 tokens and is widely used across many models.
What is Gemma 4 12B's context window?
Gemma 4 12B supports a context window of 262K tokens (262,144 tokens). The maximum output length is 33K tokens.
How does Gemma 4 12B compare to other models?
On an 8,000-token-in, 600-token-out RAG answer, Gemma 4 12B costs <$0.0001 per request. The nearest-priced alternatives cost: Recursive Flint (Recursive) <$0.0001, Ling-3.0-tiny (Ant Group) <$0.0001, Qwen3.7 Flash (Alibaba) $0.0003. The table above lists their full rates and context windows.
How do I count tokens for Gemma 4 12B?
Use the token counter at the top of this page or visit the homepage calculator. Paste your text and it will show the exact token count and cost for Gemma 4 12B using the cl100k_base tokenizer.