BroadRouter

Gemma 3 4B API pricing

Updated

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 (every provider and model, with sources, CSV or JSON). How it compares with the market: the LLM API price index. Archived list prices since 2025-07-09 (17 archived price points, 2 list-price changes): LLM API price history.

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 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
FactAs statedSource
Open weightsYes, 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, checked 2026-11-16
Quote
“"private": false, "gated": "manual", 2 .safetensors files listed”
LicencegemmaGoogle model card metadata, 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, checked 2026-11-16
Quote
“"safetensors": { "total": 4300079472 }”
Context length128K tokens input; 8,192 tokens outputGoogle model card, 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 outputText and images in; text outGoogle model card, 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 callingNot found on Google's model card when we read itchecked 2026-11-16
First published on Hugging Face (not necessarily the release date)2025-02-20Hugging Face model API, 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
#ProviderInputCached inputOutputBlended 3:1ContextPrecisionSource
1Amazon Bedrock cheapest
Notes and source quote

Table headed "Regions: US East (N. Virginia), US East (Ohio) and US West (Oregon)".

“Gemma 3 4B $ 0.04 $ 0.08”
USD 0.04not publishedUSD 0.08USD 0.05not statednot statedAmazon Bedrock page
checked 2026-11-14
re-checked 2026-11-16
2DeepInfra
google/gemma-3-4b-it
Notes and source quote
“$0.05 in $0.10 out / 1M tokens”
USD 0.05not publishedUSD 0.10USD 0.0625131,072BFLOAT16DeepInfra page
checked 2026-11-14
re-checked 2026-11-16
3Featherless
google/gemma-3-4b-it
Notes and source quote

Developer plan (per-token billing, from 50 USD a month in credits). No cached price published.

“PRICING: INPUT $0.05 / OUTPUT $0.1”
USD 0.05not publishedUSD 0.10USD 0.062532,768BF16Featherless page
checked 2026-11-15
re-checked 2026-11-16
—DeepInfra flex / spot
google/gemma-3-4b-it
Notes and source quote

Flex service tier (0.8× standard).

“Flex (0.8×) $0.04 $0.08”
USD 0.04not publishedUSD 0.08USD 0.05131,072BFLOAT16DeepInfra page
checked 2026-11-14
re-checked 2026-11-16
—DeepInfra priority
google/gemma-3-4b-it
Notes and source quote

Priority service tier (1.5× standard).

“Priority (1.5×) $0.075 $0.15”
USD 0.075not publishedUSD 0.15USD 0.09375131,072BFLOAT16DeepInfra page
checked 2026-11-14
re-checked 2026-11-16

Report a wrong price or number (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. 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
ProviderSupport chatbotRAG over documentsCoding agent (one developer)
Amazon BedrockUSD 5.04USD 10.80USD 79.20
DeepInfraUSD 6.30USD 13.50USD 99.00
FeatherlessUSD 6.30USD 13.50exceeds 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
ProviderNo cache hits50% cached90% cached
Amazon Bedrock (no cache price)USD 0.05 cheapestUSD 0.05 cheapestUSD 0.05 cheapest
DeepInfra (no cache price)USD 0.0625USD 0.0625USD 0.0625
Featherless (no cache price)USD 0.0625USD 0.0625USD 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:

ContentInput per 1M charactersCheapest provider
EnglishUSD 0.0087Amazon Bedrock
Arabic MSAUSD 0.014Amazon Bedrock
HindiUSD 0.011Amazon Bedrock
ChineseUSD 0.027Amazon Bedrock
CodeUSD 0.012Amazon Bedrock

From BroadRouter's real cost by language dataset, which covers 15 languages and content types for every model we could match to a measured tokenizer.

Estimate your own bill

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
ModelCheapest inputCheapest outputMax contextProviders
Gemma 3 12BUSD 0.05USD 0.15131,0724
Gemma 3 27BUSD 0.08USD 0.16198,0006
Gemma 4 26B A4BUSD 0.07USD 0.34262,14411
gemma-4-31B-it-turboUSD 0.09USD 0.34262,1442
Gemma 4 31BUSD 0.10USD 0.34262,14412
Gemini 2.5 Flash-LiteUSD 0.10USD 0.40—2

Priced closest from other makers: Llama 3 8B Stheno V3.2 (Sao10K, USD 0.05) · Qwen 2.5 7B (Qwen, USD 0.05) · Mistral-Small-24B-Instruct-2501 (Mistral AI, USD 0.0575).

Compare Gemma 3 4B with

Also compared: vs Gemma 3 12B.

Every Gemma 3 4B price comparison · All model-vs-model price comparisons

All 428 models: API prices compared · Cheapest LLM APIs right now · LLM API price index (open data) · Download all prices (CSV, JSON) · Price change log

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.

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.

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 (checked 2026-11-14) lists general offers that do not name a model; all free LLM API models 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, 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 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 counts about 4.3 billion (4,300,079,472) parameters in the published weight files of 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://api.deepinfra.com/v1/openai, model google/gemma-3-4b-it). Each provider page quotes the provider's docs with a check date.

Read as MarkdownAsk ChatGPTAsk ClaudeAsk Perplexity