Skip to content

Google: Gemma 4 31B

GoogleOpen weights

Google: Gemma 4 31B by Google costs $0.09 per 1M input tokens and $0.34 per 1M output tokens, with a 262K-token context window.

Pricing

Input (per 1M tokens)
$0.09
Output (per 1M tokens)
$0.34
Cached input (per 1M)
$0.05

Specifications

Provider
Google
Context window
262K tokens
Parameters
—
Released
Apr 2026
Open weights
Yes
Frontier model
No
Hugging Face
google/gemma-4-31B-it

Benchmarks

Speed & latency

Time to first token
0.38s
Output speed
34 tok/s

Fastest host: deepinfra (via hf-router).

Compare Google: Gemma 4 31B with…

FAQ

How much does Google: Gemma 4 31B cost?

Google: Gemma 4 31B is priced at $0.09 per 1M input tokens and $0.34 per 1M output tokens. Output tokens cost more than input.

What is Google: Gemma 4 31B's context window?

Google: Gemma 4 31B supports a context window of 262K tokens — the maximum prompt plus response length it can handle in a single request.

Is Google: Gemma 4 31B open weight?

Yes — Google: Gemma 4 31B has openly available weights.

Data as of 2026-10-14. Source: Pricing via OpenRouter API, openrouter.ai. Pricing is per 1M tokens (USD); confirm with the provider before production use.