InferIndex

ModelsGoogleGemma 4 31B

Gemma 4 31B

google/gemma-4-31b-it Compare →

Cheapest: Consensusprotocol — $0.10 Input / $0.25 Output per million — checked 

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.21
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.81
Offers
92
Providers
44
QualityQuality rank from public evaluations. 1 = best. Data credits
Not ranked in this quality board
CodeCoding quality rank from public evaluations. 1 = best. Data credits
Not ranked in this quality board

Cheapest right now

Consensusprotocol

via LLM Gateway

$0.14 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 Nov 28). Offers are ranked with the 5% included.

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 (62)

  • $0.13 · Arkanecloud via Eden AI · cannot be designated the cheapest
  • $0.15 · FastRouter via FastRouter · cannot be designated the cheapest
  • $0.15 · DeepInfra via Eden AI · cannot be designated the cheapest
  • $0.15 · FastRouter via FastRouter · cannot be designated the cheapest
  • $0.16 · PrimeIntellect via OpenRouter · another route of the same provider
  • $0.16 · CoreWeave via Kilo Gateway · cannot be designated the cheapest
  • $0.16 · KT via Kilo Gateway · cannot be designated the cheapest
  • $0.16 · Glama via Glama · cannot be designated the cheapest
  • $0.16 · CoreWeave via OpenRouter · another route of the same provider
  • $0.18 · NextBit via Kilo Gateway · cannot be designated the cheapest
  • $0.18 · NextBit via OpenRouter · another route of the same provider
  • $0.18 · PrimeIntellect via Kilo Gateway · cannot be designated the cheapest
  • $0.18 · Venice via Hugging Face · another route of the same provider
  • $0.18 · Venice via Kilo Gateway · cannot be designated the cheapest
  • $0.18 · Venice via OpenRouter · another route of the same provider
  • $0.18 · Chutes via Kilo Gateway · cannot be designated the cheapest
  • $0.19 · OrcaRouter via OrcaRouter · cannot be designated the cheapest
  • $0.21 · Crusoe via Kilo Gateway · cannot be designated the cheapest
  • $0.21 · FlexAI via Eden AI · cannot be designated the cheapest
  • $0.21 · FlexAI via Eden AI · cannot be designated the cheapest
  • $0.21 · Friendli via Kilo Gateway · cannot be designated the cheapest
  • $0.21 · Friendli via Vercel AI Gateway · another route of the same provider
  • $0.21 · Novita via Kilo Gateway · cannot be designated the cheapest
  • $0.21 · Abacus RouteLLM via Abacus RouteLLM · cannot be designated the cheapest
  • $0.21 · Novita via LLM Gateway · another route of the same provider
  • $0.21 · Crusoe via OpenRouter · another route of the same provider
  • $0.21 · Friendli via OpenRouter · another route of the same provider
  • $0.21 · Parasail via Kilo Gateway · cannot be designated the cheapest
  • $0.21 · Parasail via Vercel AI Gateway · another route of the same provider
  • $0.21 · Parasail via OpenRouter · another route of the same provider
  • $0.22 · Greenference via Eden AI · cannot be designated the cheapest
  • $0.23 · FPT AI Factory · cannot be designated the cheapest
  • $0.23 · DeepInfra · priority tier
  • $0.23 · DeepInfra via Kilo Gateway · cannot be designated the cheapest
  • $0.23 · DeepInfra via OpenRouter · another route of the same provider
  • $0.23 · ShengSuanYun via ShengSuanYun · cannot be designated the cheapest
  • $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 · Martian via Martian · cannot be designated the cheapest
  • $0.25 · DeepInfra via LLM Gateway · another route of the same provider
  • $0.25 · DeepInfra via Requesty · another route of the same provider
  • $0.25 · DeepInfra via OpenRouter · another route of the same provider
  • $0.25 · Nous Portal via Nous Portal · stale offer
  • $0.26 · Cortecs via Cortecs · cannot be designated the cheapest
  • $0.27 · Infomaniak via Eden AI · cannot be designated the cheapest
  • $0.28 · ai& · cannot be designated the cheapest
  • $0.28 · Modal via Kilo Gateway · cannot be designated the cheapest
  • $0.28 · Modal via OpenRouter · another route of the same provider
  • $0.38 · DeepInfra · priority tier
  • $0.38 · DeepInfra via Kilo Gateway · cannot be designated the cheapest
  • $0.38 · DeepInfra via OpenRouter · priority tier
  • $0.42 · io.net · cannot be designated the cheapest
  • $0.45 · Sail Research via Requesty · another route of the same provider
  • $0.54 · Together via LLM Gateway · cannot be designated the cheapest
  • $0.57 · SambaNova via Hugging Face · another route of the same provider
  • $0.57 · SambaNova via Kilo Gateway · cannot be designated the cheapest
  • $0.57 · SambaNova via OpenRouter · another route of the same provider
  • $0.81 · ModelRun via Kilo Gateway · cannot be designated the cheapest
  • $0.81 · SiliconFlow via Kilo Gateway · cannot be designated the cheapest
  • $0.81 · ModelRun via OpenRouter · another route of the same provider
  • $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.15 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-31$0.14, Consensusprotocol–No data
