InferIndex
Language, English, EN
Account

ModelsGoogleGemma 4 31B

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 31). 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.

DeepInfra

directYou buy access straight from the company that runs the model on its servers. · fp4 · 262k

$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.

Cheapest offer and official list price, by day, 30 days
DayCheapest offerOfficial 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–

Cheapest offer

Offers

85 of 85 offers

Offers for Gemma 4 31B, one row per offer, sorted by blended price.
RankProvider · 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 $/1MOutput $/1MBlended $/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.SignalsOffer
1 Arkanecloudvia Eden AI 0.10  0.20  0.125 – 131k Unverified. No public page for this offer: listed, not designated cheapest
2 Consensusprotocolvia LLM Gateway 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 31). Offers are ranked with the 5% included.
3 FastRouter 0.10  0.30  0.15  – 262k Unverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapest
4 Ranoaivia LLM Gateway 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 31). Offers are ranked with the 5% included.
5 Runwarevia LLM Gateway 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 31). Offers are ranked with the 5% included.
6 DeepInfra 0.09  0.34  0.153 fp4 262k United States
7 DeepInfravia Eden AI 0.09  0.34  0.153 fp4 262k United States Unverified. No public page for this offer: listed, not designated cheapest
8 Martian 0.09  0.34  0.153 – – worldwide Unverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapest
9 CoreWeavevia Kilo Gateway 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 Glama 0.10  0.34  0.16  – 262k Unverified. No public page for this offer: listed, not designated cheapest
11 NanoGPT 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 CoreWeavevia OpenRouter 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 31). Offers are ranked with this fee included.
13 Venice 0.12  0.36  0.18  fp4 256k
14 Featherless 0.12  0.36  0.18  – 33k
15 Venicevia Kilo Gateway 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 Venicevia OpenRouter 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 31). Offers are ranked with this fee included.
17 Chutesvia Kilo Gateway 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 Chutesvia OpenRouter 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 31). Offers are ranked with this fee included.
19 OrcaRouter 0.13  0.38  0.193 – – Unverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapest
20 DeepInfravia Requesty 0.13  0.38  0.193 fp8 262k United States Fee 5%: Requesty adds a 5% markup (read on requesty.ai/pricing on Oct 31). Offers are ranked with this fee included.
21 NanoGPT 0.14  0.40  0.205 – 262k
22 Friendli 0.14  0.40  0.205 – 262k
23 Novita 0.14  0.40  0.205 bf16 262k
24 Crusoevia Kilo Gateway 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 DekaLLMvia Kilo Gateway 0.14  0.40  0.205 – 262k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
26 FlexAIvia Eden AI 0.14  0.40  0.205 – 262k European Union Unverified. No public page for this offer: listed, not designated cheapest
27 FlexAIvia Eden AI 0.14  0.40  0.205 – 262k Unverified. No public page for this offer: listed, not designated cheapest
28 Friendlivia Kilo Gateway 0.14  0.40  0.205 – 262k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
29 Friendlivia Vercel AI Gateway 0.14  0.40  0.205 – 256k
30 GMICloudvia Vercel AI Gateway 0.14  0.40  0.205 fp8 1M
31 Novitavia Hugging Face 0.14  0.40  0.205 bf16 262k
32 Novitavia Kilo Gateway 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
33 Novitavia LLM API 0.14  0.40  0.205 bf16 – Unconfirmed. Last checked 18 October 2026: the last published value, not a confirmed one Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
34 Novitavia Vercel AI Gateway 0.14  0.40  0.205 bf16 262k
35 Abacus RouteLLM 0.14  0.40  0.205 – 262k United States Unverified. No public page for this offer: listed, not designated cheapest
36 ZenMux 0.14  0.40  0.205 – 262k
37 Novitavia LLM Gateway 0.14  0.40  0.205 bf16 – 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 31). Offers are ranked with the 5% included.
38 Sail Researchvia Requesty 0.14  0.40  0.205 fp4 262k Fee 5%: Requesty adds a 5% markup (read on requesty.ai/pricing on Oct 31). Offers are ranked with this fee included.
39 Crusoevia OpenRouter 0.14  0.40  0.205 bf16 262k Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 31). Offers are ranked with this fee included.
40 DekaLLMvia OpenRouter 0.14  0.40  0.205 – 262k Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 31). Offers are ranked with this fee included.
41 Friendlivia OpenRouter 0.14  0.40  0.205 – 262k Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 31). Offers are ranked with this fee included.
42 Novitavia OpenRouter 0.14  0.40  0.205 bf16 262k Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 31). Offers are ranked with this fee included.
43 Parasailvia Kilo Gateway 0.15  0.40  0.213 fp8 262k worldwide Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
44 Parasailvia Vercel AI Gateway 0.15  0.40  0.213 fp8 262k worldwide
45 Parasailvia OpenRouter 0.15  0.40  0.213 fp8 262k worldwide Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 31). Offers are ranked with this fee included.
46 Greenferencevia Eden AI 0.149 0.42  0.216 – 262k Unverified. No public page for this offer: listed, not designated cheapest
47 FPT AI Factory 0.15  0.45  0.225 – 66k Unverified. No public page for this offer: listed, not designated cheapest
48 RedPill 0.15  0.46  0.228 – 262k
49 DeepInfra 0.135 0.51  0.229 fp4 262k United States Priority tier: A different service tier, with its own speed and availability conditions.
50 DeepInfravia Kilo Gateway 0.135 0.51  0.229 fp4 262k United States Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
51 DeepInfravia OpenRouter 0.135 0.51  0.229 fp4 262k United States Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 31). Offers are ranked with this fee included.
52 ShengSuanYun 0.153 0.462 0.23  – 1M Unverified. No public page for this offer: listed, not designated cheapest
53 DeepInfra 0.20  0.40  0.25  fp8 262k United States
54 DeepInfravia Eden AI 0.20  0.40  0.25  fp8 262k United States Unverified. No public page for this offer: listed, not designated cheapest
55 DeepInfravia Hugging Face 0.20  0.40  0.25  fp8 262k United States
56 DeepInfravia Kilo Gateway 0.20  0.40  0.25  fp8 262k United States Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
57 Nous Portal 0.20  0.40  0.25  – 262k Unverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapest
58 DeepInfravia LLM Gateway 0.20  0.40  0.25  fp8 – United States 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 31). Offers are ranked with the 5% included.
59 DeepInfravia OpenRouter 0.20  0.40  0.25  fp8 262k United States Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 31). Offers are ranked with this fee included.
60 Infercom 0.223 0.391 0.265 – 131k worldwide
61 Cortecs 0.223 0.391 0.265 – 262k worldwide Unverified. No public page for this offer: listed, not designated cheapest
62 ai& 0.20  0.50  0.275 – 262k Unverified. No public page for this offer: listed, not designated cheapest
63 Infomaniakvia Eden AI 0.223 0.447 0.279 – 100k Switzerland Unverified. No public page for this offer: listed, not designated cheapest
64 Infomaniak 0.243 0.486 0.304 – – Switzerland
65 Berget 0.279 0.559 0.349 bf16 –
66 CloudFerro 0.279 0.559 0.349 – – European Union
67 DeepInfra 0.30  0.60  0.375 fp8 262k United States Priority tier: A different service tier, with its own speed and availability conditions.
68 DeepInfravia Kilo Gateway 0.30  0.60  0.375 fp8 262k United States Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapestPriority tier: A different service tier, with its own speed and availability conditions.
69 DeepInfravia OpenRouter 0.30  0.60  0.375 fp8 262k United States Priority tier: A different service tier, with its own speed and availability conditions.Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 31). Offers are ranked with this fee included.
70 io.net 0.309 0.692 0.405 – 262k Unverified. No public page for this offer: listed, not designated cheapestPrice drop observed: The blended price is 29% lower than before this drop; possibly temporary. · Price drop observed since Oct 22, 2026
71 Sail Researchvia Requesty 0.40  0.60  0.45  – 262k Fee 5%: Requesty adds a 5% markup (read on requesty.ai/pricing on Oct 31). Offers are ranked with this fee included.
72 Togethervia LLM Gateway 0.39  0.97  0.535 – – 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 31). Offers are ranked with the 5% included.
73 Io Netvia OpenRouter 0.361 1.09  0.544 – 262k Price drop observed: The blended price is 5% lower than before this drop; possibly temporary. · Discount shown by the seller, no end date announced, seen on Oct 30, 2026Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 31). Offers are ranked with this fee included.
74 Tinfoil 0.40  1.00  0.55  – 262k
75 STACKIT 0.503 0.726 0.559 – –
76 SambaNova 0.38  1.15  0.573 – 131k
77 Io Netvia Kilo Gateway 0.38  1.15  0.573 – 262k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
78 SambaNovavia Kilo Gateway 0.38  1.15  0.573 – 131k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
79 SambaNovavia OpenRouter 0.38  1.15  0.573 – 131k Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 31). Offers are ranked with this fee included.
80 ModelRunvia Kilo Gateway 0.75  1.00  0.813 fp4 262k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
81 SiliconFlowvia Kilo Gateway 0.75  1.00  0.813 fp8 262k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
82 ModelRunvia OpenRouter 0.75  1.00  0.813 fp4 262k Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 31). Offers are ranked with this fee included.
83 SiliconFlowvia OpenRouter 0.75  1.00  0.813 fp8 262k Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Oct 31). Offers are ranked with this fee included.
84 Regolo AI 0.447 2.35  0.922 – 100k European Union
85 Cerebrasvia LLM Gateway 0.99  1.49  1.12  – – worldwide 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 31). Offers are ranked with the 5% included.

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.

Show the 25 cheapest only

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.

Method

Monthly cost for your workload

Computed by the API for the three cheapest offers, per 30-day month.
  1. Consensusprotocol$9.75per month
  2. DeepInfra$10.50per month+$0.75 vs the cheapest
  3. NanoGPT$11.10per month+$1.35 vs the cheapest

Host it yourself instead? See the break-even

Compare Gemma 4 31B with

Related models

More from Google

All Google models

Same index family

Use this data

The index is queryable. The API is free to use.
Free API
curl https://api.inferindex.dev/cheapest?model=google/gemma-4-31b-it
MCP server
claude mcp add --transport http inferindex https://mcp.inferindex.dev/mcp

Also works in Cursor and Codex: see the MCP page.