Eliminating the 4 Hidden Taxes: AI Tokens, Manual Work, SaaS Cliffs & AI Scrapers Sponsor this header →

Google: Gemma 3 4B API Pricing & Cost Breakdown

Gemma 3 introduces multimodality, supporting vision-language input and text outputs. It handles context windows up to 128k tokens, understands over 140 languages, and offers improved math, reasoning, and chat capabilities,...

google/gemma-3-4b-it
VisionOpen Weight
Last checked: Nov 21, 2026
Input / 1M Tokens
$0.05
Prompt & context tokens
Output / 1M Tokens
$0.10
Generated completion tokens
Blended (3:1) / 1M
$0.063
Tier: ultra-budget
Context Window
131K
Max output: 16K

Technical Specifications

Canonical IDgoogle/gemma-3-4b-it
ProviderGoogle
Input Modalitiestext, image
Output Modalitiestext
Open-WeightYes
Reasoning OptimizedStandard
Vision SupportYes

Estimated Monthly API Spend

StageMonthly TokensEst. Cost
Prototype / MVP
500 req/day
22.5M in / 6.0M out $1.73/mo
Growing SaaS
10,000 req/day
600.0M in / 150.0M out $45.00/mo
Scale Production
100,000 req/day
7500.0M in / 1800.0M out $555.00/mo
Simulate Custom Volume → Cut Cost via 3-Tier Cascade →

Deploy or Route Google: Gemma 3 4B

Open-Weight Inference

Together AI

High-throughput serverless inference & fine-tuning for Llama, DeepSeek, and Qwen.

Run on Together AI →
Dedicated GPUs

RunPod

On-demand H100/A100 GPU pods and serverless vLLM endpoints for private open-weight hosting.

Rent GPUs on RunPod →
Multi-Provider Gateway

OpenRouter

Unified API gateway for 300+ LLMs with automatic fallbacks and unified billing.

Call via OpenRouter →

Some outbound infrastructure and API gateway links on KostoZero are partner referrals that help keep this observatory free and independent at no extra cost to you.

Cheaper Alternatives to Google: Gemma 3 4B

ModelProviderInput / 1MOutput / 1MBlendedContext
Tencent: Hy4 flash Tencent $0.035 $0.141 $0.061 1.05M
Z.ai: GLM 5.3 Flash Z Ai $0.04 $0.078 $0.05 1.05M
Z.ai: GLM Flash Latest Z Ai $0.04 $0.078 $0.05 1.05M
Nex AGI: Nex-N2.5-Mini Nex Agi $0.025 $0.10 $0.044 262K
ScaleDown: Extract Scaledown $0.04 Free $0.03 1M
ScaleDown: Summarize Scaledown $0.04 Free $0.03 1M

Direct Head-to-Head Comparisons

Frequently Asked Questions

How much does Google: Gemma 3 4B API cost per 1M tokens?

Google: Gemma 3 4B costs $0.05 per 1M input tokens and $0.10 per 1M output tokens ($0.063 blended at a 3:1 ratio).

What is the maximum context window of Google: Gemma 3 4B?

Google: Gemma 3 4B supports up to 131,072 tokens (131K) of input context and up to 16,384 output completion tokens.

What are cheaper alternatives to Google: Gemma 3 4B?

Lower-cost options tracked right now include Tencent: Hy4 flash ($0.061/1M), Z.ai: GLM 5.3 Flash ($0.05/1M), Z.ai: GLM Flash Latest ($0.05/1M).

Get Instant Price-Drop (>10%), New AI Bot & SaaS Cliff Alerts

Every 6 hours our autonomous sync checks 40+ LLMs, AI crawlers, and SaaS pricing cliffs—alerting you when prices drop >10% or new scrapers appear.