Skip to content
CostPerPrompt

Gemma 4 31B API Pricing

Google · context window 262K · prices updated 2026-08-02

Input per 1M tokens
$0.1
Output per 1M tokens
$0.34
Cached input per 1M
$0.1
0% cheaper than fresh input

What real workloads cost on Gemma 4 31B

Workload Per request Per month
1K short requests/day (500 in / 150 out) $0.0001 $3.03
Support chatbot, 500 convs/day (~5K in / 1.4K out per conv) $0.001 $14.64
Document pipeline, 10K docs/day (3K in / 500 out) $0.0005 $141

Model your exact traffic in the API cost calculator — it preloads Gemma 4 31B with caching and batch options.

Cheaper alternatives

More Google models

Frequently asked questions

How much does the Gemma 4 31B API cost?

Gemma 4 31B costs $0.1 per million input tokens and $0.34 per million output tokens, with cached input at $0.1 per million (0% cheaper). In practice, a typical short request (500 tokens in, 150 out) costs about $0.0001.

What does 1,000 requests per day cost on Gemma 4 31B?

At 500 input + 150 output tokens per request, 1,000 requests/day costs about $3.03 per month. Heavier workloads scale linearly — use our API cost calculator to model your exact traffic.

How can I reduce Gemma 4 31B costs?

Three levers, in order of impact: (1) route routine requests to a cheaper tier and keep Gemma 4 31B for hard cases; (2) enable prompt caching, which typically halves chatbot bills; (3) use the batch API for non-urgent jobs at a ~50% discount.

Is Gemma 4 31B worth the price?

It depends on task difficulty. Flagship models earn their premium on complex reasoning, coding, and high-stakes output; mini/flash tiers handle classification, extraction and routine chat at 10–30× lower cost. Benchmark a sample of your real workload on both before committing.