Model index · Text · text generation · reasoning · open weights · Google · released 2026-04-02

Gemma 4 31B pricing

Served by 21 providers from $0.1475 to $1.11 per 1M tokens on the standard tier — a 7.6× gap for identical weights.

A reasoning model — the headline price is not the whole bill

This model thinks before it answers, and those thinking tokens are billed at the output rate while never appearing in the response. A request can therefore cost several times what the per-1M figure suggests, and the multiplier depends on your prompts rather than on anything we can publish. Compare it against other reasoning models — the alternatives below are ordered to put those first.

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, native function...

Google · 31.27B parameters · apache-2.0 · first published 2026-04-02 · Text model · text generation · 262k context · description as published by the source, not written by us

Open weights: google/gemma-4-31B-it · 31.27B parameters counted from the weight files · licence apache-2.0 · 9.9M downloads in the last 30 days . Parameter count and licence come from the public weights registry, not from a seller — and the download figure exists only for models published this way, so it is not a market-wide popularity measure.

$0.1475

Cheapest standard /1M — OpenInference

262k

Native context window

25

Providers serving it

Quality not measured yet

Quality not measured yet

We measure models on request rather than pre-scoring the whole catalog, so this one has no score yet. Absence of a score is not a low score.

At 1M requests/month (1500 in / 500 out tokens), moving from Cerebras to OpenInference saves about $1,935/month.

Illustrative traffic shape, stated so you can check it against your own. Same weights both sides — but confirm quantisation and context below before switching.

Every provider and service tier

Standard on-demand rows first, cheapest of each group first. Tiers are not interchangeable — see the note below the table.

Provider In /1M Out /1M Blended /1M Tier Region Source
OpenInference cheapest standard $0.0800 $0.3500 $0.1475 standard third_party
DeepInfra $0.0900 $0.3400 $0.1525 standard provider_api
CoreWeave $0.1000 $0.3400 $0.1600 standard third_party
OpenRouter (default route) *
resells other hosts
$0.1000 $0.3400 $0.1600 standard provider_api
Venice $0.1200 $0.3600 $0.1800 standard third_party
Chutes $0.1200 $0.3700 $0.1825 standard third_party
DeepInfra $0.1300 $0.3800 $0.1925 standard third_party
DeepInfra $0.1300 $0.3800 $0.1925 standard provider_api
SiliconFlow $0.1300 $0.4000 $0.1975 standard third_party
Novita $0.1400 $0.4000 $0.2050 standard third_party
Friendli $0.1400 $0.4000 $0.2050 standard third_party
Morph $0.1400 $0.4000 $0.2050 standard third_party
Crusoe $0.1400 $0.4000 $0.2050 standard third_party
Novita $0.1400 $0.4000 $0.2050 standard provider_api
Parasail $0.1500 $0.4000 $0.2125 standard third_party
Phala $0.1500 $0.4600 $0.2275 standard third_party
ModelRun $0.2500 $0.6500 $0.3500 standard third_party
DeepInfra $0.2700 $0.7600 $0.3925 standard provider_api
Together $0.3900 $0.9700 $0.5350 standard third_party
SambaNova $0.3800 $1.15 $0.5725 standard third_party
Cerebras $0.9900 $1.49 $1.11 standard third_party
DeepInfra $0.0720 $0.2720 $0.1220 flex provider_api
DeepInfra $0.1040 $0.3040 $0.1540 flex provider_api
DeepInfra $0.1350 $0.5100 $0.2288 priority provider_api
DeepInfra $0.1950 $0.5700 $0.2887 priority provider_api

Not every row is the same product

This table mixes service tiers, and they are not interchangeable. Rows marked standard are ordinary on-demand requests. The others trade delivery for price:

  • flex — queued at lower priority, so latency is higher and requests can be deferred under load
  • priority — reserved capacity for tighter, more predictable latency

Every comparison elsewhere on this site uses the standard tier, so a model is never shown at a queued rate beside another model's on-demand rate.

Cheaper if your workload can wait: flex at $0.1220 per 1M on DeepInfra — 17% below standard , queued at lower priority, so latency is higher and requests can be deferred under load.

