This model was retired on 2026-08-27. The pricing below is the last-known rate, kept for migration reference.

Gemma 4 31BDeprecated

GoogleReleasedApr 2, 2026
VisionTool useReasoningPrompt cachingStructured output
Context
262K
Max output
262K
Serving providers
8
Cheapest input
$0.09 /1M
Prices are on-demand list rates. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.

Pricing by serving provider

last-known · per 1M tokens · click a provider to expand
Serving providerInput /1MOutput /1MEndpoints
OpenRouter$0.09$0.341
Wandb$0.10$0.341
DeepInfra$0.13$0.381
Novita$0.14$0.401
Tensormesh$0.14$0.561
Libertai$0.15$0.401
Together AI$0.28$0.861
SambaNova$0.38$1.151

Price history

input + output $/1M since we started tracking
Input Output
Input down 36% since first tracked
$0.000$0.200$0.400$0.600Jun 10Jul 19Jul 30Aug 28$0.340$0.090

Cost calculator

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

Model IDs

copy the exact identifier for your platform
google/gemma-4-31b-itwandb/google/gemma-4-31B-itdeepinfra/google/gemma-4-31B-itnovita/google/gemma-4-31b-ittensormesh/google/gemma-4-31B-itlibertai/gemma-4-31b-ittogether_ai/pearl-ai/gemma-4-31b-itsambanova/gemma-4-31B-it

Frequently asked questions

Gemma 4 31B pricing, context and availability

Is Gemma 4 31B still available?

Gemma 4 31B was retired on 2026-08-27. The pricing on this page is the last-known rate, kept for migration reference.

How much did Gemma 4 31B cost?

Gemma 4 31B's last-known pricing, before it was retired on 2026-08-27, was $0.09 per 1M input tokens and $0.34 per 1M output tokens.

What was the context window of Gemma 4 31B?

Gemma 4 31B had a 262K token context window and could return up to 262K output tokens.

What could Gemma 4 31B do?

Gemma 4 31B supported 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