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 expand

Input 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 providerInput /1MOutput /1MEndpoints
TensormeshCheapest$0.14$0.561
ComponentUnitStandardBatchCached
Text cached in/1M tok$0
Text input/1M tok$0.1400
Text output/1M tok$0.5600
Libertai$0.15$0.401
SambaNova$0.38$1.151

Price history

input + output $/1M since we started tracking
Input Output
$0.000$0.200$0.400$0.600Jun 10Jun 16Jun 22Jun 27$0.400$0.140

Cost calculator

estimate your monthly spend on this model
$73
estimated / month

Model IDs

copy the exact identifier for your platform
tensormesh/google/gemma-4-31B-itlibertai/gemma-4-31b-itsambanova/gemma-4-31B-it

Frequently asked questions

Gemma 4 31B pricing, context and availability

How 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 lineup
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