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.
Tool callingStructured outputReasoning controlConfidence signal
Cost
Cost per 1,000 requests
| Request shape | List 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
| Host | Input / output per 1M | Endpoints | Confidence signal |
|---|---|---|---|
| Reka | $0.08 / $0.30 | 1 | yes |
| DeepInfra | $0.09–$0.27 / $0.34–$0.76 | 3 | no |
| CoreWeave | $0.10 / $0.34 | 1 | yes |
| Venice | $0.12 / $0.36 | 1 | yes |
| Chutes | $0.12 / $0.37 | 1 | no |
| Crusoe | $0.14 / $0.40 | 1 | no |
| Friendli | $0.14 / $0.40 | 1 | no |
| Novita | $0.14 / $0.40 | 1 | yes |
| Parasail | $0.15 / $0.40 | 1 | yes |
| Io Net | $0.38 / $1.15 | 1 | yes |
| SambaNova | $0.38 / $1.15 | 1 | no |
| ModelRun | $0.75 / $1.00 | 1 | no |
| SiliconFlow | $0.75 / $1.00 | 1 | no |
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.
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.
- Gemma 4 31B vs Claude Opus 5.5
- Gemma 4 31B vs Claude Sonnet 5
- Gemma 4 31B vs Claude Fable 5.1
- Gemma 4 31B vs Claude Opus 5
- Gemma 4 31B vs GPT-6 Sol
- Gemma 4 31B vs GPT-6 Astra
- Gemma 4 31B vs GPT-5.6 Sol
- Gemma 4 31B vs GPT-5.6 Terra
- Gemma 4 31B vs GPT-5.5
- Gemma 4 31B vs GPT-5.4
- Gemma 4 31B vs Gemini 3.1 Pro Preview
- Gemma 4 31B vs Gemini 3.8 Flash
- Gemma 4 31B vs Grok 4.7
- Gemma 4 31B vs Qwen3.8 Max (0902)
- Gemma 4 31B vs Kimi K3
- Gemma 4 31B vs GLM 5.3
- Gemma 4 31B vs DeepSeek V4 Pro 0423
- Gemma 4 31B vs Mistral Large 3 2512
- Gemma 4 31B vs Nova Premier 1.0
- Gemma 4 31B vs Command A
- Gemma 4 31B vs GPT-6 Luna
- Gemma 4 31B vs GPT-5.6 Luna
- Gemma 4 31B vs GPT-5.4 Mini
- Gemma 4 31B vs GPT-5.4 Nano
- Gemma 4 31B vs GPT-4.1 Mini
- Gemma 4 31B vs gpt-oss-120b
- Gemma 4 31B vs gpt-oss-20b
- Gemma 4 31B vs Claude Haiku 4.5
- Gemma 4 31B vs Gemini 3.5 Flash Lite
- Gemma 4 31B vs DeepSeek V4.1 Flash
- Gemma 4 31B vs DeepSeek V4 Flash 0731
- Gemma 4 31B vs GLM 5.3 Flash
- Gemma 4 31B vs Hy4 preview
- Gemma 4 31B vs MiMo-V2.6-Flash
- Gemma 4 31B vs Nemotron 3.5 Lightning
- Gemma 4 31B vs Nemotron 3 Ultra
- Gemma 4 31B vs Qwen3.8 Flash
- Gemma 4 31B vs Qwen3.7 Flash
- Gemma 4 31B vs Qwen3.8 27B
- Gemma 4 31B vs MiniMax M3
- Gemma 4 31B vs Kimi K2.6
- Gemma 4 31B vs Mistral Small 4
- Gemma 4 31B vs Ministral 3 8B 2512
- Gemma 4 31B vs Llama 4 Maverick
- Gemma 4 31B vs Llama 3.3 70B Instruct
- Gemma 4 31B vs Nova Lite 1.0
- Gemma 4 31B vs Nova Micro 1.0
- Gemma 4 31B vs Command R7B (12-2024)
- Gemma 4 31B vs Phi 4
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