BroadRouter

Gemma 4 31B API pricing

Updated

Among the 12 providers we checked (prices read 2026-11-14 to 2026-11-15), the lowest blended standard price for Gemma 4 31B is CoreWeave Forge at USD 0.10 per 1M input tokens and USD 0.34 per 1M output tokens. The median across 12 standard prices is USD 0.14 / USD 0.40. Each price is read from the provider's own pricing page.

Google · slug gemma-4-31b-it · up to 262,144 tokens of context · 12 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 2026-06-01 (6 archived price points, 2 list-price changes): LLM API price history.

Does Google sell Gemma 4 31B directly?

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

Gemma 4 31B model facts

Facts from Google's model card for google/gemma-4-31B-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 4 31B: facts as stated by the model card and the Hugging Face model API, with sources
FactAs statedSource
Open weightsYes. The weights are in a public Hugging Face repository (google/gemma-4-31B-it) with no access gate.Hugging Face model API, checked 2026-11-16
Quote
“"private": false, "gated": false, 2 .safetensors files listed”
LicenceApache 2.0 (apache-2.0)Google model card metadata, checked 2026-11-16
Quote
“license: apache-2.0”
Total parameters30.7BGoogle model card, checked 2026-11-16
Quote
“Property | E2B | E4B | 12B Unified | 31B Dense … Total Parameters | 2.3B effective (5.1B with embeddings) | 4.5B effective (8B with embeddings) | 11.95B | 30.7B”
Context length256K tokensGoogle model card, checked 2026-11-16
Quote
“the medium models support 256K”
Input and outputText and image in; text outGoogle model card, checked 2026-11-16
Quote
“Gemma 4 models are multimodal, handling text and image input (with audio supported on E2B, E4B, and 12B) and generating text output.”
Tool callingYesGoogle model card, checked 2026-11-16
Quote
“Function Calling – Native support for structured tool use”
First published on Hugging Face (not necessarily the release date)2026-03-11Hugging Face model API, checked 2026-11-16
Quote
“"createdAt": "2026-03-11T18:22:36.000Z"”

Gemma 4 31B 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.1× the cheapest. Free rows, the maker's serving version and other service tiers follow, tagged and unranked.

Gemma 4 31B API prices by provider
#ProviderInputCached inputOutputBlended 3:1ContextPrecisionSource
1CoreWeave Forge cheapest
google/gemma-4-31B-it
Notes and source quote
“Google Gemma 4 31B $0.10 $0.34 -”
USD 0.10not publishedUSD 0.34USD 0.16262,144not statedCoreWeave Forge page
checked 2026-11-15
re-checked 2026-11-16
2Featherless
google/gemma-4-31B-it
Notes and source quote

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

“PRICING: INPUT $0.12 / CACHED $0.1 / OUTPUT $0.36”
USD 0.12USD 0.10USD 0.36USD 0.1832,768FP8Featherless page
checked 2026-11-15
re-checked 2026-11-16
3Venice
google-gemma-4-31b-it
Notes and source quote
“| Google Gemma 4 31B Instruct | `google-gemma-4-31b-it` | $0.12 | $0.36 | $0.09 | — | Private |”
USD 0.12USD 0.09USD 0.36USD 0.18256,000FP4Venice page
checked 2026-11-15
re-checked 2026-11-16
4Amazon Bedrock
Notes and source quote

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

“Gemma 4 31B $0.14 $0.40”
USD 0.14not publishedUSD 0.40USD 0.205not statednot statedAmazon Bedrock page
checked 2026-11-14
re-checked 2026-11-16
5Crusoe Cloud
google/gemma-4-31b-it
Notes and source quote
“Gemma 4 31B text, image $0.14 $0.40 $0.14”
USD 0.14USD 0.14USD 0.40USD 0.205262,144not statedCrusoe Cloud page
checked 2026-11-15
re-checked 2026-11-16
6FriendliAI
google/gemma-4-31B-it
Notes and source quote

Context stated as "262K". No cached input price published.

“Input $0.14 / 1M tokens Output $0.4 / 1M tokens”
USD 0.14not publishedUSD 0.40USD 0.205262,144not statedFriendliAI page
checked 2026-11-15
re-checked 2026-11-16
7GMI Cloud
google/gemma-4-31b-it
Notes and source quote
“Price (per 1M tokens) Input $0.14 Output $0.40 Cache Read $0.10 Cache Write -”
USD 0.14USD 0.10USD 0.40USD 0.205262,144FP8GMI Cloud page
checked 2026-11-15
re-checked 2026-11-16
8Novita AI
google/gemma-4-31b-it
Notes and source quote
“Gemma 4 31B 256K $0.14 /Mt $0.4 /Mt”
USD 0.14not publishedUSD 0.40USD 0.205262,144not statedNovita AI page
checked 2026-11-14
re-checked 2026-11-16
9Parasail
Notes and source quote
“Gemma 4 31B $0.15 $0.40 $0.06”
USD 0.15USD 0.06USD 0.40USD 0.2125not statednot statedParasail page
checked 2026-11-14
re-checked 2026-11-16
10DeepInfra
google/gemma-4-31B-it
Notes and source quote
“$0.20 in $0.40 out / 1M tokens”
USD 0.20not publishedUSD 0.40USD 0.25262,144FP8DeepInfra page
checked 2026-11-14
re-checked 2026-11-16
11SambaNova
gemma-4-31B-it
Notes and source quote
“gemma-4-31B-it N/A 0.38 USD 1.15 USD”
USD 0.38not publishedUSD 1.15USD 0.5725not statednot statedSambaNova page
checked 2026-11-14
re-checked 2026-11-16
12SiliconFlow
Notes and source quote

