Model tracker / Google
Gemma 4 31B
Gemma 4 31B is a fast open-weight model from Google, released 31 March 2026. At AWS it costs $0.14 per million input tokens and $0.40 per million output tokens, with a 256K-token context window. 5 providers serve it, and AWS is the cheapest.
- Made by
- Alphabet (Google, Google DeepMind, Google Cloud)
- Released
- 2026-03-31
- Status
- Generally available
- Tier
- Fast
- Weights
- Open
- Context window
- 256,000 tokens
- Input
- text, image, video
- API id
google.gemma-4-31b
Gemma 4 31B price at 5 providers
US dollars per million tokens. Blended is 3 input tokens for every output token, one number to compare on. The cheapest blended price is highlighted.
| Provider | Input | Output | Cached input | Blended | Batch | Checked |
|---|---|---|---|---|---|---|
| AWS | $0.14 | $0.40 | – | $0.205 | – | 2026-10-14 |
| Novita AI · google/gemma-4-31b-it | $0.14 | $0.40 | – | $0.205 | – | 2026-10-14 |
| DeepInfra · gemma-4-31B-it | $0.20 | $0.40 | – | $0.25 | – | 2026-10-14 |
| Together AI · google/gemma-4-31B-it | $0.39 | $0.97 | – | $0.535 | – | 2026-10-14 |
| SambaNova · gemma-4-31B-it | $0.38 | $1.15 | – | $0.573 | – | 2026-10-14 |
- AWS: Amazon Bedrock, US East (N. Virginia), Standard tier. Europe (Frankfurt): $0.17 / $0.48.
- Together AI: Together removed google/gemma-4-31B-it from serverless on 2026-09-15 (deprecations page); the pricing page still lists it.
- SambaNova: Preview model on SambaCloud.
Gemma 4 31B price changes
- Until 2026-10-05 at DeepInfra: $0.15 input, $0.40 output per million tokens.
Models like Gemma 4 31B
Other fast models closest in price, at each maker's own price or the cheapest provider.
| Model | Input | Output | Context | Weights |
|---|---|---|---|---|
| Gemma 4 31B | $0.14 | $0.40 | 256K | Open |
| Claude Haiku 5.5 Anthropic | $0.10 | $0.50 | 1M | Closed |
| Ministral 3 14B Mistral AI | $0.20 | $0.20 | 256K | Open |
| GPT-6 Luna OpenAI | $0.10 | $0.50 | 1.1M | Closed |
| Qwen3.8 Flash Alibaba | $0.15 | $0.47 | 1M | Closed |
| GLM-5.3 Flash Z.ai | $0.15 | $0.50 | 1M | Open |
Compare them all in the model tracker →
Gemma 4 31B FAQ
How much does Gemma 4 31B cost?
Gemma 4 31B costs $0.14 per million input tokens and $0.40 per million output tokens at AWS. Prices are list prices in US dollars, last checked 14 October 2026.
What is Gemma 4 31B's context window?
Gemma 4 31B takes up to 256,000 tokens in one request.
Is Gemma 4 31B open weight?
Yes. Google publishes the weights, so you can run Gemma 4 31B yourself or at any host that serves it.
Where can I use Gemma 4 31B?
Gemma 4 31B is available from AWS, Novita AI, DeepInfra, Together AI and SambaNova. At AWS, call it as google.gemma-4-31b.