2026-11-01$0.14, Consensusprotocol–No data
2026-11-02$0.14, Consensusprotocol–No data
2026-11-03$0.14, Consensusprotocol–No data
2026-11-04$0.14, Consensusprotocol–No data
2026-11-05$0.14, Consensusprotocol–No data
2026-11-06$0.14, Consensusprotocol–No data
2026-11-07$0.14, Consensusprotocol–No data
2026-11-08$0.14, Consensusprotocol–No data
2026-11-09$0.14, Consensusprotocol–No data
2026-11-10$0.14, Consensusprotocol–No data
2026-11-11$0.14, Consensusprotocol–No data
2026-11-12$0.14, Consensusprotocol–No data
2026-11-13$0.14, Consensusprotocol–No data
2026-11-14$0.14, Consensusprotocol–No data
2026-11-15$0.14, Consensusprotocol–No data
2026-11-16$0.14, Consensusprotocol–No data
2026-11-17$0.12, Primeintellect–No data
2026-11-18$0.14, Consensusprotocol–No data
2026-11-19$0.14, Consensusprotocol–No data
2026-11-20$0.14, Consensusprotocol–No data
2026-11-21$0.14, Consensusprotocol–No data
2026-11-22$0.14, Consensusprotocol–No data
2026-11-23$0.14, Consensusprotocol–No data
2026-11-24$0.14, Consensusprotocol–No data
2026-11-25$0.14, Consensusprotocol–No data
2026-11-26$0.14, Consensusprotocol–No data
2026-11-27$0.14, Consensusprotocol–No data
2026-11-28$0.14, Consensusprotocol–No data
2026-11-29$0.14, Consensusprotocol–No data

Cheapest offer

Offers

