Home / Models / Google / Gemma 4 31B

Gemma 4 31B pricing and routing profile

Gemma 4 31B from Google lists at $0.09 per million input tokens and $0.34 per million output tokens, with a 262,144-token context window. Prices from OpenRouter's catalogue on 2026-09-28.

Input, per 1M tokens$0.09
Output, per 1M tokens$0.34
Cached input, per 1M$0.05
Context window262K
Confidence signalAvailable

Tool callingStructured outputReasoning controlLog probabilities

Cost per 1,000 requests

Request shapeList cost
Classification or routing (600 tokens in, 10 out)$0.0574
Chat reply (2,000 in, 400 out)$0.316
Retrieval-augmented answer (8,000 in, 500 out)$0.89

Before prompt caching. Try your own shape in the cost calculator.

Can Gimbix route to it first?

Yes. 5 of 15 tracked hosts return token log probabilities for Gemma 4 31B, which is the confidence signal Gimbix uses to let a cheaper model answer first.

Measured by Gimbix

On 400 real BANKING77 customer messages, Gemma 4 31B answered 304 correctly (95% interval 71.6%–79.9%), with 1 invalid answers, at $0.0381 per 1,000 requests and a median of 791 ms. See all 22 models.

Who serves Gemma 4 31B

HostInput / output per 1MLog probabilitiesUptime, last 30 min
Reka$0.08 / $0.30yes99.9%
DeepInfra$0.09 / $0.34no98.0%
CoreWeave$0.10 / $0.34yes98.5%
Venice$0.12 / $0.36yes98.3%
Chutes$0.12 / $0.37no98.5%
DeepInfra$0.13 / $0.38no92.5%
Crusoe$0.14 / $0.40no99.9%
Friendli$0.14 / $0.40no99.9%
Novita$0.14 / $0.40yes82.4%
Parasail$0.15 / $0.40yes99.8%
DeepInfra$0.27 / $0.76no87.9%
Io Net$0.38 / $1.15yes—
SambaNova$0.38 / $1.15no98.8%
ModelRun$0.75 / $1.00no100.0%
SiliconFlow$0.75 / $1.00no99.2%

A host that lists log probabilities may still omit them; Gimbix checks each one before relying on it.

Cheaper models that can answer first

Models priced below Gemma 4 31B that expose a confidence signal. Whether they answer your traffic as well is what a Gimbix pilot measures.

ModelInput / output per 1MCheaper on a chat reply
Qwen3 Coder 30B A3B Instruct$0.07 / $0.2820%
Nemotron 3.5 Lightning$0.08 / $0.2024%
Llama 3.2 3B Instruct$0.05 / $0.3327%
Gemma 4 26B A4B $0.0675 / $0.22529%
Granite 4.2 8B$0.06 / $0.2530%
Nemotron 3 Nano 30B A3B$0.05 / $0.2043%

Questions

How much does Gemma 4 31B cost?

Gemma 4 31B lists at $0.09 per million input tokens and $0.34 per million output tokens on OpenRouter as of 2026-09-28. A typical chat reply of 2,000 input and 400 output tokens costs about $0.316 per 1,000 requests.

What is the context window of Gemma 4 31B?

262,144 tokens.

Can a cheaper model replace Gemma 4 31B?

Sometimes. Gimbix proves it on your own traffic before routing: the cheaper model must match Gemma 4 31B on one half of your requests and make at most three answers worse on the other.