Google

Gemma 4 31B API pricing

Made by Google

26 provider routes, checked 27 Nov 2026. For a sample chat workload, the cheapest is Google AI Studio at $0.00 a month.

Input from
$0.00
Output from
$0.00
Context up to
262K tokens
Batch rates
None listed

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
Google AI Studiofree tier, rate-limited · LiteLLM$0.00$0.00———262K$0.00
Chutesfp4 · OpenRouter$0.12$0.37$0.012——131K$84.00
Venicefp4 · OpenRouter$0.12$0.36$0.05——256K$94.20
KTOpenRouter$0.10$0.34$0.10——262K$100.80
CoreWeavefp4 · OpenRouter$0.10$0.34$0.10——262K$100.80
NextBitfp4 · OpenRouter$0.125$0.34$0.075——262K$100.80
Weights & BiasesLiteLLM$0.10$0.34———262K$100.80
TensormeshLiteLLM$0.14$0.56$0.00——33K$109.20
Parasailfp8 · OpenRouter$0.15$0.40$0.06——262K$111.00
PrimeIntellectfp8 · OpenRouter$0.173$0.289$0.086——262K$112.38
GMI CloudLiteLLM$0.14$0.40$0.10——262K$120.00
DeepInfrafp4 · OpenRouter$0.135$0.51$0.075——262K$124.20
AihubmixLiteLLM$0.14$0.40———262K$132.00
Crusoebf16 · OpenRouter$0.14$0.40$0.14——260K$132.00
FriendliOpenRouter$0.14$0.40———262K$132.00
NovitaLiteLLM$0.14$0.40———262K$132.00
DeepInfrafp8 · OpenRouter$0.16$0.32———262K$134.40
AiandLiteLLM$0.20$0.50$0.05——262K$135.00
LibertaiLiteLLM$0.15$0.40———262K$138.00
ModalOpenRouter$0.34$0.10$0.10——131K$144.00
DeepInfrafp8 · OpenRouter$0.20$0.40———262K$168.00
DeepInfrafp8 · OpenRouter$0.30$0.60———262K$252.00
SAILLiteLLM$0.40$0.60$0.20——256K$252.00
SambaNovaOpenRouter$0.38$1.15———131K$366.00
ModelRunfp4 · OpenRouter$0.75$1.00$0.20——262K$405.00
SiliconFlowfp8 · OpenRouter$0.75$1.00$0.25——262K$420.00

Other Gemma models