Google · live price
Gemma 4 31B API pricing
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...
- Input
- $0.09
- per 1M tokens
- Output
- $0.34
- per 1M tokens
- Cached input
- $0.05
- per 1M tokens
- Context
- 262K
- 16K max output
List price from OpenRouter, which passes Google's price through without markup. Refreshed hourly. Released April 2, 2026. Model id google/gemma-4-31b-it.
What Gemma 4 31B costs in practice
1,000 chat messages
$0.26
1,000 input + 500 output tokens each
1,000 RAG questions
$0.89
8,000 input + 500 output tokens each
100 coding-agent steps
$0.34
30,000 input + 2,000 output tokens each, no caching
Gemma 4 31B price history
Gemma 4 31B price by host
- DeepInfra$0.09 in · $0.34 out · 262K ctx · 99.0% uptime 24h
- DekaLLM$0.1 in · $0.33 out · 262K ctx · 89.7% uptime 24h
- CoreWeave$0.1 in · $0.34 out · 262K ctx · 99.3% uptime 24h
- Venice$0.12 in · $0.36 out · 256K ctx · 99.0% uptime 24h
- Chutes$0.12 in · $0.37 out · 131K ctx · 84.8% uptime 24h
- Crusoe$0.14 in · $0.4 out · 262K ctx · 100.0% uptime 24h
- Friendli$0.14 in · $0.4 out · 262K ctx · 99.7% uptime 24h
- Novita$0.14 in · $0.4 out · 262K ctx · 84.4% uptime 24h
- Parasail$0.15 in · $0.4 out · 262K ctx · 99.3% uptime 24h
- Io Net$0.38 in · $1.15 out · 262K ctx · 98.8% uptime 24h
- SambaNova$0.38 in · $1.15 out · 262K ctx · 97.8% uptime 24h
- ModelRun$0.75 in · $1 out · 262K ctx · 99.9% uptime 24h
- SiliconFlow$0.75 in · $1 out · 262K ctx · 98.3% uptime 24h
Where to buy Google credits for less
Disclosure: this site is run by the team behind smaaart, one of the options compared. Tables are ranked by price only, from live quotes and published fees, including when smaaart isn't first. How we compare
Gemma 4 31B cost calculator
Cheaper alternatives to Gemma 4 31B
| Model | Input / 1M | Output / 1M |
|---|---|---|
| DeepSeek: DeepSeek V4.1 Flash | $0.03 | $0.5 |
| Qwen: Qwen3.7 Flash | $0.03 | $0.13 |
| DeepSeek: DeepSeek V4 Flash 0423 | $0.042 | $0.084 |
| Qwen: Qwen3.5-9B | $0.1 | $0.15 |
| Qwen: Qwen3.5-Flash | $0.065 | $0.26 |
| Z.ai: GLM 4.7 Flash | $0.061 | $0.4 |
Other Google models
| Model | Input / 1M | Output / 1M |
|---|---|---|
| Gemma 4 26B A4B | $0.09 | $0.3 |
| Gemini 3.1 Flash Lite Preview | $0.25 | $1.50 |
| Gemini 3.1 Flash Lite | $0.25 | $1.50 |
| Nano Banana 2 (Gemini 3.1 Flash Image Preview) | $0.5 | $3 |
| Gemini 3.1 Pro Preview Custom Tools | $2 | $12 |
| Gemini 3.1 Pro Preview | $2 | $12 |