Google: 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 RTX 4000 Ada SFF · $0.18/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.
Google's pre-Gemma-3 open-weight workhorse.
9B Gemma 2 — single-GPU local target.
Tiny 2B Gemma 2 — laptop / mobile.
4B Gemma 3 — laptop multimodal.
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 IT is an instruction-tuned Mixture-of-Experts (MoE) model fro...
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 refreshed hourly from each provider's API.
| Quantisation | Cheapest GPU config | Total VRAM | Live $/hr | tokens/sec | |
|---|---|---|---|---|---|
|
FP16
FP16 — half precision (default)
|
80 GB | $1.09/hr | — | Compare → | |
|
FP8
FP8 — 8-bit float (Hopper / Blackwell)
|
40 GB | $0.79/hr | — | Compare → | |
|
INT4
INT4 — 4-bit integer (~4× VRAM saving)
|
20 GB | $0.18/hr | — | Compare → |
What it costs per month across providers.
Estimate your monthly bill for Google: 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 Google: Gemma 4 31B, you can rent a GPU and serve inference yourself. The math: cheapest GPU rental × 730 hours/month + your electricity rate × power draw.
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 Google: 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.