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

Google: Gemma 4 31B (free) API Pricing & Cost Breakdown

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, native function...

google/gemma-4-31b-it:free
FreeVisionOpen Weight
Last checked: Nov 21, 2026
Input / 1M Tokens
Free
Prompt & context tokens
Output / 1M Tokens
Free
Generated completion tokens
Blended (3:1) / 1M
Free
Tier: free
Context Window
262K
Max output: 33K

Technical Specifications

Canonical IDgoogle/gemma-4-31b-it:free
ProviderGoogle
Input Modalitiesimage, text, video
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 $0.00/mo
Growing SaaS
10,000 req/day
600.0M in / 150.0M out $0.00/mo
Scale Production
100,000 req/day
7500.0M in / 1800.0M out $0.00/mo
Simulate Custom Volume →

Deploy or Route Google: Gemma 4 31B (free)

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.

Frequently Asked Questions

How much does Google: Gemma 4 31B (free) API cost per 1M tokens?

Google: Gemma 4 31B (free) is currently listed on a rate-limited free tier ($0.00 input and $0.00 output per 1M tokens).

What is the maximum context window of Google: Gemma 4 31B (free)?

Google: Gemma 4 31B (free) supports up to 262,144 tokens (262K) of input context and up to 32,768 output completion tokens.

What are cheaper alternatives to Google: Gemma 4 31B (free)?

Google: Gemma 4 31B (free) is already among the lowest-cost endpoints tracked in this category.

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.