All Models / google / google/gemma-4-31b-it:free

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

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...

FREE TIERTool CallingReasoningMultimodal / Vision
Input Price / 1M Tokens
$0.00
Output Price / 1M Tokens
$0.00
Prompt Cache Read / 1M
—
Context Window
262K
Max out: 33K

Interactive Google: Gemma 4 31B (free) Monthly Cost Calculator

Est. Monthly (With Cache)
—
Est. Monthly (Uncached)
—
Est. Daily Run Rate
—

Volume Cost Benchmarks (75% Input / 25% Output)

Monthly Token VolumeUncached API CostWith 50% Prompt Caching
1M Tokens (Small App)$0.00$0.00
10M Tokens (Growing SaaS)$0.00$0.00
100M Tokens (Scale / Agents)$0.00$0.00
1B Tokens (Enterprise)$0.00$0.00

Deploy or Switch Providers

Best for H100 / A100 / 4090

RunPod Cloud GPUs

Spin up on-demand H100, A100, L40S, and RTX 4090 pods or serverless vLLM endpoints in seconds.

Launch GPU on RunPod →
Predictable Cloud Infra

DigitalOcean GPU Droplets

Deploy AI inference APIs, vector databases, and GPU droplets with simple monthly billing.

Try DigitalOcean →
1 API Key · 470+ Models

OpenRouter Unified API

Switch between Gemini, Claude, GPT, DeepSeek, and Llama with one OpenAI-compatible key.

Get Unified API Key →

Lower-Cost Alternatives to Google: Gemma 4 31B (free)