by Google DeepMind

Gemma 4 31B.

multimodal open weights workstation 31B params 262K ctx
Cheapest input
$0.09/M
on DeepInfra
Cheapest output
$0.34/M
on DeepInfra
Smallest GPU
1× NVIDIA Quadro RTX 6000
$0.14/hr

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.

Smallest GPU to run it See all quantisations →

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.

Where to use it Top 5 cheapest · 6 total below

Cheapest hosted endpoints.

Provider Access $/M in $/M out
DeepInfra hosted inference $0.09 $0.34 Launch ↗
DeepInfra hosted inference $0.2 $0.4 Launch ↗
OpenRouter api aggregator $0.2 $0.4 Launch ↗
DeepInfra hosted inference $0.27 $0.76 Launch ↗
Together AI hosted inference $0.39 $0.97 Launch ↗
Sources

Official references.

Family

Variants in the Gemma family.

FAQ

Frequently asked.

How do I run Gemma 4 31B?
Gemma 4 31B is open-weight, so you can self-host on rented GPUs. See the Run It Yourself tab for GPU configurations + cost estimates, or use one of the hosted inference providers listed on this page.
Where can I access Gemma 4 31B?
Gemma 4 31B is available via Together AI, DeepInfra, OpenRouter. Each access option lists its own pricing (per million tokens or hourly hosting).
How much does it cost to run Gemma 4 31B?
API pricing starts at $0.09/M input tokens and $0.34/M output tokens. Self-hosting cost depends on the GPU you rent — see the Run It Yourself tab.
Is Gemma 4 31B open-source or proprietary?
Gemma 4 31B is open-weight under the apache-2.0 license. You can download and self-host it.