---
title: "Gemma 3 12B API pricing: 4 providers compared | BroadRouter"
description: "Gemma 3 12B API price per token from 4 providers: lowest listed USD 0.05 input and USD 0.15 output per 1M tokens. Source linked per row."
url: https://broadrouter.com/llm-api-pricing/gemma-3-12b-it/
lang: en
updated: 2026-11-15
publisher: BroadRouter (a BroadNet site); API by BroadNet Inference, https://inference.broadnet.ai
---

# Gemma 3 12B API pricing

Updated 2026-11-15

Among the 4 providers we checked (prices read 2026-11-14 to 2026-11-15), 2 tie for the lowest blended standard price for Gemma 3 12B; DeepInfra charges USD 0.05 per 1M input tokens and USD 0.15 per 1M output tokens. The median across 4 standard prices is USD 0.07 / USD 0.22. Each price is read from the provider's own pricing page.

Google · slug `gemma-3-12b-it` · up to 131,072 tokens of context · 4 providers with a standard price. **Every price is read from the provider's own pricing page** and linked in its row, checked 2026-11-15. No aggregator feed. [Download all prices](https://broadrouter.com/data/llm-api-provider-prices/) (every provider and model, with sources, CSV or JSON). How it compares with the market: the [LLM API price index](https://broadrouter.com/data/llm-api-price-index/). Archived list prices since 2025-07-09 (17 archived price points, 2 list-price changes): [LLM API price history](https://broadrouter.com/data/llm-api-price-history/#p-deepinfra).

## Does Google sell Gemma 3 12B directly?

Google publishes no price for Gemma 3 12B on its own API that we could find, so this page compares hosts only.

## Gemma 3 12B model facts

Facts from Google's model card for [`google/gemma-3-12b-it`](https://huggingface.co/google/gemma-3-12b-it) and the Hugging Face model API, read 2026-11-16. BroadNet did not verify them, and hosts may serve the model at a different precision. BroadRouter is BroadNet's site.