92 of 92 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 $/MOutput $/MBlended $/MA 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.13 –Unpublished 131k Unverified. No public page for this offer: listed, not designated cheapestReduced context: Context window of this offer: 131,072 tokens; median of 44 offers for this model: 262,144 tokens.
: Eden AI (opens in a new tab) No public price page for this model
2 Consensusprotocolvia LLM Gateway 0.10 0.25 0.14 · Cheapest right now –Unpublished –Unpublished 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 Nov 28). Offers are ranked with the 5% included.
3 FastRouter 0.10 0.30 0.15 –Unpublished 262k Unverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapest
4 Runwarevia LLM Gateway 0.10 0.30 0.15 –Unpublished –Unpublished 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 Nov 28). Offers are ranked with the 5% included.
5 DeepInfra 0.09 0.34 0.15 fp4 262k United States
6 DeepInfravia Eden AI 0.09 0.34 0.15 fp4 262k United States Unverified. No public page for this offer: listed, not designated cheapest
: Eden AI (opens in a new tab) No public price page for this model
7 FastRouter 0.09 0.34 0.15 –Unpublished 262k Unverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapest
8 Primeintellectvia Hugging Face 0.13 0.22 0.15 fp8 262k Price changes often: 81 price changes in 7 days. Over that period: input $0.10 – $0.20, output $0.17 – $0.34 per million tokens. An offer whose price changes this often is not selected as the cheapest.Price drop observed: The blended price is 35% lower than before this drop; possibly temporary. · Price drop observed since Nov 28, 2026
9 PrimeIntellectvia OpenRouter 0.14 0.23 0.16 fp8 262k Price changes often: 580 price changes in 7 days. Over that period: input $0.10 – $0.20, output $0.17 – $0.34 per million tokens. An offer whose price changes this often is not selected as the cheapest.Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Nov 28). Offers are ranked with this fee included.
10 Coreweavevia Hugging Face 0.10 0.34 0.16 fp4 262k
11 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
12 KTvia Kilo Gateway 0.10 0.34 0.16 –Unpublished 262k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
13 Glama 0.10 0.34 0.16 –Unpublished 262k Unverified. No public page for this offer: listed, not designated cheapest
: Glama (opens in a new tab) No public price page for this model
14 NanoGPT 0.10 0.34 0.16 –Unpublished 262k Thinking: Thinking: a mode of the model, not its standard offer. Never designated cheapest while a standard offer exists
15 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 Nov 28). Offers are ranked with this fee included.
16 KTvia OpenRouter 0.10 0.34 0.16 –Unpublished 262k Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Nov 28). Offers are ranked with this fee included.
17 NanoGPT 0.11 0.33 0.17 –Unpublished 262k Price drop observed: The blended price is 20% lower than before this drop; possibly temporary. · Price drop observed since Nov 12, 2026
18 Nextbitvia Hugging Face 0.13 0.34 0.18 fp4 262k Price drop observed: The blended price is 16% lower than before this drop; possibly temporary. · Price drop observed since Nov 18, 2026
19 NextBitvia Kilo Gateway 0.13 0.34 0.18 fp4 262k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapestPrice drop observed: The blended price is 16% lower than before this drop; possibly temporary. · Price drop observed since Nov 18, 2026
20 NextBitvia OpenRouter 0.13 0.34 0.18 fp4 262k Price drop observed: The blended price is 16% lower than before this drop; possibly temporary. · Price drop observed since Nov 18, 2026Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Nov 28). Offers are ranked with this fee included.
21 Venice 0.12 0.36 0.18 fp4 256k
22 Featherless 0.12 0.36 0.18 –Unpublished 262k
23 PrimeIntellectvia Kilo Gateway 0.15 0.26 0.18 fp8 262k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapestPrice changes often: 94 price changes in 7 days. Over that period: input $0.10 – $0.20, output $0.17 – $0.34 per million tokens. An offer whose price changes this often is not selected as the cheapest.+1Price drop observed: The blended price is 23% lower than before this drop; possibly temporary. · Price drop observed since Nov 28, 2026
24 Venicevia Hugging Face 0.12 0.36 0.18 fp4 256k
25 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
26 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 Nov 28). Offers are ranked with this fee included.
27 Chutesvia Kilo Gateway 0.12 0.37 0.18 fp4 131k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapestReduced context: Context window of this offer: 131,072 tokens; median of 44 offers for this model: 262,144 tokens.
28 Chutesvia OpenRouter 0.12 0.37 0.18 fp4 131k Reduced context: Context window of this offer: 131,072 tokens; median of 44 offers for this model: 262,144 tokens.Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Nov 28). Offers are ranked with this fee included.
29 OrcaRouter 0.13 0.38 0.19 –Unpublished –Unpublished Unverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapest
30 Friendli 0.14 0.40 0.21 –Unpublished 262k
31 Crusoevia Hugging Face 0.14 0.40 0.21 bf16 260k
32 Crusoevia Kilo Gateway 0.14 0.40 0.21 bf16 260k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
33 FlexAIvia Eden AI 0.14 0.40 0.21 –Unpublished 262k European Union Unverified. No public page for this offer: listed, not designated cheapest
: Eden AI (opens in a new tab) No public price page for this model
34 FlexAIvia Eden AI 0.14 0.40 0.21 –Unpublished 262k Unverified. No public page for this offer: listed, not designated cheapest
: Eden AI (opens in a new tab) No public price page for this model
35 Friendlivia Kilo Gateway 0.14 0.40 0.21 –Unpublished 262k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
36 Friendlivia Vercel AI Gateway 0.14 0.40 0.21 –Unpublished 256k
37 Novitavia Kilo Gateway 0.14 0.40 0.21 –Unpublished 262k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
38 Novitavia Vercel AI Gateway 0.14 0.40 0.21 bf16 262k
39 Abacus RouteLLM 0.14 0.40 0.21 –Unpublished 262k Unverified. No public page for this offer: listed, not designated cheapest
: Abacus RouteLLM (opens in a new tab) No public price page for this model
40 ZenMux 0.14 0.40 0.21 –Unpublished 262k
41 Novitavia LLM Gateway 0.14 0.40 0.21 bf16 –Unpublished 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 Nov 28). Offers are ranked with the 5% included.
42 Sail Researchvia Requesty 0.14 0.40 0.21 fp4 262k Fee 5%: Requesty adds a 5% markup (read on requesty.ai/pricing on Nov 28). Offers are ranked with this fee included.
43 Crusoevia OpenRouter 0.14 0.40 0.21 bf16 260k Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Nov 28). Offers are ranked with this fee included.
44 Friendlivia OpenRouter 0.14 0.40 0.21 –Unpublished 262k Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Nov 28). Offers are ranked with this fee included.
45 Parasailvia Hugging Face 0.15 0.40 0.21 fp8 262k worldwide
46 Parasailvia Kilo Gateway 0.15 0.40 0.21 fp8 262k worldwide Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
47 Parasailvia Vercel AI Gateway 0.15 0.40 0.21 fp8 262k worldwide
48 Parasailvia OpenRouter 0.15 0.40 0.21 fp8 262k worldwide Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Nov 28). Offers are ranked with this fee included.
49 Greenferencevia Eden AI 0.15 0.42 0.22 –Unpublished 262k Unverified. No public page for this offer: listed, not designated cheapest
: Eden AI (opens in a new tab) No public price page for this model
50 FPT AI Factory 0.15 0.45 0.23 –Unpublished 66k Unverified. No public page for this offer: listed, not designated cheapestReduced context: Context window of this offer: 65,536 tokens; median of 44 offers for this model: 262,144 tokens.
: FPT AI Factory (opens in a new tab) No public price page for this model
51 RedPill 0.15 0.46 0.23 –Unpublished 262k
52 DeepInfra 0.14 0.51 0.23 fp4 262k United States Priority tier: A different service tier, with its own speed and availability conditions.
53 DeepInfravia Kilo Gateway 0.14 0.51 0.23 fp4 262k United States Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
54 DeepInfravia OpenRouter 0.14 0.51 0.23 fp4 262k United States Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Nov 28). Offers are ranked with this fee included.
55 ShengSuanYun 0.15 0.46 0.23 –Unpublished 1M Unverified. No public page for this offer: listed, not designated cheapest
: ShengSuanYun (opens in a new tab) No public price page for this model
56 DeepInfra 0.20 0.40 0.25 fp8 262k United States
57 DeepInfravia Eden AI 0.20 0.40 0.25 fp8 262k United States Unverified. No public page for this offer: listed, not designated cheapest
: Eden AI (opens in a new tab) No public price page for this model
58 DeepInfravia Hugging Face 0.20 0.40 0.25 fp8 262k United States
59 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
60 Martian 0.20 0.40 0.25 –Unpublished –Unpublished worldwide Unverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapest
61 DeepInfravia LLM Gateway 0.20 0.40 0.25 fp8 –Unpublished 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 Nov 28). Offers are ranked with the 5% included.
62 DeepInfravia Requesty 0.20 0.40 0.25 fp8 262k United States Fee 5%: Requesty adds a 5% markup (read on requesty.ai/pricing on Nov 28). Offers are ranked with this fee included.
63 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 Nov 28). Offers are ranked with this fee included.
64 Infercom 0.22 0.38 0.26 –Unpublished 131k worldwide Reduced context: Context window of this offer: 131,072 tokens; median of 44 offers for this model: 262,144 tokens.
65 Cortecs 0.22 0.38 0.26 –Unpublished 262k worldwide Unverified. No public page for this offer: listed, not designated cheapest
: Cortecs (opens in a new tab) No public price page for this model
66 Infomaniakvia Eden AI 0.22 0.44 0.27 –Unpublished 100k Switzerland Unverified. No public page for this offer: listed, not designated cheapestReduced context: Context window of this offer: 100,000 tokens; median of 44 offers for this model: 262,144 tokens.
: Eden AI (opens in a new tab) No public price page for this model
67 ai& 0.20 0.50 0.28 –Unpublished 262k Unverified. No public page for this offer: listed, not designated cheapest
: ai& (opens in a new tab) No public price page for this model
68 Modalvia Hugging Face 0.34 0.10 0.28 –Unpublished 131k Reduced context: Context window of this offer: 131,072 tokens; median of 44 offers for this model: 262,144 tokens.
69 Modalvia Kilo Gateway 0.34 0.10 0.28 –Unpublished 131k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapestReduced context: Context window of this offer: 131,072 tokens; median of 44 offers for this model: 262,144 tokens.
70 Modalvia OpenRouter 0.34 0.10 0.28 –Unpublished 131k Reduced context: Context window of this offer: 131,072 tokens; median of 44 offers for this model: 262,144 tokens.Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Nov 28). Offers are ranked with this fee included.
71 Infomaniak 0.24 0.48 0.30 –Unpublished –Unpublished Switzerland
72 Berget 0.27 0.55 0.34 bf16 –Unpublished European Union
73 DeepInfra 0.30 0.60 0.38 fp8 262k United States Priority tier: A different service tier, with its own speed and availability conditions.
74 DeepInfravia Kilo Gateway 0.30 0.60 0.38 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.
75 DeepInfravia OpenRouter 0.30 0.60 0.38 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 Nov 28). Offers are ranked with this fee included.
76 io.net 0.35 0.63 0.42 –Unpublished 262k Unverified. No public page for this offer: listed, not designated cheapest
: io.net (opens in a new tab) No public price page for this model
77 Sail Researchvia Requesty 0.40 0.60 0.45 –Unpublished 262k Fee 5%: Requesty adds a 5% markup (read on requesty.ai/pricing on Nov 28). Offers are ranked with this fee included.
78 Regolo AI 0.44 0.66 0.49 –Unpublished 100k European Union Reduced context: Context window of this offer: 100,000 tokens; median of 44 offers for this model: 262,144 tokens.Price drop observed: The blended price is 45% lower than before this drop; possibly temporary. · Price drop observed since Nov 2, 2026
79 Togethervia LLM Gateway 0.39 0.97 0.54 –Unpublished –Unpublished 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 Nov 28). Offers are ranked with the 5% included.
80 STACKIT 0.49 0.71 0.55 –Unpublished –Unpublished European Union
81 Tinfoil 0.40 1.00 0.55 –Unpublished 262k
82 SambaNova 0.38 1.15 0.57 –Unpublished 131k Reduced context: Context window of this offer: 131,072 tokens; median of 44 offers for this model: 262,144 tokens.
83 SambaNovavia Hugging Face 0.38 1.15 0.57 –Unpublished 131k Reduced context: Context window of this offer: 131,072 tokens; median of 44 offers for this model: 262,144 tokens.
84 SambaNovavia Kilo Gateway 0.38 1.15 0.57 –Unpublished 131k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapestReduced context: Context window of this offer: 131,072 tokens; median of 44 offers for this model: 262,144 tokens.
85 SambaNovavia OpenRouter 0.38 1.15 0.57 –Unpublished 131k Reduced context: Context window of this offer: 131,072 tokens; median of 44 offers for this model: 262,144 tokens.Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Nov 28). Offers are ranked with this fee included.
86 Modelrunvia Hugging Face 0.75 1.00 0.81 fp4 262k
87 ModelRunvia Kilo Gateway 0.75 1.00 0.81 fp4 262k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
88 SiliconFlowvia Kilo Gateway 0.75 1.00 0.81 fp8 262k Unverified. The source page shows one price per model, not this seller's: listed, not designated cheapest
89 ModelRunvia OpenRouter 0.75 1.00 0.81 fp4 262k Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Nov 28). Offers are ranked with this fee included.
90 SiliconFlowvia OpenRouter 0.75 1.00 0.81 fp8 262k Fee 5.5%: OpenRouter adds a 5.5% fee when you buy credits (read on openrouter.ai/pricing on Nov 28). Offers are ranked with this fee included.
91 Cerebrasvia LLM Gateway 0.99 1.49 1.12 –Unpublished –Unpublished 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 Nov 28). Offers are ranked with the 5% included.
92 Nous Portal 0.20 0.40 0.25 –Unpublished 262k Unverified. Neither seller nor price found on its page for 72 hours: listed, not designated cheapeststale: This offer has not been rechecked recently.+1

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, approximate
  2. DeepInfra$10.50per month+$0.75 vs the cheapest
  3. Coreweave$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.

Base URLhttps://api.inferindex.dev/router/v1
from openai import OpenAI

client = OpenAI(
    base_url="https://api.inferindex.dev/router/v1",
    api_key="YOUR_INFERINDEX_KEY",
)

reply = client.chat.completions.create(
    model="google/gemma-4-31b-it",
    messages=[{"role": "user", "content": "Hello"}],
)
print(reply.choices[0].message.content)
Base URL
https://api.inferindex.dev/router/v1
Model
google/gemma-4-31b-it
Format
OpenAI · Anthropic