Context shown as 262K.

“gemma-4-31B-it 262K $0.75 $0.25 $1.0”
USD 0.75USD 0.25USD 1USD 0.8125262,144not statedSiliconFlow page
checked 2026-11-14
re-checked 2026-11-16
—DeepInfra flex / spot
google/gemma-4-31B-it
Notes and source quote

Flex service tier (0.8× standard).

“Flex (0.8×) $0.16 $0.32”
USD 0.16not publishedUSD 0.32USD 0.20262,144FP8DeepInfra page
checked 2026-11-14
re-checked 2026-11-16
—DeepInfra priority
google/gemma-4-31B-it
Notes and source quote

Priority service tier (1.5× standard).

“Priority (1.5×) $0.30 $0.60”
USD 0.30not publishedUSD 0.60USD 0.375262,144FP8DeepInfra 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 4 31B 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 4 31B, by provider
ProviderSupport chatbotRAG over documentsCoding agent (one developer)
CoreWeave ForgeUSD 15.12USD 29.10USD 210.60
FeatherlessUSD 16.20USD 32.76exceeds context
VeniceUSD 15.66USD 32.04USD 202.50
Amazon BedrockUSD 19.80USD 39.60USD 288.00
Crusoe CloudUSD 19.80USD 39.60USD 288.00
FriendliAIUSD 19.80USD 39.60USD 288.00
GMI CloudUSD 17.64USD 36.72USD 226.80
Novita AIUSD 19.80USD 39.60USD 288.00
ParasailUSD 15.84USD 35.52USD 168.30
DeepInfraUSD 25.20USD 54.00USD 396.00
SambaNovaUSD 54.90USD 108.45USD 787.50
SiliconFlowUSD 58.50USD 159.00USD 675.00

For the support chatbot, the cheapest price (CoreWeave Forge, USD 15.12 a month) saves USD 4.68 against the median (USD 19.80). For the coding agent the gap is USD 119.70 a month (42% lower). The winner changes with the workload: Parasail wins the cache-heavy agent, CoreWeave Forge the chatbot.

Which Gemma 4 31B provider is cheapest for your traffic?

CoreWeave Forge has the lowest input price (USD 0.10) and the lowest output price (USD 0.34), so it is the cheapest standard price at every mix of input and output tokens, before cache discounts.

Gemma 4 31B: price per 1M tokens at 3 input to 1 output, by share of input served from cache
ProviderNo cache hits50% cached90% cached
CoreWeave Forge (no cache price)USD 0.16 cheapestUSD 0.16 cheapestUSD 0.16
FeatherlessUSD 0.18USD 0.1725USD 0.1665
VeniceUSD 0.18USD 0.1688USD 0.1598
Amazon Bedrock (no cache price)USD 0.205USD 0.205USD 0.205
Crusoe CloudUSD 0.205USD 0.205USD 0.205
FriendliAI (no cache price)USD 0.205USD 0.205USD 0.205
ParasailUSD 0.2125USD 0.1788USD 0.1517 cheapest

USD per 1M tokens, 3 input tokens to 1 output token, each provider's cheapest standard row; 5 dearer providers are in the price table above. 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.

5 of 12 providers publish a cached-input price below the input price: Featherless (17% off), Venice (25% off), GMI Cloud (29% off), Parasail (60% off), SiliconFlow (67% off). CoreWeave Forge, Amazon Bedrock, FriendliAI, Novita AI, DeepInfra and SambaNova publish none, so cached tokens there bill at the input price. Crusoe Cloud lists a cached price equal to its input price.

Context windows differ: 262,144 tokens at CoreWeave Forge, Crusoe Cloud, FriendliAI and 4 more; 256,000 tokens at Venice; 32,768 tokens at Featherless. Amazon Bedrock, Parasail and SambaNova do not state one. The cheapest row is not always the one that fits a long prompt.

What does Gemma 4 31B cost in other languages?

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

ContentInput per 1M charactersCheapest provider
EnglishUSD 0.022CoreWeave Forge
Arabic MSAUSD 0.034CoreWeave Forge
HindiUSD 0.027CoreWeave Forge
ChineseUSD 0.067CoreWeave Forge
CodeUSD 0.029CoreWeave Forge

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.

Published benchmark results

