$T TokenCostDB
Verified: 2026-11-30 Direct Official Pricing Provider: Google

Google: Gemma 4 31B API Pricing & Monthly Cost Calculator

Google: Gemma 4 31B by Google is priced at $0.00 per 1M input tokens and $0.00 per 1M output tokens with a 262.1K context window.

Standard Input / 1M
$0.00
Standard Output / 1M
$0.00
Cache Read / Write
— / —
Context / Max Output
262.1K / 16.4K

Direct Official vs. OpenRouter Gateway

Comparing direct vendor pricing against multi-provider OpenRouter routing for google/gemma-4-31b-it.

Channel Input / 1M Output / 1M Cache Read
Direct Official $0.00 $0.00 —
OpenRouter Gateway $0.2 $0.4 —
Gateway routing preserves unified fallback across providers. Primary Pricing Source →

1M to 1B Token Cost Tiers

Reference monthly spend assuming a standard 75% input / 25% output workload mix.

Monthly Volume Standard 75% Cached Batch API
1M tokens $0.0000 — —
10M tokens $0.0000 — —
100M tokens $0.0000 — —
1B tokens $0.0000 — —

Interactive Google: Gemma 4 31B Bill Estimator

Adjust request volume, tokens, and prompt cache hit ratio.

Estimated Monthly Total
$0.0000
Cache Hit %0%
Input: $0.0000Cache Read: $0.0000Output: $0.0000Per 1K reqs: $0.0000

Closest Price-Tier Alternatives

Model Input / 1M Output / 1M Context
Mistral: Ministral 3 8B 2512 $0.15 $0.15 262.1K
OpenAI: GPT-5 Nano $0.05 $0.4 400K
Google: Gemini 2.5 Flash Lite $0.1 $0.4 1.05M
OpenAI: GPT-4.1 Nano $0.1 $0.4 1.05M
DeepSeek: DeepSeek V4.1 Flash $0.14 $0.42 1.05M
OpenAI: GPT-6 Luna $0.1 $0.5 1.05M

Optimize Inference & Self-Hosting

Compare Google: Gemma 4 31B against flagship models from OpenAI, Anthropic, Google, and DeepSeek in our interactive comparison matrix, or benchmark self-hosted GPU break-even thresholds.

Model Specifications & FAQs

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 API cost per 1M tokens?

Google: Gemma 4 31B costs $0.00 per 1M input tokens and $0.00 per 1M output tokens (official direct provider rate), verified on 2026-11-30.

Does Google: Gemma 4 31B support prompt caching or batch discounts?

Prompt caching pricing is not currently exposed for this model. Batch API pricing is not listed for this endpoint.

What is the context window and max output for Google: Gemma 4 31B?

Google: Gemma 4 31B supports a 262,144-token context window and up to 16,384 output tokens per completion.