Gemma 4 31B pricing and routing

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 controlConfidence signal

Cost

Cost per 1,000 requests

Gemma 4 31B 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 numbers in the cost calculator.

Routing

Can a cheaper model answer before it?

Yes. 6 of 15 tracked host endpoints report how sure Gemma 4 31B is of each word, which is the signal Gimbix uses to let a cheaper model answer first.

Tested by Gimbix

On 400 banking questions from the public BANKING77 dataset, Gemma 4 31B got 304 right (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.

Hosts

Who serves Gemma 4 31B

Hosts serving Gemma 4 31B
HostInput / output per 1MEndpointsConfidence signal
Reka$0.08 / $0.301yes
DeepInfra$0.09–$0.27 / $0.34–$0.763no
CoreWeave$0.10 / $0.341yes
Venice$0.12 / $0.361yes
Chutes$0.12 / $0.371no
Crusoe$0.14 / $0.401no
Friendli$0.14 / $0.401no
Novita$0.14 / $0.401yes
Parasail$0.15 / $0.401yes
Io Net$0.38 / $1.151yes
SambaNova$0.38 / $1.151no
ModelRun$0.75 / $1.001no
SiliconFlow$0.75 / $1.001no

A host listed with more than one endpoint sells the model at more than one service tier. A host that lists the confidence signal may still omit it; Gimbix checks each one before relying on it.

Alternatives

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.

Cost per 1,000 chat replies, to scale
Gemma 4 31B$0.316

Compare

Gemma 4 31B against 49 models

Side by side on price, context and routing, for every model teams spend the most on or move traffic to. All 49 comparisons, sorted by price.

Questions

Questions about Gemma 4 31B

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 checks on your own traffic before routing. First, on one set of your requests, the cheaper route must get at least as many right as the model you use today. Then comes a second set it has never seen. There it may get at most 3 wrong that your model got right, and at most 1 more wrong than it fixes.

See whether a cheaper model can carry your Gemma 4 31B traffic

A pilot answers that on your own requests, with a receipt for every saving.

Request an AI cost review