Home › Providers › google › Google: Gemma 4 31B

Google: Gemma 4 31B API Pricing

Google: Gemma 4 31B is an API model from google. It costs $0.2 per 1M input tokens and $0.4 per 1M output tokens. Its context window is 262,144 tokens with up to 16,384 output tokens. A workload of 10M input + 2M output tokens costs about $2.8 per month.
Input
$0.2
per 1M tokens
Output
$0.4
per 1M tokens
Cached input
—
per 1M tokens
Context window
262K
262,144 tokens
Blended (80/20)
$0.24
per 1M tokens

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, native function...

How much does Google: Gemma 4 31B cost for a real workload?

At 10M input + 2M output tokens per month, Google: Gemma 4 31B costs about $2.8 ($2 input + $0.8 output). Try your own volumes in the cost calculator.

What are cheaper alternatives to Google: Gemma 4 31B?

Where to run Google: Gemma 4 31B

AI/ML API: one API key for 400+ models, including most models tracked here · Novita AI: pay-as-you-go APIs for open models (DeepSeek, Qwen, Llama and more) plus GPU cloud. Prices there follow each platform's own catalog and can differ from the list prices tracked here.

Run it on AI/ML API →Run it on Novita AI →

Disclosure: links to these platforms may be affiliate links — if you sign up or buy through them, LLMPrices may earn a commission at no extra cost to you.

Compare Google: Gemma 4 31B with other models

Google: Gemma 4 31B vs Google: Gemma 4 26B A4B (free)Google: Gemma 4 31B vs Google: Gemma 4 31B (free)Google: Gemma 4 31B vs Google: Lyria 3 Pro PreviewGoogle: Gemma 4 31B vs Google: Lyria 3 Clip PreviewGoogle: Gemma 4 31B vs Google: Gemma 3 4BGoogle: Gemma 4 31B vs Google: Gemma 3 12B

Frequently asked questions

How much does Google: Gemma 4 31B cost?

Google: Gemma 4 31B costs $0.2 per 1M input tokens and $0.4 per 1M output tokens (list price, snapshot October 22, 2026). At 10M input + 2M output tokens per month that is about $2.8.

What is the context window of Google: Gemma 4 31B?

Google: Gemma 4 31B has a context window of 262,144 tokens and can return up to 16,384 output tokens per response.

What are cheaper alternatives to Google: Gemma 4 31B?

Cheaper models include PrismML: Ternary Bonsai 2 27B ($0.075 in / $0.5 out), DeepSeek: DeepSeek Flash Latest ($0.07 in / $0.5 out), ByteDance Seed: Seed-2.0-Mini ($0.1 in / $0.4 out). See the full list on this page.

Is Google: Gemma 4 31B free to use?

No. Google: Gemma 4 31B is a paid model at $0.2 input / $0.4 output per 1M tokens. 21 free models are listed on the free models page.

Provider: google · Model ID: google/gemma-4-31b-it · Modality: text+image+video->text · Price snapshot October 22, 2026, refreshed daily. How we collect prices