Gemma 3 4B API pricing
3 providers serve Gemma 3 4B. Gemma 3 4B is a proprietary API model, up to 131K context. Prices below are per 1M tokens, cheapest input first.
Refreshed 2026-08-23 · list prices from provider APIs| Provider | Input $/1M | Output $/1M | Cache read $/1M | Context | |
|---|---|---|---|---|---|
| DeepInfra | $0.040 | $0.080output floor | - | 131K | Use |
| AWS Bedrock | $0.040 | $0.080 | - | 128K | Use |
| OpenRouter marketplace quote | $0.050 | $0.100 | - | 131K | Use |
The cheapest way to run Gemma 3 4B
On an illustrative 70M-input / 30M-output monthly workload, today's lowest listed cost is roughly $5.20/month — the same at DeepInfra and AWS Bedrock. Input-heavy, output-heavy and cache-heavy workloads can produce different winners. Use the live mix calculator below rather than combining floors from two different providers. It is API-only, so the table above is your full set of options. Run your own numbers in the breakeven calculator, or read the breakeven math.
Your actual monthly cost
Cache read uses the listed cache rate where available; otherwise it falls back to normal input price. Batch, write-cache, volume and negotiated discounts are excluded.
Related models
| Model | Cheapest in $/1M | Cheapest out $/1M | Providers |
|---|---|---|---|
| Gemma 3 27B | $0.060 | $0.160 | 7 |
| Gemma 3 12B | $0.050 | $0.100 | 5 |
| Gemma 4 26B A4B | $0.070 | $0.300 | 4 |
| Gemma 4 31B | $0.100 | $0.340 | 4 |
| Gemma-7b-It | $0.050 | $0.080 | 3 |
FAQ
What is the cheapest API for Gemma 3 4B?
As of 2026-08-23, the lowest input price for Gemma 3 4B, $0.040 per 1M tokens, is the same list price at DeepInfra and AWS Bedrock. The lowest output price, $0.080 per 1M tokens, is likewise shared by the same providers. The cheapest provider for a real workload depends on its input/output mix. The next-lowest input price is OpenRouter at $0.050, a 25% difference.
← All models · GPU rental prices · Breakeven calculator · Get this data as JSON