English
EnglishDeutschEspañolالعربية日本語

Gemma 4 31B — API Pricing, Context Window & Specifications

Gemma 4 31B by Google: $0.20 per 1M input tokens, $0.40 per 1M output tokens, 262K token context window, monthly workload cost estimates and rival LLM comparisons.

$0.20Input / 1M
$0.40Output / 1M
262KContext
16KMax Output
GoogleProvider
text+image+video->textModality

Gemma 4 31B token cost by volume

Token volumeInput costOutput cost
10K tokens$0.0020$0.0040
100K tokens$0.02$0.04
1M tokens$0.20$0.40
10M tokens$2.00$4.00
100M tokens$20.00$40.00
Workload scenario (30 days)Est. monthly bill
Customer chatbot (1,000 chats/day · 1.5K in + 500 out)$15.00
Enterprise RAG search (5,000 queries/day · 4K in + 600 out)$156.00
Coding / agentic workflow (500 runs/day · 12K in + 2K out)$48.00

Gemma 4 31B (31B) local GPU VRAM requirements

Precision / QuantizationModel weightsEst. VRAM (with 8K KV cache)Recommended GPU / Memory tier
FP16 / BF16 (16-bit)62.0 GB72.1 GBNVIDIA A100 / H100 80GB / Mac Studio 96GB–128GB
INT8 / Q8_0 (8-bit)32.9 GB38.6 GB2× RTX 3090/4090 (48GB) / RTX 6000 Ada 48GB / Mac 64GB
Q6_K (6-bit)25.4 GB30.0 GBRTX 5090 32GB / Mac M3–M4 Max 36GB
Q4_K_M (4-bit)18.0 GB21.5 GBRTX 3090 / RTX 4090 24GB / Mac 32GB

More models from Google

Frequently asked questions

How much does the Gemma 4 31B API cost per million tokens?

Gemma 4 31B (Google) is priced at $0.20 per 1 million input tokens and $0.40 per 1 million output tokens.

What is Gemma 4 31B's maximum context window and output limit?

Gemma 4 31B supports a context window of 262,144 tokens with up to 16,384 maximum completion tokens (text+image+video->text).