Google: Gemma 3 12B
google/gemma-3-12b-it
Model weightsGemma 3 introduces multimodality, supporting vision-language input and text outputs. It handles context windows up to 128k tokens, understands over 140 languages, and offers improved math, reasoning, and chat capabilities, including structured outputs and function calling. Gemma 3 12B is the second largest in the family of Gemma 3 models after Gemma 3 27B
Providers
Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick: Balanced (price + speed), Nitro (fastest), or Floor (cheapest).
| $0.050 | $0.150 | -- | 0.51s | 50 tok/s | ||
| $0.075 | $0.225 | -- | 1.00s | 51 tok/s | ||
| $0.075 | $0.150 | $0.05 | 1.62s | 55 tok/s | ||
Not used in Standard routing:Why these endpoints are not used | ||||||
| $0.040 | $0.120 | -- | 1.26s | 26 tok/s | ||
Input $0.05 / Output $0.1550 tok/s92.65% uptime
Input $0.075 / Output $0.22551 tok/s91.66% uptimePriority- Input $0.075 / Output $0.1555 tok/s99.96% uptime
- Not used in Standard routing:Why these endpoints are not used
Input $0.04 / Output $0.1226 tok/s0.00% uptimeFlex
Pricing
The average price customers actually pay for this model, next to the prices providers post. Caching and discounts mean the price actually paid is often well below the listed one.
Weighted average
Gemma 3 12B — Price history
| $0.0487 | $0.1392 | 0.0% | 65.5% | ||
| $0.0676 | $0.1490 | 28.1% | 23.2% | ||
| $0.0744 | $0.2220 | 0.0% | 10.4% | ||
Not used in Standard routing:Why these endpoints are not used | |||||
| $0.0394 | $0.0995 | 0.0% | 0.9% | ||
- Effective in $0.0487 / Effective out $0.1392Token share65.5%
- Effective in $0.0676 / Effective out $0.1490Token share23.2%
- Effective in $0.0744 / Effective out $0.2220PriorityToken share10.4%
- Not used in Standard routing:Why these endpoints are not used
- Effective in $0.0394 / Effective out $0.0995FlexToken share0.9%
Performance
Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better).
P50, best across providers
P50, best provider
Uptime
Uptime is the percentage of the past 3 days that at least one provider was responding to requests. Availability is the percentage of time that inference was successfully served. OpenRouter continuously monitors and uses the next-best provider when one returns an error.
Availability over the last 3 days
Last 72 hoursAvailability over the last 24 hours
When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it. You can access per-provider uptime data programmatically through the Endpoints API. Learn more about our load balancing and provider routing options.
Benchmarks
Scores on standardized evaluations and this model’s own outputs on shared benchmark prompts. Higher percentages are better — and each rank shows where this model lands among the models evaluated on that source.
| Source | Benchmark | Score |
|---|---|---|
| Artificial Analysis | Gemma 3 12B Instruct Coding Index | 5.8 |
| Artificial Analysis | Gemma 3 12B Instruct Agentic Index | 0.1 |
| Artificial Analysis | Gemma 3 12B Instruct GPQA Diamond | 34.9% |
| Artificial Analysis | Gemma 3 12B Instruct HLE | 4.2% |
| Artificial Analysis | Gemma 3 12B Instruct IFBench | 36.7% |
| Artificial Analysis | Gemma 3 12B Instruct τ²-Bench Telecom | 10.8% |
| Artificial Analysis | Gemma 3 12B Instruct AA-LCR | 8.3% |
| Artificial Analysis | Gemma 3 12B Instruct τ-Bench Banking | 0.8% |
| Artificial Analysis | Gemma 3 12B Instruct GDPval-AA | 0.0% |
| Artificial Analysis | Gemma 3 12B Instruct CritPt | 0.0% |
| Artificial Analysis | Gemma 3 12B Instruct LiveCodeBench | 13.7% |
| Artificial Analysis | Gemma 3 12B Instruct SciCode | 16.4% |
| Artificial Analysis | Gemma 3 12B Instruct Terminal-Bench Hard | 0.8% |
| Artificial Analysis | Gemma 3 12B Instruct Terminal-Bench 4.0 | 0.0% |
| Artificial Analysis | Gemma 3 12B Instruct Terminal-Bench 2.1 | 0.0% |
| Artificial Analysis | Gemma 3 12B Instruct MMLU-Pro | 59.5% |
| Artificial Analysis | Gemma 3 12B Instruct AIME 2025 | 18.3% |
| Artificial Analysis | Gemma 3 12B Instruct AIME | 22.0% |
| Artificial Analysis | Gemma 3 12B Instruct MATH-500 | 85.3% |
Apps
Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.
Activity
Token volume and request traffic to this model over time.
API
Drop-in code to call this model. OpenRouter's API is OpenAI-compatible — most SDKs work by just swapping the base URL. The only thing that changes between models is the model slug below.
Not currently available through EU in-region routing. In-region routing docs
Frequently asked questions
Gemma 3 introduces multimodality, supporting vision-language input and text outputs. It handles context windows up to 128k tokens, understands over 140 languages, and offers improved math, reasoning, and chat capabilities, including structured outputs and function calling. Gemma 3 12B is the second largest in the family of Gemma 3 models after Gemma 3 27B
Gemma 3 12B costs $0.05/M input tokens and $0.15/M output tokens.
Gemma 3 12B has a 131,072 token context window. It supports up to 16,384 completion tokens.
Yes. Gemma 3 12B accepts tools and tool_choice for function calling on 1 of the 2 providers serving it, and requests that send tools are routed to those providers. It also supports structured outputs via a JSON schema in response_format.
Gemma 3 12B accepts text and images as input and returns text.
Gemma 3 12B is served by 2 providers on OpenRouter: DeepInfra and NextBit. Requests are routed to the best available provider, with automatic failover to the others, and you can pin or exclude providers with provider routing.
Gemma 3 12B was released on March 13, 2025. Its knowledge cutoff is August 31, 2024.