Home / Google Switch to another Google / Gemini model Gemini 4 Neon Gemini 4 Carbon Gemini 4 Hydrogen Gemini 4 Argon Gemini 3.5 Flash Lite Gemma 4 31B Gemma 4 26B A4B google/gemma-4-26B-A4B Gemini 2.5 Flash Gemini 2.5 Flash Batch Gemini 2.5 Flash Lite Gemini 2.5 Flash Lite Batch Gemini 2.5 Pro Gemini 2.5 Pro Batch Gemini 2.5 Pro Preview 06-05 Gemini 3 Flash Gemini 3 Flash Batch Gemini 3 Flash Preview Gemini 3.1 Flash Lite Gemini 3.1 Flash Lite Batch Gemini 3.1 Flash Lite Preview Gemini 3.1 Pro Preview Gemini 3.1 Pro Preview Batch Gemini 3.1 Pro Preview Custom Tools Gemini 3.5 Flash Gemini 3.5 Flash Lite Batch Gemini 3.6 Flash Gemini 3.6 Flash Batch Gemini 3.7 Flash Gemini 3.8 Flash Gemini 4 Neon (Fast) Gemini Flash (latest) Gemini Flash Lite (latest) Gemini Omni 1.1 Flash Gemini Omni 1.2 Flash Gemini Omni Flash Preview Gemini Pro (latest) Gemini Robotics ER 1.6 Preview Gemini Robotics ER 2 Preview Gemini Robotics ER 2 Streaming Preview Gemma 2 27B Gemma 3 12B Gemma 3 27B Gemma 3 4B Genie 4
Gemma 4 31B API price
Google · 262K token context · Released Apr 2 · 18 sellers, checked 29 Nov, 18:17 UTC
Input, per 1M tokens
$0.13
Output, per 1M tokens
$0.22
Cheapest at Hugging Face ; 18 sellers compared below.
Cost calculator: where to buy, and what it costs you
Pick a use case, a volume and a provider. Monthly figures assume 30 days.
Chatbot Coding agent Document Q&A Summarising
1,500 input and 400 output tokens per request, 30% of input cached.
Adjust
Input tokens per request
Output tokens per request
Input cached, %
Provider, with its monthly cost for this workload
Sort by monthly cost by input price by output price
InferX · Promo ↗ Promo: 90% off its usual price, can end any time · FP8 weights $0.011 in · $0.035 out · cached $0.0011 per 1M $0.78 LLM Gateway ↗ Gateway · +5% platform fee on credits $0.10 in · $0.25 out · cached $0.010 per 1M · $0.11 / $0.26 with the fee $6.60 Via Consensus Protocol, not reviewed FastRouter ↗ Gateway · cache price not listed, counted at full input price $0.10 in · $0.30 out per 1M $8.10 Unknown operator Hugging Face ↗ ✓ Established Gateway · routed to primeintellect (google/gemma-4-31B-it:primeintellect) · cache price not listed, counted at full input price $0.13 in · $0.22 out per 1M $8.47 Cheapest regular OrcaRouter ↗ Aggregator $0.13 in · $0.38 out · cached $0.020 per 1M $8.93 Kilo Gateway ↗ ✓ Established Gateway · +5% credit purchase fee $0.10 in · $0.34 out · cached $0.10 per 1M · $0.11 / $0.36 with the fee $9.01 MegaNova ↗ Inference host $0.13 in · $0.38 out · cached $0.065 per 1M $9.53 Discount relay Eden AI ↗ Gateway · +5.5% platform fee on credits $0.14 in · $0.40 out · cached $0.021 per 1M · $0.15 / $0.42 with the fee $10.02 Via FlexAI, not reviewed Cheaper Inference ↗ Discount marketplace $0.13 in · $0.36 out · cached $0.13 per 1M $10.09 Discount relay Vercel AI Gateway ↗ ✓ Established Gateway · cache price not listed, counted at full input price $0.14 in · $0.40 out per 1M $11.10 ZenMux ↗ Gateway · cache price not listed, counted at full input price $0.14 in · $0.40 out per 1M $11.10 Unknown operator PrimeIntellect ↗ Inference host $0.20 in · $0.34 out · cached $0.10 per 1M $11.67 LLMTR ↗ Gateway · +8% platform margin on top-ups · cache price not listed, counted at full input price $0.14 in · $0.40 out per 1M · $0.15 / $0.43 with the fee $11.99 DeepInfra ↗ ✓ Established Inference host · cache price not listed, counted at full input price $0.20 in · $0.40 out per 1M $13.80 Nous Research ↗ ✓ Established Gateway · cache price not listed, counted at full input price $0.20 in · $0.40 out per 1M $13.80 OpenRouter ↗ ✓ Established Aggregator · cache price not listed, counted at full input price $0.20 in · $0.40 out per 1M $13.80 LowRouter ↗ Gateway · +6.6% top-up fee and currency buffer (from 5.5% + 1%) · cache price not listed, counted at full input price $0.20 in · $0.40 out per 1M · $0.21 / $0.43 with the fee $14.71 Io Net ↗ Inference host $0.35 in · $0.63 out · cached $0.17 per 1M $20.93 Requesty ↗ Gateway · +5% fee on usage $0.40 in · $0.60 out · cached $0.20 per 1M · $0.42 / $0.63 with the fee $23.62
Show 13 more
Via Consensus Protocol, not reviewed: The gateway passes this request to a host we have not reviewed. Unknown operator: We could not find who runs it. Test it before you rely on it, and keep your balance small. Discount relay: Sells OpenAI, Anthropic or Google models below the developer's own price. It often works, but we can't see where its access comes from: it can stop without notice, and your prompts pass through accounts you don't control. Fine for testing; don't send sensitive data. Via FlexAI, not reviewed: The gateway passes this request to a host we have not reviewed.
Not in the calculator: Free tier $0.00 / $0.00 (OpenRouter)
Monthly cost with Hugging Face
$8.47
$0.0003 per request · 30,000 requests a month
$15.16 a month less than the dearest seller, Requesty.
Input $4.09 Cached input $1.76 Output $2.62
Same workload on models with a similar Intelligence Index, at their cheapest provider
Spotted a wrong or outdated price? Report it and we fix it at the next update.
Test a seller of this model with your own key, on your own machine.
Embed this price in your README or site A badge with the cheapest price, the seller and the date. It updates every 6 hours and links here.
Markdown [](https://easiapiai.com/m/gemini--google-gemma-4-31b-it.html)Copy HTML <a href="https://easiapiai.com/m/gemini--google-gemma-4-31b-it.html"><img src="https://easiapiai.com/badge/gemini--google-gemma-4-31b-it.svg" alt="Gemma 4 31B API: from $0.13 in / $0.22 out per 1M · Hugging Face · 29 Nov 2026" height="40"></a>Copy
Context window 262K262,144 tokens
Last checked 29 Nov, 18:17 UTC
Price history Cheapest standard price per 1M tokens, recorded every 6 hours since 16 Oct 2026.
$0.00 $0.21 $0.43 16 Oct 29 Nov Output Input26 Nov Novita no longer listed under this name in our data (was $0.14 / $0.40)22 Nov Together AI no longer listed under this name in our data (was $0.39 / $0.97)13 Nov Cheaper Inference cut input $0.16 to $0.13 (-22%), output $0.49 to $0.36 (-26%)10 Nov PrimeIntellect cut input $0.40 to $0.20 (-50%), output $0.67 to $0.34 (-50%)10 Nov Io Net cut input $0.40 to $0.35 (-13%), output $0.66 to $0.63 (-5%)8 Nov Io Net cut input $0.43 to $0.40 (-7%), output $0.81 to $0.66 (-18%)4 Nov Hopscotch (Promo) no longer listed under this name in our data (was $0.10 / $0.20)4 Nov Hopscotch no longer listed under this name in our data (was $0.20 / $0.40)4 Nov Io Net raised input $0.43 to $0.43 (+0%), output $0.79 to $0.81 (+3%)3 Nov Io Net raised input $0.29 to $0.43 (+49%), output $0.55 to $0.79 (+43%)Hugging Face: the price floats from one check to the next, so the moves are not listed as changes.
Every price change this month →
More from Google: Gemini 3.5 Flash Lite $0.30 · Gemini 3.6 Flash $0.75 · Gemini 3.7 Flash $0.75