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 · 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 · 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.19 · PrimeIntellect via Kilo Gateway · cannot be designated the cheapest
- $0.19 · PrimeIntellect via OpenRouter · another route of the same provider
- $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.
$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.
| Day | Cheapest offer | Official list price |
|---|---|---|
| 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 |
| Day | Cheapest offer | Official list price |
|---|---|---|
| 2026-10-30 | $0.14, Consensusprotocol | –No data |
| 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 |
| Day | Cheapest offer | Official list price |
|---|---|---|
| 2026-10-29 | $0.14, Consensusprotocol | –No data |
| 2026-10-30 | $0.14, Consensusprotocol | –No data |
| 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 |
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 $/M | Output $/M | Blended $/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. | Signals | Offer |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 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 | 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 | 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 | 0.13 | 0.22 | 0.15 | fp8 | 262k | Price changes often: 80 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 36% lower than before this drop; possibly temporary. · Price drop observed since Nov 28, 2026 | |||
| 5 | 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. | |||
| 6 | 0.09 | 0.34 | 0.15 | fp4 | 262k | United States | |||
| 7 | 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 |
|
| 8 | 0.09 | 0.34 | 0.15 | –Unpublished | 262k | 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 | ||||
| 10 | 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 | |||
| 11 | 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 | |||
| 12 | 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 |
||
| 13 | 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 | |||
| 14 | 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. | |||
| 15 | 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. | |||
| 16 | 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 | |||
| 17 | 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 | |||
| 18 | 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 | |||
| 19 | 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. | |||
| 20 | 0.12 | 0.36 | 0.18 | fp4 | 256k | ||||
| 21 | 0.12 | 0.36 | 0.18 | –Unpublished | 262k | ||||
| 22 | 0.12 | 0.36 | 0.18 | fp4 | 256k | ||||
| 23 | 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 | |||
| 24 | 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. | |||
| 25 | 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. |
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.
None of the 25 cheapest offers matches these filters. Show all 92 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, approximate
- DeepInfra$10.50per month+$0.75 vs the cheapest
- Primeintellect$10.98per month+$1.23 vs the cheapest
The estimate could not be updated. Try again in a moment.
Compare Gemma 4 31B with
Related models
More from Google
- Gemma 4 26B A4B
- Gemini 3.8 Flash
- Gemini 3.1 Flash Lite
- Gemini 3.5 Flash Lite
- Gemini 2.5 Flash
- Gemini 3.6 Flash
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-it claude mcp add --transport http inferindex https://mcp.inferindex.dev/mcp
https://api.inferindex.dev/router/v1curl https://api.inferindex.dev/router/v1/chat/completions \
-H "Authorization: Bearer YOUR_INFERINDEX_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemma-4-31b-it",
"messages": [{"role": "user", "content": "Hello"}]
}'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)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.inferindex.dev/router/v1",
apiKey: "YOUR_INFERINDEX_KEY",
});
const reply = await client.chat.completions.create({
model: "google/gemma-4-31b-it",
messages: [{ role: "user", content: "Hello" }],
});
console.log(reply.choices[0].message.content);export ANTHROPIC_BASE_URL="https://api.inferindex.dev/router"
export ANTHROPIC_AUTH_TOKEN="YOUR_INFERINDEX_KEY"
claude --model google/gemma-4-31b-it
- Base URL
https://api.inferindex.dev/router/v1- Model
google/gemma-4-31b-it- Format
- OpenAI · Anthropic