by Google DeepMind

Gemma 3 4B.

multimodal open weights edge 4B params 128K ctx
Cheapest input
$0.04/M
on OpenRouter
Cheapest output
$0.05/M
on OpenRouter
Smallest GPU
1× Nvidia GeForce GTX 1650
$0.052/hr
API pricing

What it costs per month across providers.

Estimate your monthly bill for Gemma 3 4B across every host that publishes per-token pricing. Slide your token volumes; the chart + table re-rank cheapest-first.

Cheapest
$0.5
OpenRouter
Most expensive
$0.7
DeepInfra
Spread
$0.2
max − min
Providers
2
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
$0.5 Sign up ↗
$0.7 Sign up ↗
Self-host alternative

Rent the GPU instead of paying per token.

Full breakdown →

For an open-weights model like Gemma 3 4B, 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.

GPU rental
$37.81
1× Nvidia GeForce GTX 1650 @ $0.052/hr
Self-host total
$37.81
per month
API beats self-host
+$37.31
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 →