* OpenRouter chooses a host for each request, and the figure above is what its default choice costs — not a fixed rate for this model. Selecting a specific host through the same account costs whatever that host charges, which is why this row can sit above or below the hosts listed beside it. Token rates are passed through from the underlying provider with no markup, so the per-1M price above is what that host charges directly — OpenRouter's own charge sits on funding instead: 5.5% (min $0.80) by Stripe or 5% by Coinbase to buy credits, 5% of the equivalent spend if you bring your own provider key. So budget about 5% above the rate shown unless you already hold credit. Fee schedule.

Compare Gemma 4 31B with alternatives

One model per vendor, ordered by how prominent the vendor is and how many independent providers serve the model — hosts only carry what customers ask for, so that is a real demand signal. This is not traffic or popularity data, which we do not have. Every alternative below does the same job — text generation — because a price comparison between a generator and, say, an upscaler is arithmetic rather than advice. Prices on both sides are standard on-demand rates, so the comparison is like for like — a discounted batch or flex rate is never shown against another model’s standard rate.

AlternativeVendor $/1M vs Gemma 4 31B QualityKindContextHosts
DeepSeek V3.2 DeepSeek $0.2413
StreamLake
64% dearer 60/100 reasoning
open weights
164k 16
Claude Haiku 4.5 Anthropic $2.00
Anthropic
1256% dearer 60/100 reasoning 200k 8
Qwen3 VL 30B A3B Thinking Alibaba $0.4650
DeepInfra
215% dearer 80/100 reasoning
open weights
262k 3
Kimi K2.5 MoonshotAI $0.7875
DigitalOcean
434% dearer 75/100 reasoning
open weights
262k 14
MiniMax M2.5 Minimax $0.3900
OpenRouter (default route)
164% dearer 0/100 reasoning
open weights
205k 11
MiMo-V2.5 Xiaomi $0.1750
Xiaomi
19% dearer 100/100 reasoning
open weights
1.05M 5
Nemotron 3 Super NVIDIA $0.1638
OpenRouter (default route)
11% dearer not measured reasoning 1M 4
gpt-oss-20b OpenAI $0.0550
OpenRouter (default route)
63% cheaper not measured reasoning
open weights
131k 16

Prices are the cheapest host for each model, blended at a 3:1 input:output ratio. "Quality" is our own probe suite where we have run it — see what it measures. A cheaper alternative is only a real saving if it also passes on the capability your workload needs.

1 of these alternatives cost less than Gemma 4 31B — the cheapest being gpt-oss-20b at $0.0550 per 1M tokens blended (63% cheaper).

Cheaper is not automatically better: check the quality column, and confirm the context window and capabilities your workload depends on before switching.

Before you switch

Identical weights do not guarantee identical output. Check that the cheaper host serves the model at full precision rather than a quantised copy, that its context window matches what you need, and that its rate limits carry your peak traffic. A cheaper host that cannot take your throughput is not cheaper — it is an outage.

Move to OpenInference without a rewrite

VernaOne fronts every provider on this page with one API, so switching host is a config change — with automatic fallback if quality or latency regresses.

Try VernaOne free →

Frequently asked

How much does Gemma 4 31B cost?

The cheapest standard-tier provider is OpenInference at $0.1475 per 1M tokens blended (3:1 input:output). A flex tier is available at $0.1220, 17% less, if the work can be queued. The dearest is Cerebras at $1.11 — a 7.6× difference for the same weights. Prices change often; verify with the provider before budgeting.

Which provider is best for Gemma 4 31B?

Cheapest is not automatically best. Compare quantisation (a lossy copy of the weights changes output), the context window each host actually serves, and rate limits. Where a provider serves less context than the model's native window we flag it in the table above.

Can I switch providers for Gemma 4 31B without changing code?

Yes, if you route through an abstraction. VernaOne exposes one API across every provider listed here, so switching host is a config change and you keep automatic fallback if the new one degrades.

← All models · Generated catalog of AI models and every provider that serves them, with normalised prices in USD per 1,000,000 tokens. Blended prices assume a 3:1 input:output ratio.