Google

Gemma 3 4B API pricing

Made by Google

10 provider routes, checked 27 Nov 2026. For a sample chat workload, the cheapest is Parasail at $24.00 a month; the dearest costs $63.00, 2.6× as much.

Input from
$0.04
Output from
$0.05
Context up to
131K tokens
Batch rates
1 route

Every route, cheapest first

Prices per 1M tokens. Month is the sample workload: 300,000 requests, 2,000 tokens in and 400 out per request, half the input cached. Cache writes are not counted.

ProviderInputOutputCache readCache writeBatch in / outContextMonth
Parasailbf16 · OpenRouter$0.04$0.05$0.02——131K$24.00
DeepInfrabf16 · OpenRouter$0.04$0.08———131K$33.60
Amazon BedrockLiteLLM$0.04$0.08——$0.02 / $0.04128K$33.60
Amazon BedrockLiteLLM$0.0412$0.0824———128K$34.61
Amazon BedrockLiteLLM$0.048$0.096———128K$40.32
Amazon Bedrockap-south-1, eu-south-1, eu-west-1 · LiteLLM$0.05$0.09———128K$40.80
DeepInfrabf16 · OpenRouter$0.05$0.10———131K$42.00
Amazon Bedrockap-northeast-1, sa-east-1 · LiteLLM$0.05$0.10———128K$42.00
Amazon Bedrockeu-west-2 · LiteLLM$0.06$0.12———128K$50.40
DeepInfrabf16 · OpenRouter$0.075$0.15———131K$63.00

Other Gemma models