Context
262K
Max output
262K
Serving providers
3
Cheapest input
$0.14 /1M
Prices are on-demand list rates. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.
Pricing by serving provider
standard tier · per 1M tokens · click a provider to expandInput pricing runs from $0.14 to $0.38 per 1M tokens across 3 providers, so the dearest route costs 171% more than the cheapest for the same model.
| Serving provider | Input /1M | Output /1M | Endpoints | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TensormeshCheapest | $0.14 | $0.56 | 1 | |||||||||||||||||||||
| ||||||||||||||||||||||||
| Libertai | $0.15 | $0.40 | 1 | |||||||||||||||||||||
| ||||||||||||||||||||||||
| SambaNova | $0.38 | $1.15 | 1 | |||||||||||||||||||||
| ||||||||||||||||||||||||
Price history
input + output $/1M since we started tracking Input Output
Cost calculator
estimate your monthly spend on this model$73
estimated / month
Model IDs
copy the exact identifier for your platformtensormesh/google/gemma-4-31B-itlibertai/gemma-4-31b-itsambanova/gemma-4-31B-it
Frequently asked questions
Gemma 4 31B pricing, context and availabilityHow much does Gemma 4 31B cost?
Gemma 4 31B costs $0.14 per 1M input tokens and $0.40 per 1M output tokens at its cheapest provider via Tensormesh. Across 3 serving providers, input prices range from $0.14 to $0.38 per 1M tokens.
What is the context window of Gemma 4 31B?
Gemma 4 31B accepts up to 262K tokens of context and can return up to 262K output tokens.
Which providers serve Gemma 4 31B?
Gemma 4 31B is available from 3 serving providers, each with its own pricing and model ID. Tensormesh is currently the cheapest.
What can Gemma 4 31B do?
Gemma 4 31B supports image input (vision), tool use, reasoning, prompt caching and structured output.
Other Google models
compare pricing across the Google lineupGemini 2.5 Flash$0.15/1M · 8 providersGemma 3 27B$0.00/1M · 7 providersGemini 2.5 Pro$1.25/1M · 7 providersGemini 3 Flash Preview$0.50/1M · 5 providersGemini 3 Pro Preview$2.00/1M · 5 providersGemma 3 12B$0.05/1M · 4 providersGemini 2.0 Flash 001$0.10/1M · 4 providersGemini 3.1 Pro Preview$2.00/1M · 4 providers
Pricing verified against LiteLLM + OpenRouter + provider pages · refreshed daily
Every weekday
AI moves fast. Here's your debrief.
News, analysis, tools, and more.
For people who build with AI