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 volume | Input cost | Output 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 / Quantization | Model weights | Est. VRAM (with 8K KV cache) | Recommended GPU / Memory tier |
|---|---|---|---|
| FP16 / BF16 (16-bit) | 62.0 GB | 72.1 GB | NVIDIA A100 / H100 80GB / Mac Studio 96GB–128GB |
| INT8 / Q8_0 (8-bit) | 32.9 GB | 38.6 GB | 2× RTX 3090/4090 (48GB) / RTX 6000 Ada 48GB / Mac 64GB |
| Q6_K (6-bit) | 25.4 GB | 30.0 GB | RTX 5090 32GB / Mac M3–M4 Max 36GB |
| Q4_K_M (4-bit) | 18.0 GB | 21.5 GB | RTX 3090 / RTX 4090 24GB / Mac 32GB |
More models from Google
- Gemini Hydrogen Latest
- Gemini Carbon Latest
- Gemini Neon Latest
- Gemini 4 Neon
- Gemini 4 Hydrogen
- Gemini 4 Carbon
- Gemini Omni 1.2 Flash
- Gemini Omni 1.1 Flash
- Gemini 4 Argon
- Nano Banana 2.1
- Gemini 3.8 Flash
- Gemini 3.7 Flash
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).