by Google DeepMind

Google: 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 RTX 4000 Ada SFF
$0.18/hr
API pricing

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
$1.58
DeepInfra
Most expensive
$5.84
Together AI
Spread
$4.26
max − min
Providers
5
with priced rows
100,000 1,000,000,000
100,000 500,000,000
Monthly bill

Cheapest provider on the left.

Total monthly cost — input + output tokens combined.

Loading...
Per provider

Bill breakdown.

Provider Monthly total
$1.58 Sign up ↗
$2.8 Sign up ↗
$2.8 Sign up ↗
$4.22 Sign up ↗
$5.84 Sign up ↗
Self-host alternative

Rent the GPU instead of paying per token.

Full breakdown →

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.

GPU rental
$131.4
1× Nvidia RTX 4000 Ada SFF @ $0.18/hr
Electricity
—
Self-host total
$131.4
per month
API beats self-host
+$129.82
API is cheaper here

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.

Full calculator
Want to compare token volumes across other models too? Open the standalone API pricing tool →