Google · open weights
Gemma 4 31B API pricing by provider
Gemma 4 31B is available from 11 providers. The cheapest is DeepInfra at $0.09 input / $0.34 output per 1M tokens (FP4). The priciest host, SiliconFlow, charges 5.3x the cheapest.
Prices from the OpenRouter API, retrieved September 15, 2026. Weights: google/gemma-4-31B-it.
| Provider | Precision | Input / 1M | Output / 1M | Document Q&A / month | Context | Max output |
|---|---|---|---|---|---|---|
| DeepInfra | fp4 | $0.09 | $0.34 | $46.20 | 262K | 16K |
| CoreWeave | fp4 | $0.10 | $0.34 | $50.20 | 262K | 236K |
| Venice | bf16 | $0.12 | $0.36 | $58.80 | 256K | 8K |
| Chutes | fp4 | $0.12 | $0.37 | $59.10 | 131K | 66K |
| DeepInfra | fp8 | $0.13 | $0.38 | $63.40 | 262K | 16K |
| Crusoe | — | $0.14 | $0.40 | $68.00 | 262K | 262K |
| Friendli | — | $0.14 | $0.40 | $68.00 | 262K | 8K |
| Parasail | fp8 | $0.15 | $0.40 | $72.00 | 262K | 236K |
| DeepInfra | fp8 | $0.27 | $0.76 | $130.80 | 131K | 8K |
| Together | — | $0.39 | $0.97 | $185.10 | 262K | 236K |
| SambaNova | — | $0.38 | $1.15 | $186.50 | 131K | 118K |
| ModelRun | fp4 | $0.75 | $1.00 | $330.00 | 262K | 236K |
| SiliconFlow | fp8 | $0.75 | $1.00 | $330.00 | 262K | 236K |
Sorted by blended price (3 input : 1 output). Document Q&A assumes 50,000 questions a month with 8,000 input and 600 output tokens each. Precision is reported by the provider; “—” means not disclosed.
Frequently asked questions
- What is the cheapest Gemma 4 31B API provider?
- DeepInfra is the cheapest healthy provider we track at $0.09 per 1M input tokens and $0.34 per 1M output tokens.
- How much does Gemma 4 31B cost?
- Across 11 providers, input prices range from $0.09 to $0.75 per 1M tokens and output prices from $0.34 to $1.15.
- What is Gemma 4 31B’s context window?
- Gemma 4 31B supports up to 262K tokens, but some providers serve a smaller context window — check the table before choosing.
Other open-weight models
- DeepSeek V4.1 Flashfrom $0.15 / $0.60
- DeepSeek V4 Pro 0813from $0.96 / $2.88
- Kimi K3from $2.10 / $10.95
- GLM 5.3from $0.91 / $2.86
- GLM 5.3 Flashfrom $0.075 / $0.25
- Qwen3.8 27Bfrom $0.15 / $2.00
- MiniMax M3from $0.23 / $0.96
- gpt-oss-120bfrom $0.03 / $0.17
- gpt-oss-20bfrom $0.02 / $0.10
- Llama 4 Maverickfrom $0.1875 / $0.6525
- Llama 3.3 70B Instructfrom $0.10 / $0.32
- Mistral Small 4from $0.15 / $0.60
- Nemotron 3 Superfrom $0.085 / $0.40