BroadNet did not run these benchmarks; results are as published by the Google model card and Epoch AI and may use different settings. BroadRouter is BroadNet's site.

Published benchmark results for Gemma 4 31B, with sources
BenchmarkResultSetting or noteSource
MMLU Pro85.2%Instruction-tuned modelGoogle model card, checked 2026-11-16
GPQA Diamond84.3%Instruction-tuned modelGoogle model card, checked 2026-11-16
LiveCodeBench v680.0%Instruction-tuned modelGoogle model card, checked 2026-11-16
AIME 2026 no tools89.2%Instruction-tuned modelGoogle model card, checked 2026-11-16
MMMU Pro76.9%Instruction-tuned modelGoogle model card, checked 2026-11-16
GPQA Diamond0.758Minimal reasoning setting; Epoch run gemma-4-31b-it_minimal, mean score on a 0 to 1 scaleEpoch AI, checked 2026-11-16

Epoch AI rows: Epoch AI, Capabilities & benchmarking, licensed CC BY 4.0, shown as the mean score on a 0 to 1 scale, rounded to three decimals (hover a value for the exact figure in Epoch's data file).

Estimate your own bill

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

Google models priced closest to Gemma 4 31B
ModelCheapest inputCheapest outputMax contextProviders
gemma-4-31B-it-turboUSD 0.09USD 0.34262,1442
Gemini 2.5 Flash-LiteUSD 0.10USD 0.40—2
Gemma 4 26B A4BUSD 0.07USD 0.34262,14411
Gemma 3 27BUSD 0.08USD 0.16198,0006
Gemma 3 12BUSD 0.05USD 0.15131,0724
Gemma 3 4BUSD 0.04USD 0.08131,0723

Priced closest from other makers: Llama 3.2 11B Vision Instruct (Meta, USD 0.16) · NVIDIA Nemotron 3 Super 120B A12B (NVIDIA, USD 0.1563) · Llama 3.3 70B (Meta, USD 0.155).

Compare Gemma 4 31B with

Also compared: vs Gemma 3 27B · vs Llama 4 Scout 17B 16E Instruct · vs Gemma 4 26B A4B · vs Qwen3.8 27B · vs DeepSeek V4.1 Flash.

Every Gemma 4 31B 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 4 31B API cost per token?

From USD 0.10 per 1M input tokens (USD 0.0000001 per token) and USD 0.34 per 1M output tokens (USD 0.00000034 per token) at the lowest standard prices we found. The median of 12 standard prices is USD 0.14 input and USD 0.40 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 4 31B?

Among the 12 providers we checked (prices read 2026-11-14 to 2026-11-15), the lowest is CoreWeave Forge, ranked on a blend of 3 input tokens to 1 output token (USD 0.16 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 4 31B on its own API?

Google publishes no price for Gemma 4 31B on its own API that we could find, so there is no maker price to compare. The lowest-priced host we checked is CoreWeave Forge at USD 0.10 / USD 0.34 per 1M tokens.

Does Gemma 4 31B have cached input pricing?

6 of 12 standard prices include one. The lowest is USD 0.06 per 1M at Parasail; the median is USD 0.10. Providers without one bill cached input at the input price. What cached input means.

What is the Gemma 4 31B context window?

Up to 262,144 tokens. 2 standard prices come with less, down to 32,768 tokens (Featherless and Venice). 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 4 31B?

For 1,500 requests a day, 40,000 input tokens (85% cached), 2,000 output incl. reasoning, over 30 days: USD 168.30 a month at Parasail, USD 288.00 at the median price and USD 787.50 at SambaNova. Try your own numbers.

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

Yes: flex / spot from DeepInfra at USD 0.16 / USD 0.32; priority from DeepInfra at USD 0.30 / USD 0.60 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 4 31B free to use through an API?

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

Google publishes the weights on Hugging Face as google/gemma-4-31B-it, in a public repository with no access gate. The licence, as the Google model card metadata states it: Apache 2.0 (apache-2.0). 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 4 31B have?

Total parameters, as the Google model card states them: 30.7B. (checked 2026-11-16; BroadNet did not verify these figures.)

Does Gemma 4 31B support tool calling?

Yes, according to the Google model card: “Function Calling – Native support for structured tool use” (checked 2026-11-16). Whether the tools parameter works through an API also depends on the provider serving it, so check that provider's docs. BroadNet did not test it.

How do I call Gemma 4 31B with the OpenAI SDK?

BroadNet does not serve Gemma 4 31B. 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-4-31B-it). Each provider page quotes the provider's docs with a check date.

How does Gemma 4 31B score on benchmarks?

As published, the Google model card reports 85.2% on MMLU Pro and 84.3% on GPQA Diamond; Epoch AI measured 0.758 on GPQA Diamond in its own run, as a mean score on a 0 to 1 scale (checked 2026-11-16). BroadNet did not run these benchmarks, and sources may use different settings, so the figures are not directly comparable. Every published result we found, with its setting and source.

Read as MarkdownAsk ChatGPTAsk ClaudeAsk Perplexity