Gemma 4 31B.
Google DeepMind's instruction-tuned 31B dense open-weights model for coding, reasoning and agents, reading text and images with a 256K-token context under Apache 2.0.
1× NVIDIA Quadro RTX 6000 · $0.14/hr.
Most-aggressive quantisation we have a working recommendation for. Lower precision = less VRAM = cheaper hardware, at a small accuracy cost.
Cheapest hosted endpoints.
Variants in the Gemma family.
Google's open-weight multimodal LLM — efficient and license-permissive.
Gemma 2 27B is Google's open-weights English text model under the Gemma licen...
9B Gemma 2 — single-GPU local target.
Tiny 2B Gemma 2 — laptop / mobile.
Gemma 3 4B is Google's small open-weights model with text and image input and...
1B Gemma 3 — edge / mobile.
Gemma 3 introduces multimodality, supporting vision-language input and text o...
Gemma 3n E4B-it is optimized for efficient execution on mobile and low-resour...
Gemma 4 26B A4B is Google DeepMind's Apache 2.0 mixture-of-experts model, 25....
Frequently asked.
How do I run Gemma 4 31B?
Where can I access Gemma 4 31B?
How much does it cost to run Gemma 4 31B?
Is Gemma 4 31B open-source or proprietary?
Cheapest hardware per quantisation.
Each row is one quantisation tier (the same weights compressed differently). Lower precision → lower VRAM → cheaper hardware, at the cost of small accuracy loss. $/hr is the cheapest rate on offer now. A multi-card setup uses a real instance of that size when one is rented; otherwise it is the single-card rate times the count.
| Quantisation | Cheapest GPU config | Total VRAM | Live $/hr | tokens/sec | |
|---|---|---|---|---|---|
|
FP16
FP16 — half precision (default)
|
96 GB |
$0.51/hr
est. 2 × single-card rate
Vast.ai · on-demand
|
— | Compare → | |
|
FP8
FP8 — 8-bit float (Hopper / Blackwell)
|
48 GB |
$0.26/hr
Vast.ai · on-demand
|
15.2 | Compare → | |
|
INT4
INT4 — 4-bit integer (~4× VRAM saving)
|
24 GB |
$0.14/hr
Vast.ai · on-demand
|
30.3 | Compare → |
What it costs per month across providers.
Estimate your monthly bill for Gemma 4 31B across every host that publishes per-token pricing. Slide your token volumes; the chart + table re-rank cheapest-first.
Cheapest provider on the left.
Total monthly cost — input + output tokens combined.
Bill breakdown.
Rent the GPU instead of paying per token.
For an open-weights model like Gemma 4 31B, you can rent a GPU and serve inference yourself. The math: cheapest GPU rental × 730 hours/month. Power is included in a rental's hourly price.
Assumes the GPU runs 24/7 at ~85% utilisation. If your traffic is bursty, you'll pay less for the API and probably more for the GPU (idle hours still cost rental). The breakeven analysis lives on the Self-host vs API breakeven tool.
About Gemma 4 31B.
The instruction-tuned 31B dense model in Google DeepMind's Gemma 4 family, with open weights under Apache 2.0. It has about 30.7B parameters, takes text and images, writes text, and supports a 256K-token context across more than 140 languages. Reasoning has configurable thinking modes, and it supports native function calling and a system role. Google points it at coding, reasoning, agent workflows and multimodal understanding on consumer GPUs and workstations. Audio input is limited to the smaller Gemma 4 sizes.