Google

Gemma 4 31B API pricing

Made by Google

5 provider routes, checked 27 Nov 2026. For a sample chat workload, the cheapest is Amazon Bedrock at $132.00 a month; the dearest costs $772.80, 5.9× as much.

Input from
$0.14
Output from
$0.40
Context up to
256K tokens
Batch rates
2 routes

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
Amazon BedrockLiteLLM$0.14$0.40——$0.07 / $0.20256K$132.00
KymaLiteLLM$0.164$0.469$0.164——128K$154.79
Amazon BedrockLiteLLM$0.168$0.48——$0.084 / $0.24256K$158.40
Amazon BedrockLiteLLM$0.168$0.48———256K$158.40
CerebrasLiteLLM$0.99$1.49———131K$772.80

Other Gemma models