Gemma 4 31B
google/gemma-4-31b-it Compare →- MedianThe median blended price among comparable offers: one price per provider (its cheapest route), standard tier, current prices only. Priority tiers and prices converted from points are not counted.
- $0.205
- Most expensiveThe highest blended price among comparable offers: one price per provider (its cheapest route), standard tier, current prices only. Priority tiers and prices converted from points are not counted.
- $0.922
- Offers
- 85
- Providers
- 45
Cheapest right now
Consensusprotocol
via LLM Gateway$0.138 blended / 1M tokens
No change7D- in
- $0.10
- out
- $0.25
- Cached input
- $0.01
Fee 5%: LLM Gateway adds a 5% fee on credit usage, plus 1.5% for cards issued outside the US (read on llmgateway.io/pricing on Oct 30). Offers are ranked with the 5% included.
Gemma 4 31B costs from $0.138 per million tokens (at a 3:1 input:output mix): the cheapest of 30 comparable offers, at Consensusprotocol, checked on ; 85 offers are listed.
Listed offers, by price
Comparable offersOther offersSolid steps are comparable offers; dashed steps are the other offers, which are not counted in cheapest, median or most expensive.Offers not counted in cheapest, median or most expensive (55)
- $0.125 · Arkanecloud via Eden AI · cannot be designated the cheapest
- $0.15 · FastRouter via FastRouter · cannot be designated the cheapest
- $0.15 · Ranoai via LLM Gateway · cannot be designated the cheapest
- $0.153 · DeepInfra via Eden AI · cannot be designated the cheapest
- $0.153 · Martian via Martian · cannot be designated the cheapest
- $0.16 · CoreWeave via Kilo Gateway · cannot be designated the cheapest
- $0.16 · Glama via Glama · cannot be designated the cheapest
- $0.18 · Venice via Kilo Gateway · cannot be designated the cheapest
- $0.18 · Venice via OpenRouter · another route of the same provider
- $0.183 · Chutes via Kilo Gateway · cannot be designated the cheapest
- $0.193 · OrcaRouter via OrcaRouter · cannot be designated the cheapest
- $0.205 · Crusoe via Kilo Gateway · cannot be designated the cheapest
- $0.205 · DekaLLM via Kilo Gateway · cannot be designated the cheapest
- $0.205 · FlexAI via Eden AI · cannot be designated the cheapest
- $0.205 · FlexAI via Eden AI · cannot be designated the cheapest
- $0.205 · Friendli via Kilo Gateway · cannot be designated the cheapest
- $0.205 · Friendli via Vercel AI Gateway · another route of the same provider
- $0.205 · Novita via Hugging Face · another route of the same provider
- $0.205 · Novita via Kilo Gateway · cannot be designated the cheapest
- $0.205 · Novita via LLM API · cannot be designated the cheapest
- $0.205 · Novita via Vercel AI Gateway · another route of the same provider
- $0.205 · Abacus RouteLLM via Abacus RouteLLM · cannot be designated the cheapest
- $0.205 · Novita via LLM Gateway · another route of the same provider
- $0.205 · Friendli via OpenRouter · another route of the same provider
- $0.205 · Novita via OpenRouter · another route of the same provider
- $0.213 · Parasail via Kilo Gateway · cannot be designated the cheapest
- $0.213 · Parasail via OpenRouter · another route of the same provider
- $0.216 · Greenference via Eden AI · cannot be designated the cheapest
- $0.225 · FPT AI Factory · cannot be designated the cheapest
- $0.229 · DeepInfra · priority tier
- $0.229 · DeepInfra via Kilo Gateway · cannot be designated the cheapest
- $0.229 · DeepInfra via OpenRouter · another route of the same provider
- $0.23 · ShengSuanYun via ShengSuanYun · cannot be designated the cheapest
- $0.25 · DeepInfra · another route of the same provider
- $0.25 · DeepInfra via Eden AI · cannot be designated the cheapest
- $0.25 · DeepInfra via Hugging Face · another route of the same provider
- $0.25 · DeepInfra via Kilo Gateway · cannot be designated the cheapest
- $0.25 · Nous Portal via Nous Portal · cannot be designated the cheapest
- $0.25 · DeepInfra via LLM Gateway · another route of the same provider
- $0.25 · DeepInfra via OpenRouter · another route of the same provider
- $0.265 · Cortecs via Cortecs · cannot be designated the cheapest
- $0.275 · ai& · cannot be designated the cheapest
- $0.279 · Infomaniak via Eden AI · cannot be designated the cheapest
- $0.375 · DeepInfra · priority tier
- $0.375 · DeepInfra via Kilo Gateway · cannot be designated the cheapest
- $0.375 · DeepInfra via OpenRouter · priority tier
- $0.405 · io.net · cannot be designated the cheapest
- $0.45 · Sail Research via Requesty · another route of the same provider
- $0.535 · Together via LLM Gateway · cannot be designated the cheapest
- $0.573 · Io Net via Kilo Gateway · cannot be designated the cheapest
- $0.573 · SambaNova via Kilo Gateway · cannot be designated the cheapest
- $0.573 · SambaNova via OpenRouter · another route of the same provider
- $0.813 · ModelRun via Kilo Gateway · cannot be designated the cheapest
- $0.813 · SiliconFlow via Kilo Gateway · cannot be designated the cheapest
- $1.12 · Cerebras via LLM Gateway · cannot be designated the cheapest
Cheapest that confirms no training on your prompts. The provider's published policy: prompts are not used for training.
$0.153 blended / 1M tokens
- in
- $0.09
- out
- $0.34
- Cached input
- $0.05
Price historyThe cheapest offer each day, against the lab's official list price when it publishes one. Each day at 00:00 UTC, the offer the API would have selected as the cheapest, with the same exclusions as /cheapest. Blended price, promotions included.
| Day | Cheapest offer | Official list price |
|---|---|---|
| 2026-10-25 | $0.138, Consensusprotocol | – |
| 2026-10-26 | $0.138, Consensusprotocol | – |
| 2026-10-27 | $0.138, Consensusprotocol | – |
| 2026-10-28 | $0.138, Consensusprotocol | – |
| 2026-10-29 | $0.138, Consensusprotocol | – |
| 2026-10-30 | $0.138, Consensusprotocol | – |
| 2026-10-31 | $0.138, Consensusprotocol | – |
| Day | Cheapest offer | Official list price |
|---|---|---|
| 2026-10-02 | $0.138, Consensusprotocol | – |
| 2026-10-03 | $0.064, Greenference | – |
| 2026-10-04 | $0.138, Consensusprotocol | – |
| 2026-10-05 | $0.138, Consensusprotocol | – |
| 2026-10-06 | $0.076, Greenference | – |
| 2026-10-07 | $0.138, Consensusprotocol | – |
| 2026-10-08 | $0.076, Greenference | – |
| 2026-10-09 | $0.138, Consensusprotocol | – |
| 2026-10-10 | $0.138, Consensusprotocol | – |
| 2026-10-11 | $0.138, Consensusprotocol | – |
| 2026-10-12 | $0.138, Consensusprotocol | – |
| 2026-10-13 | $0.138, Consensusprotocol | – |
| 2026-10-14 | $0.138, Consensusprotocol | – |
| 2026-10-15 | $0.138, Consensusprotocol | – |
| 2026-10-16 | $0.138, Consensusprotocol | – |
| 2026-10-17 | $0.138, Consensusprotocol | – |
| 2026-10-18 | $0.138, Consensusprotocol | – |
| 2026-10-19 | $0.138, Consensusprotocol | – |
| 2026-10-20 | $0.138, Consensusprotocol | – |
| 2026-10-21 | $0.138, Consensusprotocol | – |
| 2026-10-22 | $0.138, Consensusprotocol | – |
| 2026-10-23 | $0.138, Consensusprotocol | – |
| 2026-10-24 | $0.138, Consensusprotocol | – |
| 2026-10-25 | $0.138, Consensusprotocol | – |
| 2026-10-26 | $0.138, Consensusprotocol | – |
| 2026-10-27 | $0.138, Consensusprotocol | – |
| 2026-10-28 | $0.138, Consensusprotocol | – |
| 2026-10-29 | $0.138, Consensusprotocol | – |
| 2026-10-30 | $0.138, Consensusprotocol | – |
| 2026-10-31 | $0.138, Consensusprotocol | – |
| Day | Cheapest offer | Official list price |
|---|---|---|
| 2026-10-01 | $0.128, Lilac | – |
| 2026-10-02 | $0.138, Consensusprotocol | – |
| 2026-10-03 | $0.064, Greenference | – |
| 2026-10-04 | $0.138, Consensusprotocol | – |
| 2026-10-05 | $0.138, Consensusprotocol | – |
| 2026-10-06 | $0.076, Greenference | – |
| 2026-10-07 | $0.138, Consensusprotocol | – |
| 2026-10-08 | $0.076, Greenference | – |
| 2026-10-09 | $0.138, Consensusprotocol | – |
| 2026-10-10 | $0.138, Consensusprotocol | – |
| 2026-10-11 | $0.138, Consensusprotocol | – |
| 2026-10-12 | $0.138, Consensusprotocol | – |
| 2026-10-13 | $0.138, Consensusprotocol | – |
| 2026-10-14 | $0.138, Consensusprotocol | – |
| 2026-10-15 | $0.138, Consensusprotocol | – |
| 2026-10-16 | $0.138, Consensusprotocol | – |
| 2026-10-17 | $0.138, Consensusprotocol | – |
| 2026-10-18 | $0.138, Consensusprotocol | – |
| 2026-10-19 | $0.138, Consensusprotocol | – |
| 2026-10-20 | $0.138, Consensusprotocol | – |
| 2026-10-21 | $0.138, Consensusprotocol | – |
| 2026-10-22 | $0.138, Consensusprotocol | – |
| 2026-10-23 | $0.138, Consensusprotocol | – |
| 2026-10-24 | $0.138, Consensusprotocol | – |
| 2026-10-25 | $0.138, Consensusprotocol | – |
| 2026-10-26 | $0.138, Consensusprotocol | – |
| 2026-10-27 | $0.138, Consensusprotocol | – |
| 2026-10-28 | $0.138, Consensusprotocol | – |
| 2026-10-29 | $0.138, Consensusprotocol | – |
| 2026-10-30 | $0.138, Consensusprotocol | – |
| 2026-10-31 | $0.138, Consensusprotocol | – |
Cheapest offer
| Rank | Provider · viaYou buy access through an aggregator: one account and one API that forward your requests to other providers. "Via" names the aggregator; the price is the one it charges you. When "via" says "hosted API", no aggregator is involved: the model belongs to a lab and another provider sells it. | Input $/1M | Output $/1M | Blended $/1MA single price that mixes input and output: 3 input tokens for 1 output token, per million tokens. It makes offers easy to rank; your real cost depends on your own mix. | PrecisionHow finely the model's numbers are stored on the provider's servers. Lower precision (fp8, fp4) is cheaper to run and can slightly change answer quality; "unknown" means the provider doesn't say. | ContextThe maximum amount of text, counted in tokens, the model can take in and write in a single request. Past this limit, the request is refused or cut. | ConditionsWhat a provider says about how it handles your data and who can sign up: training on prompts, processing region, sign-up requirements. Each comes from the provider's published documents; when nothing is published, it stays unknown. | Signals | Offer |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 0.10 | 0.20 | 0.125 | – | 131k | Unverified. No public page for this offer: listed, not designated cheapest | |||
| 2 | 0.10 | 0.25 | 0.138 | – | – | Fee 5%: LLM Gateway adds a 5% fee on credit usage, plus 1.5% for cards issued outside the US (read on llmgateway.io/pricing on Oct 30). Offers are ranked with the 5% included. | |||
| 3 | 0.10 | 0.30 | 0.15 | – | 262k | Unverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapest | |||
| 4 | 0.10 | 0.30 | 0.15 | – | – | Fee 5%: LLM Gateway adds a 5% fee on credit usage, plus 1.5% for cards issued outside the US (read on llmgateway.io/pricing on Oct 30). Offers are ranked with the 5% included. | |||
| 5 | 0.102 | 0.297 | 0.151 | – | – | Fee 5%: LLM Gateway adds a 5% fee on credit usage, plus 1.5% for cards issued outside the US (read on llmgateway.io/pricing on Oct 30). Offers are ranked with the 5% included. | |||
| 6 | 0.09 | 0.34 | 0.153 | fp4 | 262k | United States | |||
| 7 | 0.09 | 0.34 | 0.153 | fp4 | 262k | United States | Unverified. No public page for this offer: listed, not designated cheapest | ||
| 8 | 0.09 | 0.34 | 0.153 | – | – | worldwide | Unverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapest | ||
| 9 | 0.10 | 0.34 | 0.16 | fp4 | 262k | Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest | |||
| 10 | 0.10 | 0.34 | 0.16 | – | 262k | Unverified. No public page for this offer: listed, not designated cheapest | |||
| 11 | 0.10 | 0.34 | 0.16 | – | 262k | Thinking: Thinking: a mode of the model, not its standard offer. Never designated cheapest while a standard offer exists | |||
| 12 | 0.10 | 0.34 | 0.16 | fp4 | 262k | Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 30). Offers are ranked with this fee included. | |||
| 13 | 0.12 | 0.36 | 0.18 | fp4 | 256k | ||||
| 14 | 0.12 | 0.36 | 0.18 | – | 33k | ||||
| 15 | 0.12 | 0.36 | 0.18 | fp4 | 256k | Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest | |||
| 16 | 0.12 | 0.36 | 0.18 | fp4 | 256k | Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 30). Offers are ranked with this fee included. | |||
| 17 | 0.12 | 0.37 | 0.183 | fp4 | 131k | Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest | |||
| 18 | 0.12 | 0.37 | 0.183 | fp4 | 131k | Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 30). Offers are ranked with this fee included. | |||
| 19 | 0.13 | 0.38 | 0.193 | – | – | Unverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapest | |||
| 20 | 0.13 | 0.38 | 0.193 | fp8 | 262k | United States | Fee 5%: Requesty adds a 5% markup (read on requesty.ai/pricing on Oct 30). Offers are ranked with this fee included. | ||
| 21 | 0.14 | 0.40 | 0.205 | – | 262k | ||||
| 22 | 0.14 | 0.40 | 0.205 | – | 262k | ||||
| 23 | 0.14 | 0.40 | 0.205 | bf16 | 262k | ||||
| 24 | 0.14 | 0.40 | 0.205 | bf16 | 262k | Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest | |||
| 25 | 0.14 | 0.40 | 0.205 | – | 262k | Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest |
No training on promptsPrompts may be used for trainingTraining terms not published
backend not named. The router bills this price itself without naming who serves the model.
-
$0.125Arkanecloud
Eden AI
- in
- $0.10
- out
- $0.20
- Precision
- –
- Context
- 131k
Prompts may be used for trainingUnverified. No public page for this offer: listed, not designated cheapest
Seller's site: Eden AI (opens in a new tab)No public price page for this model -
$0.138Consensusprotocol
LLM Gateway
- in
- $0.10
- out
- $0.25
- Precision
- –
- Context
- –
Training terms not publishedFee 5%: LLM Gateway adds a 5% fee on credit usage, plus 1.5% for cards issued outside the US (read on llmgateway.io/pricing on Oct 30). Offers are ranked with the 5% included.
Go to offer Go to offer at LLM Gateway (opens in a new tab)via LLM Gateway -
$0.15FastRouter
FastRouter
- in
- $0.10
- out
- $0.30
- Precision
- –
- Context
- 262k
Training terms not publishedUnverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapestbackend not named: The router bills this price itself without naming who serves the model.
-
$0.15Ranoai
LLM Gateway
- in
- $0.10
- out
- $0.30
- Precision
- –
- Context
- –
Training terms not publishedFee 5%: LLM Gateway adds a 5% fee on credit usage, plus 1.5% for cards issued outside the US (read on llmgateway.io/pricing on Oct 30). Offers are ranked with the 5% included.
Go to offer Go to offer at LLM Gateway (opens in a new tab)via LLM Gateway -
$0.151Runware
LLM Gateway
- in
- $0.102
- out
- $0.297
- Precision
- –
- Context
- –
Training terms not publishedFee 5%: LLM Gateway adds a 5% fee on credit usage, plus 1.5% for cards issued outside the US (read on llmgateway.io/pricing on Oct 30). Offers are ranked with the 5% included.
Go to offer Go to offer at LLM Gateway (opens in a new tab)via LLM Gateway -
$0.153DeepInfra
direct
- in
- $0.09
- out
- $0.34
- Precision
- fp4
- Context
- 262k
No training on promptsUnited States
-
$0.153DeepInfra
Eden AI
- in
- $0.09
- out
- $0.34
- Precision
- fp4
- Context
- 262k
Prompts may be used for trainingUnited StatesUnverified. No public page for this offer: listed, not designated cheapest
Seller's site: Eden AI (opens in a new tab)No public price page for this model -
$0.153Martian
Martian
- in
- $0.09
- out
- $0.34
- Precision
- –
- Context
- –
Training terms not publishedworldwideUnverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapestbackend not named: The router bills this price itself without naming who serves the model.
-
$0.16CoreWeave
Kilo Gateway
- in
- $0.10
- out
- $0.34
- Precision
- fp4
- Context
- 262k
Training terms not publishedUnverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
Go to offer Go to offer at Kilo Gateway (opens in a new tab)via Kilo Gateway -
$0.16Glama
Glama
- in
- $0.10
- out
- $0.34
- Precision
- –
- Context
- 262k
No training on promptsUnverified. No public page for this offer: listed, not designated cheapestbackend not named: The router bills this price itself without naming who serves the model.
Seller's site: Glama (opens in a new tab)No public price page for this model -
$0.16NanoGPT
NanoGPT
- in
- $0.10
- out
- $0.34
- Precision
- –
- Context
- 262k
No training on promptsThinking: Thinking: a mode of the model, not its standard offer. Never designated cheapest while a standard offer exists
-
$0.16CoreWeave
OpenRouter
- in
- $0.10
- out
- $0.34
- Precision
- fp4
- Context
- 262k
Training terms not publishedFee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 30). Offers are ranked with this fee included.
-
$0.18Venice
direct
- in
- $0.12
- out
- $0.36
- Precision
- fp4
- Context
- 256k
No training on prompts
-
$0.18Featherless
direct
- in
- $0.12
- out
- $0.36
- Precision
- –
- Context
- 33k
Training terms not published
-
$0.18Venice
Kilo Gateway
- in
- $0.12
- out
- $0.36
- Precision
- fp4
- Context
- 256k
Training terms not publishedUnverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
Go to offer Go to offer at Kilo Gateway (opens in a new tab)via Kilo Gateway -
$0.18Venice
OpenRouter
- in
- $0.12
- out
- $0.36
- Precision
- fp4
- Context
- 256k
No training on promptsFee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 30). Offers are ranked with this fee included.
-
$0.183Chutes
Kilo Gateway
- in
- $0.12
- out
- $0.37
- Precision
- fp4
- Context
- 131k
Training terms not publishedUnverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
Go to offer Go to offer at Kilo Gateway (opens in a new tab)via Kilo Gateway -
$0.183Chutes
OpenRouter
- in
- $0.12
- out
- $0.37
- Precision
- fp4
- Context
- 131k
No training on promptsFee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 30). Offers are ranked with this fee included.
-
$0.193OrcaRouter
OrcaRouter
- in
- $0.13
- out
- $0.38
- Precision
- –
- Context
- –
Training terms not publishedUnverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapestbackend not named: The router bills this price itself without naming who serves the model.
-
$0.193DeepInfra
Requesty
- in
- $0.13
- out
- $0.38
- Precision
- fp8
- Context
- 262k
Prompts may be used for trainingUnited StatesFee 5%: Requesty adds a 5% markup (read on requesty.ai/pricing on Oct 30). Offers are ranked with this fee included.
-
$0.205NanoGPT
NanoGPT
- in
- $0.14
- out
- $0.40
- Precision
- –
- Context
- 262k
No training on prompts
-
$0.205Friendli
direct
- in
- $0.14
- out
- $0.40
- Precision
- –
- Context
- 262k
Training terms not published
-
$0.205Novita
direct
- in
- $0.14
- out
- $0.40
- Precision
- bf16
- Context
- 262k
No training on prompts
-
$0.205Crusoe
Kilo Gateway
- in
- $0.14
- out
- $0.40
- Precision
- bf16
- Context
- 262k
Training terms not publishedUnverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
Go to offer Go to offer at Kilo Gateway (opens in a new tab)via Kilo Gateway -
$0.205DekaLLM
Kilo Gateway
- in
- $0.14
- out
- $0.40
- Precision
- –
- Context
- 262k
Training terms not publishedUnverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
Go to offer Go to offer at Kilo Gateway (opens in a new tab)via Kilo Gateway
None of the 25 cheapest offers matches these filters. Show all 85 offers to search them all.
5 flex or batch offers hidden (lower priority, variable latency).
Blended = (3 × input + output) / 4, per million tokens. Prices in USD, converted at the ECB rate when the provider bills in another currency.
Monthly cost for your workload
Computed by the API for the three cheapest offers, per 30-day month.- Consensusprotocol$9.75per month
- DeepInfra$10.50per month+$0.75 vs the cheapest
- NanoGPT$11.10per month+$1.35 vs the cheapest
The estimate could not be updated. Try again in a moment.
Compare Gemma 4 31B with
Related models
More from Google
Same index family
Use this data
The index is queryable. The API is free to use.curl https://api.inferindex.dev/cheapest?model=google/gemma-4-31b-itclaude mcp add --transport http inferindex https://mcp.inferindex.dev/mcp