Gemma 3 12B: facts as stated by the model card and the Hugging Face model API, with sources
| Fact | As stated | Source |
| --- | --- | --- |
| Open weights | Yes, with gated access. google/gemma-3-12b-it is public, but Hugging Face asks you to request access and accept the terms before you download (gated: manual). | [Hugging Face model API](https://huggingface.co/api/models/google/gemma-3-12b-it), checked 2026-11-16 · Quote: “"private": false, "gated": "manual", 5 .safetensors files listed” |
| Licence | gemma | [Google model card metadata](https://huggingface.co/google/gemma-3-12b-it), checked 2026-11-16 · Quote: “license: gemma” |
| Parameters in the weight files (Hugging Face count, not the maker's figure) | About 12.2 billion (12,187,325,040) | [Hugging Face model API](https://huggingface.co/api/models/google/gemma-3-12b-it), checked 2026-11-16 · Quote: “"safetensors": { "total": 12187325040 }” |
| Context length | 128K tokens input; 8,192 tokens output | [Google model card](https://huggingface.co/google/gemma-3-12b-it), checked 2026-11-16 · Quote: “Total input context of 128K tokens for the 4B, 12B, and 27B sizes … Total output context of 8192 tokens” |
| Input and output | Text and images in; text out | [Google model card](https://huggingface.co/google/gemma-3-12b-it), checked 2026-11-16 · Quote: “Images, normalized to 896 x 896 resolution and encoded to 256 tokens … Generated text in response to the input” |
| Tool calling | Not found on Google's model card when we read it | checked 2026-11-16 |
| First published on Hugging Face (not necessarily the release date) | 2025-03-01 | [Hugging Face model API](https://huggingface.co/api/models/google/gemma-3-12b-it), checked 2026-11-16 · Quote: “"createdAt": "2025-03-01T19:11:34.000Z"” |

## Gemma 3 12B price per provider

USD per 1M tokens. Standard prices are ranked on a blend of 3 input tokens to 1 output token, cheapest first; the dearest standard price is 5.3× the cheapest. Free rows, the maker's serving version and other service tiers follow, tagged and unranked.

Gemma 3 12B API prices by provider
| # | Provider | Input | Cached input | Output | Blended 3:1 | Context | Precision | Source |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | **[DeepInfra](https://broadrouter.com/llm-api-pricing/providers/deepinfra/)** tied cheapest · `google/gemma-3-12b-it` · Quote: “$0.05 in $0.15 out / 1M tokens” | USD 0.05 | not published | USD 0.15 | USD 0.075 | 131,072 | BFLOAT16 | [DeepInfra page](https://deepinfra.com/google/gemma-3-12b-it) · checked 2026-11-14 · re-checked 2026-11-16 |
| 2 | **[Featherless](https://broadrouter.com/llm-api-pricing/providers/featherless/)** tied cheapest · `google/gemma-3-12b-it` · Note: Developer plan (per-token billing, from 50 USD a month in credits). No cached price published. Quote: “PRICING: INPUT $0.05 / OUTPUT $0.15” | USD 0.05 | not published | USD 0.15 | USD 0.075 | 32,768 | FP8 | [Featherless page](https://featherless.ai/models/google/gemma-3-12b-it) · checked 2026-11-15 · re-checked 2026-11-16 |
| 3 | **[Amazon Bedrock](https://broadrouter.com/llm-api-pricing/providers/amazon-bedrock/)** · Note: Table headed "Regions: US East (N. Virginia), US East (Ohio) and US West (Oregon)". Quote: “Gemma 3 12B $ 0.09 $ 0.29” | USD 0.09 | not published | USD 0.29 | USD 0.14 | not stated | not stated | [Amazon Bedrock page](https://aws.amazon.com/bedrock/pricing/) · checked 2026-11-14 · re-checked 2026-11-16 |
| 4 | **[Cloudflare Workers AI](https://broadrouter.com/llm-api-pricing/providers/cloudflare/)** · `@cf/google/gemma-3-12b-it` · Note: Cloudflare publishes this USD per-token price alongside the neuron price. Quote: “@cf/google/gemma-3-12b-it $0.345 per M input tokens $0.556 per M output tokens” | USD 0.345 | not published | USD 0.556 | USD 0.3977 | not stated | not stated | [Cloudflare Workers AI page](https://developers.cloudflare.com/workers-ai/platform/pricing/) · checked 2026-11-14 · re-checked 2026-11-16 |
| — | **[DeepInfra](https://broadrouter.com/llm-api-pricing/providers/deepinfra/)** flex / spot · `google/gemma-3-12b-it` · Note: Flex service tier (0.8× standard). Quote: “Flex (0.8×) $0.04 $0.12” | USD 0.04 | not published | USD 0.12 | USD 0.06 | 131,072 | BFLOAT16 | [DeepInfra page](https://deepinfra.com/google/gemma-3-12b-it) · checked 2026-11-14 · re-checked 2026-11-16 |
| — | **[DeepInfra](https://broadrouter.com/llm-api-pricing/providers/deepinfra/)** priority · `google/gemma-3-12b-it` · Note: Priority service tier (1.5× standard). Quote: “Priority (1.5×) $0.075 $0.225” | USD 0.075 | not published | USD 0.225 | USD 0.1125 | 131,072 | BFLOAT16 | [DeepInfra page](https://deepinfra.com/google/gemma-3-12b-it) · checked 2026-11-14 · re-checked 2026-11-16 |

-   **Ranked:** standard-tier prices only, on (3 × input + output) ÷ 4. "Cached input: not published" means the provider's page shows no cache price; budget cached tokens at the input price.
-   **Other tiers (flex / spot and priority):** batch runs asynchronously within hours; flex and spot are best-effort and can be slow or refused at capacity; priority and fast cost more for reliability or speed. Shown, not ranked.
-   **Automated re-check 2026-11-16:** a weekly job re-fetches each source page and looks for the recorded quote or prices. It is not a human review. "Re-checked" means it still found them. Rows with no re-check note show only the date the price was read.
-   **Precision** is shown only where the provider states it; "not stated" is unknown, not full precision.

[Report a wrong price or number](mailto:info@broadnet.ai?subject=Wrong%20price%20or%20number%20on%20Gemma%203%2012B%20API%20pricing&body=Page%3A%20https%3A%2F%2Fbroadrouter.com%2Fllm-api-pricing%2Fgemma-3-12b-it%2F%0A%0AWhat%20looks%20wrong%20(model%2C%20figure%20shown%2C%20correct%20figure%20and%20a%20source%20link%20if%20you%20have%20one)%3A%0A) (email to info@broadnet.ai, with this page's link filled in).

## What does Gemma 3 12B cost for a real workload?

Monthly cost over 30 days at each standard price, using the presets of the [LLM API cost calculator](https://broadrouter.com/tools/llm-api-cost-calculator/?model=gemma-3-12b-it). Providers without a cached price bill cached input at the input price.

-   **Support chatbot:** 2,000 requests a day, 1,500 input tokens (60% cached), 300 output.
-   **RAG over documents:** 1,000 requests a day, 8,000 input tokens (30% cached), 500 output.
-   **Coding agent (one developer):** 1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning.

Monthly cost of three workloads on Gemma 3 12B, by provider
| Provider | Support chatbot | RAG over documents | Coding agent (one developer) |
| --- | --- | --- | --- |
| **DeepInfra** | USD 7.20 | USD 14.25 | USD 103.50 |
| **Featherless** | USD 7.20 | USD 14.25 | exceeds context |
| **Amazon Bedrock** | USD 13.32 | USD 25.95 | USD 188.10 |
| **Cloudflare Workers AI** | USD 41.06 | USD 91.14 | USD 671.04 |

For the support chatbot, the cheapest price (DeepInfra and 1 other, tied, USD 7.20 a month) saves USD 3.06 against the median (USD 10.26). For the coding agent the gap is USD 42.30 a month (29% lower).

## Which Gemma 3 12B provider is cheapest for your traffic?

DeepInfra and Featherless share the lowest input price (USD 0.05) and the lowest output price (USD 0.15), so they are the cheapest standard price at every mix of input and output tokens, before cache discounts.

Gemma 3 12B: price per 1M tokens at 3 input to 1 output, by share of input served from cache
| Provider | No cache hits | 50% cached | 90% cached |
| --- | --- | --- | --- |
| **DeepInfra** (no cache price) | USD 0.075 cheapest | USD 0.075 cheapest | USD 0.075 cheapest |
| **Featherless** (no cache price) | USD 0.075 cheapest | USD 0.075 cheapest | USD 0.075 cheapest |
| **Amazon Bedrock** (no cache price) | USD 0.14 | USD 0.14 | USD 0.14 |
| **Cloudflare Workers AI** (no cache price) | USD 0.3977 | USD 0.3977 | USD 0.3977 |

USD per 1M tokens, 3 input tokens to 1 output token, each provider's cheapest standard row. A provider without a cached price bills cached input at the input price. Any charge for writing to the cache, which some providers add, is not included.

None of the 4 providers publishes a cached-input discount for Gemma 3 12B, so cache hits do not change the ranking.

Context windows differ: 131,072 tokens at DeepInfra; 32,768 tokens at Featherless. Amazon Bedrock and Cloudflare Workers AI do not state one. The cheapest row is not always the one that fits a long prompt.

## What does Gemma 3 12B cost in other languages?

The same text needs a different number of tokens in each language. With the Gemma 3 27B tokenizer, sending 1M characters costs this much at the cheapest standard input price we found for Gemma 3 12B:

| Content | Input per 1M characters | Cheapest provider |
| --- | --- | --- |
| English | USD 0.011 | DeepInfra |
| Arabic MSA | USD 0.017 | DeepInfra |
| Hindi | USD 0.014 | DeepInfra |
| Chinese | USD 0.034 | DeepInfra |
| Code | USD 0.015 | DeepInfra |

From BroadRouter's [real cost by language dataset](https://broadrouter.com/data/real-cost-by-language/), which covers 15 languages and content types for every model we could match to a measured tokenizer.

## Estimate your own bill

-   [LLM API cost calculator with Gemma 3 12B preloaded](https://broadrouter.com/tools/llm-api-cost-calculator/?model=gemma-3-12b-it): your traffic and cache rate, against any of 431 models.
-   [Gemma 3 token counter](https://broadrouter.com/tools/gemma-3-token-counter/): count the tokens in your real prompts. Tokenizers differ, so the same text costs a different number of tokens on different models.
-   [Prompt caching calculator](https://broadrouter.com/tools/prompt-caching-calculator/): what a higher cache-hit rate saves.

## How does Gemma 3 12B compare with other Google models?

The Google models whose cheapest standard price is closest to Gemma 3 12B's (USD 0.075 blended):

Google models priced closest to Gemma 3 12B
| Model | Cheapest input | Cheapest output | Max context | Providers |
| --- | --- | --- | --- | --- |
| [Gemma 3 27B](https://broadrouter.com/llm-api-pricing/gemma-3-27b-it/) | USD 0.08 | USD 0.16 | 198,000 | 6 |
| [Gemma 3 4B](https://broadrouter.com/llm-api-pricing/gemma-3-4b-it/) | USD 0.04 | USD 0.08 | 131,072 | 3 |
| [Gemma 4 26B A4B](https://broadrouter.com/llm-api-pricing/gemma-4-26b-a4b-it/) | USD 0.07 | USD 0.34 | 262,144 | 11 |
| [Gemma 4 12B IT](https://broadrouter.com/llm-api-pricing/gemma-4-12b-it/) | USD 0.10 | USD 0.30 | 262,144 | 2 |
| [gemma-4-31B-it-turbo](https://broadrouter.com/llm-api-pricing/gemma-4-31b-it-turbo/) | USD 0.09 | USD 0.34 | 262,144 | 2 |
| [Gemma 4 31B](https://broadrouter.com/llm-api-pricing/gemma-4-31b-it/) | USD 0.10 | USD 0.34 | 262,144 | 14 |

Priced closest from other makers: [Llama 3.2 1B Instruct](https://broadrouter.com/llm-api-pricing/llama-3.2-1b-instruct/) (Meta, USD 0.0705) · [IBM Granite 4.2 8B](https://broadrouter.com/llm-api-pricing/granite-4.2-8b/) (IBM, USD 0.0825) · [NVIDIA Nemotron 3.5 Lightning 30B A3B](https://broadrouter.com/llm-api-pricing/nemotron-3.5-lightning/) (NVIDIA, USD 0.085).

## Compare Gemma 3 12B with

-   [Gemma 4 12B IT vs Gemma 3 12B](https://broadrouter.com/llm-api-pricing/compare/gemma-4-12b-it-vs-gemma-3-12b-it/): API price side by side
-   [Gemma 3 27B vs Gemma 3 12B](https://broadrouter.com/llm-api-pricing/compare/gemma-3-27b-it-vs-gemma-3-12b-it/): API price side by side
-   [Gemma 3 12B vs Gemma 3 4B](https://broadrouter.com/llm-api-pricing/compare/gemma-3-12b-it-vs-gemma-3-4b-it/): API price side by side

Also compared: [vs Gemma 4 12B IT](https://broadrouter.com/llm-api-pricing/compare/gemma-4-12b-it-vs-gemma-3-12b-it/) · [vs Gemma 3 27B](https://broadrouter.com/llm-api-pricing/compare/gemma-3-27b-it-vs-gemma-3-12b-it/) · [vs Gemma 3 4B](https://broadrouter.com/llm-api-pricing/compare/gemma-3-12b-it-vs-gemma-3-4b-it/).

[Every Gemma 3 12B price comparison](https://broadrouter.com/llm-api-pricing/compare/#m-gemma-3-12b-it) · [All model-vs-model price comparisons](https://broadrouter.com/llm-api-pricing/compare/)

[All 431 models: API prices compared](https://broadrouter.com/llm-api-pricing/) · [Cheapest LLM APIs right now](https://broadrouter.com/llm-api-pricing/cheapest/) · [LLM API price index (open data)](https://broadrouter.com/data/llm-api-price-index/) · [Download all prices (CSV, JSON)](https://broadrouter.com/data/llm-api-provider-prices/) · [Price change log](https://broadrouter.com/llm-api-pricing/changes/)

## Questions

### How much does the Gemma 3 12B API cost per token?

From USD 0.05 per 1M input tokens (USD 0.00000005 per token) and USD 0.15 per 1M output tokens (USD 0.00000015 per token) at the lowest standard prices we found. The median of 4 standard prices is USD 0.07 input and USD 0.22 output. Each price was read from the provider's own pricing page; the source is linked in its row.

### Which provider is cheapest for Gemma 3 12B?

Among the 4 providers we checked (prices read 2026-11-14 to 2026-11-15), 2 are tied for the lowest price: DeepInfra and Featherless, each USD 0.075 per 1M on a blend of 3 input tokens to 1 output token. For input alone the lowest price is USD 0.05 (DeepInfra and 1 other, tied); for output alone, USD 0.15 (DeepInfra and 1 other, tied). Batch, flex, priority and fast tiers are shown in the table but not ranked.

### Does Google sell Gemma 3 12B on its own API?

Google publishes no price for Gemma 3 12B on its own API that we could find, so there is no maker price to compare. The lowest-priced host we checked is DeepInfra at USD 0.05 / USD 0.15 per 1M tokens.

### Does Gemma 3 12B have cached input pricing?

None of the 4 standard prices includes a cached-input price, so budget repeated prompts at the full input price.

### What is the Gemma 3 12B context window?

Up to 131,072 tokens. 1 standard price comes with less, down to 32,768 tokens (Featherless). Check the context column before you pick the cheapest row for long prompts. [Context window calculator](https://broadrouter.com/tools/context-window-calculator/).

### How much does a coding agent cost per month on Gemma 3 12B?

For 1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning, over 30 days: USD 103.50 a month at DeepInfra, USD 145.80 at the median price and USD 671.04 at Cloudflare Workers AI. [Try your own numbers](https://broadrouter.com/tools/llm-api-cost-calculator/?model=gemma-3-12b-it).

### Is there a batch, flex or priority price for Gemma 3 12B?

Yes: flex / spot from DeepInfra at USD 0.04 / USD 0.12; priority from DeepInfra at USD 0.075 / USD 0.225 per 1M input / output tokens. These tiers trade speed or availability for price (batch runs within hours, flex and spot can be slow or refused at capacity, priority and fast cost more for speed or reliability), so they are shown but not ranked.

### Is Gemma 3 12B free to use through an API?

No provider in our data lists a free price for Gemma 3 12B as of 2026-11-15. [Free tiers and credits by provider](https://broadrouter.com/data/llm-api-free-tiers-and-rate-limits/) (checked 2026-11-14) lists general offers that do not name a model; [all free LLM API models](https://broadrouter.com/llm-api-pricing/free/) are on one page.

### Is Gemma 3 12B open source, with open weights, and what is its licence?

Google publishes the weights on Hugging Face as [`google/gemma-3-12b-it`](https://huggingface.co/google/gemma-3-12b-it), with gated access: Hugging Face asks you to request access and accept the terms before you download. The licence, as the [Google model card metadata](https://huggingface.co/google/gemma-3-12b-it) states it: gemma. Open weights means you can download and run the model yourself; what you may do with it, including commercial use, is set by that licence, so read it in full (checked 2026-11-16). These facts come from Google's card and the Hugging Face model API; BroadNet did not verify them, and hosts may serve the model at a different precision.

### How many parameters does Gemma 3 12B have?

Google's model card does not state a total that we found. [Hugging Face](https://huggingface.co/api/models/google/gemma-3-12b-it) counts about 12.2 billion (12,187,325,040) parameters in the published weight files of [`google/gemma-3-12b-it`](https://huggingface.co/google/gemma-3-12b-it). That is a file-level count, not the maker's figure, and it can include extra modules (checked 2026-11-16).

### How do I call Gemma 3 12B with the OpenAI SDK?

BroadNet does not serve Gemma 3 12B. Use the OpenAI-compatible base URL of a provider that lists it: create the client with `OpenAI(base_url=..., api_key=...)` and pass that provider's model ID. Documented base URLs for providers on this page, in alphabetical order: [DeepInfra](https://broadrouter.com/llm-api-pricing/providers/deepinfra/) (`https://api.deepinfra.com/v1/openai`, model `google/gemma-3-12b-it`). Each provider page quotes the provider's docs with a check date.

Try it on your real workload. New accounts start with $5 of credit for Gemma and transcription. DeepSeek, GLM and Qwen3.8 need a top-up.

[Get started](https://inference.broadnet.ai/account/?utm_source=broadrouter&utm_medium=referral&utm_campaign=llm-api-pricing-gemma-3-12b-it&utm_content=page-cta) ·

**Sources**

-   [Amazon Bedrock: pricing (checked 2026-11-14)](https://aws.amazon.com/bedrock/pricing/)
-   [Cloudflare Workers AI: pricing (checked 2026-11-14)](https://developers.cloudflare.com/workers-ai/platform/pricing/)
-   [DeepInfra: pricing (checked 2026-11-14)](https://deepinfra.com/google/gemma-3-12b-it)
-   [Featherless: pricing (checked 2026-11-15)](https://featherless.ai/models/google/gemma-3-12b-it)
