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

# Gemma 3 4B API pricing

Updated 2026-11-15

Among the 3 providers we checked (prices read 2026-11-14 to 2026-11-15), the lowest blended standard price for Gemma 3 4B is Amazon Bedrock at USD 0.04 per 1M input tokens and USD 0.08 per 1M output tokens. The median across 3 standard prices is USD 0.05 / USD 0.10. Each price is read from the provider's own pricing page.

Google · slug `gemma-3-4b-it` · up to 131,072 tokens of context · 3 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 4B directly?

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

## Gemma 3 4B model facts

Facts from Google's model card for [`google/gemma-3-4b-it`](https://huggingface.co/google/gemma-3-4b-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 4B: 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-4b-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-4b-it), checked 2026-11-16 · Quote: “"private": false, "gated": "manual", 2 .safetensors files listed” |
| Licence | gemma | [Google model card metadata](https://huggingface.co/google/gemma-3-4b-it), checked 2026-11-16 · Quote: “license: gemma” |
| Parameters in the weight files (Hugging Face count, not the maker's figure) | About 4.3 billion (4,300,079,472) | [Hugging Face model API](https://huggingface.co/api/models/google/gemma-3-4b-it), checked 2026-11-16 · Quote: “"safetensors": { "total": 4300079472 }” |
| Context length | 128K tokens input; 8,192 tokens output | [Google model card](https://huggingface.co/google/gemma-3-4b-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-4b-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-02-20 | [Hugging Face model API](https://huggingface.co/api/models/google/gemma-3-4b-it), checked 2026-11-16 · Quote: “"createdAt": "2025-02-20T21:20:07.000Z"” |

## Gemma 3 4B 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 25% above the cheapest. Free rows, the maker's serving version and other service tiers follow, tagged and unranked.

Gemma 3 4B API prices by provider
| # | Provider | Input | Cached input | Output | Blended 3:1 | Context | Precision | Source |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | **[Amazon Bedrock](https://broadrouter.com/llm-api-pricing/providers/amazon-bedrock/)** cheapest · Note: Table headed "Regions: US East (N. Virginia), US East (Ohio) and US West (Oregon)". Quote: “Gemma 3 4B $ 0.04 $ 0.08” | USD 0.04 | not published | USD 0.08 | USD 0.05 | not stated | not stated | [Amazon Bedrock page](https://aws.amazon.com/bedrock/pricing/) · checked 2026-11-14 · re-checked 2026-11-16 |
| 2 | **[DeepInfra](https://broadrouter.com/llm-api-pricing/providers/deepinfra/)** · `google/gemma-3-4b-it` · Quote: “$0.05 in $0.10 out / 1M tokens” | USD 0.05 | not published | USD 0.10 | USD 0.0625 | 131,072 | BFLOAT16 | [DeepInfra page](https://deepinfra.com/google/gemma-3-4b-it) · checked 2026-11-14 · re-checked 2026-11-16 |
| 3 | **[Featherless](https://broadrouter.com/llm-api-pricing/providers/featherless/)** · `google/gemma-3-4b-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.1” | USD 0.05 | not published | USD 0.10 | USD 0.0625 | 32,768 | BF16 | [Featherless page](https://featherless.ai/models/google/gemma-3-4b-it) · checked 2026-11-15 · re-checked 2026-11-16 |
| — | **[DeepInfra](https://broadrouter.com/llm-api-pricing/providers/deepinfra/)** flex / spot · `google/gemma-3-4b-it` · Note: Flex service tier (0.8× standard). Quote: “Flex (0.8×) $0.04 $0.08” | USD 0.04 | not published | USD 0.08 | USD 0.05 | 131,072 | BFLOAT16 | [DeepInfra page](https://deepinfra.com/google/gemma-3-4b-it) · checked 2026-11-14 · re-checked 2026-11-16 |
| — | **[DeepInfra](https://broadrouter.com/llm-api-pricing/providers/deepinfra/)** priority · `google/gemma-3-4b-it` · Note: Priority service tier (1.5× standard). Quote: “Priority (1.5×) $0.075 $0.15” | USD 0.075 | not published | USD 0.15 | USD 0.09375 | 131,072 | BFLOAT16 | [DeepInfra page](https://deepinfra.com/google/gemma-3-4b-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%204B%20API%20pricing&body=Page%3A%20https%3A%2F%2Fbroadrouter.com%2Fllm-api-pricing%2Fgemma-3-4b-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 4B 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-4b-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 4B, by provider
| Provider | Support chatbot | RAG over documents | Coding agent (one developer) |
| --- | --- | --- | --- |
| **Amazon Bedrock** | USD 5.04 | USD 10.80 | USD 79.20 |
| **DeepInfra** | USD 6.30 | USD 13.50 | USD 99.00 |
| **Featherless** | USD 6.30 | USD 13.50 | exceeds context |

For the support chatbot, the cheapest price (Amazon Bedrock, USD 5.04 a month) saves USD 1.26 against the median (USD 6.30). For the coding agent the gap is USD 19.80 a month (20% lower).

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

Amazon Bedrock has the lowest input price (USD 0.04) and the lowest output price (USD 0.08), so it is the cheapest standard price at every mix of input and output tokens, before cache discounts.

Gemma 3 4B: 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 |
| --- | --- | --- | --- |
| **Amazon Bedrock** (no cache price) | USD 0.05 cheapest | USD 0.05 cheapest | USD 0.05 cheapest |
| **DeepInfra** (no cache price) | USD 0.0625 | USD 0.0625 | USD 0.0625 |
| **Featherless** (no cache price) | USD 0.0625 | USD 0.0625 | USD 0.0625 |

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 3 providers publishes a cached-input discount for Gemma 3 4B, so cache hits do not change the ranking.

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

## What does Gemma 3 4B 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 4B:

| Content | Input per 1M characters | Cheapest provider |
| --- | --- | --- |
| English | USD 0.0087 | Amazon Bedrock |
| Arabic MSA | USD 0.014 | Amazon Bedrock |
| Hindi | USD 0.011 | Amazon Bedrock |
| Chinese | USD 0.027 | Amazon Bedrock |
| Code | USD 0.012 | Amazon Bedrock |

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 4B preloaded](https://broadrouter.com/tools/llm-api-cost-calculator/?model=gemma-3-4b-it): your traffic and cache rate, against any of 429 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 4B compare with other Google models?

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

Google models priced closest to Gemma 3 4B
| Model | Cheapest input | Cheapest output | Max context | Providers |
| --- | --- | --- | --- | --- |
| [Gemma 3 12B](https://broadrouter.com/llm-api-pricing/gemma-3-12b-it/) | USD 0.05 | USD 0.15 | 131,072 | 4 |
| [Gemma 3 27B](https://broadrouter.com/llm-api-pricing/gemma-3-27b-it/) | USD 0.08 | USD 0.16 | 198,000 | 6 |
| [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-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 | 12 |
| [Gemini 2.5 Flash-Lite](https://broadrouter.com/llm-api-pricing/gemini-2.5-flash-lite/) | USD 0.10 | USD 0.40 | — | 2 |

Priced closest from other makers: [Llama 3 8B Stheno V3.2](https://broadrouter.com/llm-api-pricing/l3-8b-stheno-v3.2/) (Sao10K, USD 0.05) · [Qwen 2.5 7B](https://broadrouter.com/llm-api-pricing/qwen2.5-7b-instruct/) (Qwen, USD 0.05) · [Mistral-Small-24B-Instruct-2501](https://broadrouter.com/llm-api-pricing/mistral-small-24b-instruct-2501/) (Mistral AI, USD 0.0575).

## Compare Gemma 3 4B with

-   [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 3 12B](https://broadrouter.com/llm-api-pricing/compare/gemma-3-12b-it-vs-gemma-3-4b-it/).

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

[All 429 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 4B API cost per token?

From USD 0.04 per 1M input tokens (USD 0.00000004 per token) and USD 0.08 per 1M output tokens (USD 0.00000008 per token) at the lowest standard prices we found. The median of 3 standard prices is USD 0.05 input and USD 0.10 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 4B?

Among the 3 providers we checked (prices read 2026-11-14 to 2026-11-15), the lowest is Amazon Bedrock, ranked on a blend of 3 input tokens to 1 output token (USD 0.05 per 1M). It also has the lowest input and the lowest output price. Batch, flex, priority and fast tiers are shown in the table but not ranked.

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

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

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

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

### What is the Gemma 3 4B 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 4B?

For 1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning, over 30 days: USD 79.20 a month at Amazon Bedrock, USD 99.00 at the median price and USD 99.00 at Featherless. [Try your own numbers](https://broadrouter.com/tools/llm-api-cost-calculator/?model=gemma-3-4b-it).

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

Yes: flex / spot from DeepInfra at USD 0.04 / USD 0.08; priority from DeepInfra at USD 0.075 / USD 0.15 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 4B free to use through an API?

No provider in our data lists a free price for Gemma 3 4B 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 4B open source, with open weights, and what is its licence?

Google publishes the weights on Hugging Face as [`google/gemma-3-4b-it`](https://huggingface.co/google/gemma-3-4b-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-4b-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 4B have?

Google's model card does not state a total that we found. [Hugging Face](https://huggingface.co/api/models/google/gemma-3-4b-it) counts about 4.3 billion (4,300,079,472) parameters in the published weight files of [`google/gemma-3-4b-it`](https://huggingface.co/google/gemma-3-4b-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 4B with the OpenAI SDK?

BroadNet does not serve Gemma 3 4B. 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-4b-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-4b-it&utm_content=page-cta) ·

**Sources**

-   [Amazon Bedrock: pricing (checked 2026-11-14)](https://aws.amazon.com/bedrock/pricing/)
-   [DeepInfra: pricing (checked 2026-11-14)](https://deepinfra.com/google/gemma-3-4b-it)
-   [Featherless: pricing (checked 2026-11-15)](https://featherless.ai/models/google/gemma-3-4b-it)
