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

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

Gemma 3 4B by Google: $0.05 per 1M input tokens, $0.10 per 1M output tokens, 131K token context window, monthly workload cost estimates and rival LLM comparisons.

$0.05Input / 1M
$0.10Output / 1M
131KContext
16KMax Output
GoogleProvider
text+image->textModality

Gemma 3 4B token cost by volume

Token volumeInput costOutput cost
10K tokens$0.0005$0.0010
100K tokens$0.0050$0.01
1M tokens$0.05$0.10
10M tokens$0.50$1.00
100M tokens$5.00$10.00
Workload scenario (30 days)Est. monthly bill
Customer chatbot (1,000 chats/day · 1.5K in + 500 out)$3.75
Enterprise RAG search (5,000 queries/day · 4K in + 600 out)$39.00
Coding / agentic workflow (500 runs/day · 12K in + 2K out)$12.00

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

Precision / QuantizationModel weightsEst. VRAM (with 8K KV cache)Recommended GPU / Memory tier
FP16 / BF16 (16-bit)8.0 GB10.0 GBRTX 3060 12GB / RTX 4070 12GB / Mac 16GB
INT8 / Q8_0 (8-bit)4.2 GB5.7 GBRTX 3060 8GB / Mac M1–M4 8GB
Q6_K (6-bit)3.3 GB4.6 GBRTX 3060 8GB / Mac M1–M4 8GB
Q4_K_M (4-bit)2.3 GB3.5 GBRTX 3060 8GB / Mac M1–M4 8GB

More models from Google

Frequently asked questions

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

Gemma 3 4B (Google) is priced at $0.05 per 1 million input tokens and $0.10 per 1 million output tokens.

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

Gemma 3 4B supports a context window of 131,072 tokens with up to 16,384 maximum completion tokens (text+image->text).