Home / google / Google: Gemma 4 31B

Google: Gemma 4 31B 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...

ReasoningVisionOpen-Weight google/gemma-4-31b-it
Input / 1M
$0.200
Output / 1M
$0.400
Cache Read / 1M
—
Blended 3:1 / 1M
$0.250
Agent Cached / 1M
$0.240
Context Window
262.1K

Monthly Workload Cost Calculator

Daily
$1.20
Monthly
$36.00
Cache Saved
$0.00
Annual
$438.00

Benchmarks & Capabilities

Intelligence Index4
Coding / Engineering— / 12
Agentic Index—
Design Arena Avg ELO—
Value Score3.65
Modalitytext+image+video->text
Max Output16.4K

5 Cheaper Alternatives to Google: Gemma 4 31B

Alternative ModelBlended / 1MInput / 1MOutput / 1MIntelSide-by-Side
Anthropic: Claude Haiku 5.5 (batch)
anthropic/claude-haiku-5.5:batch
$0.100 $0.050 $0.250 37 Compare →
Anthropic: Claude Haiku 5.5
anthropic/claude-haiku-5.5
$0.200 $0.100 $0.500 37 Compare →
Meta: Muse Ember
meta/muse-ember
$0.200 $0.100 $0.500 36 Compare →
DeepSeek: DeepSeek V4.1 Flash 1017 (batch)
deepseek/deepseek-v4.1-flash-1017:batch
$0.064 $0.035 $0.149 32 Compare →
DeepSeek: DeepSeek V4.1 Flash 1017
deepseek/deepseek-v4.1-flash-1017
$0.065 $0.020 $0.200 32 Compare →

Frequently Asked Questions

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

Google: Gemma 4 31B (google/gemma-4-31b-it) costs $0.200 per 1M input tokens and $0.400 per 1M output tokens (3:1 blended price: $0.250 per 1M tokens).

Does Google: Gemma 4 31B support prompt caching and how much does it save?

No separate cache_read_per_1m discount is listed on OpenRouter for Google: Gemma 4 31B, so repeated prompt tokens are billed at $0.200 per 1M tokens.

What is the context window and maximum output of Google: Gemma 4 31B?

Google: Gemma 4 31B supports a 262.1K token context window (262,144 tokens) and up to 16.4K output tokens per completion.

Fetch Live JSON via API

curl -s "https://llm.lhblabs.com/api/v1/models/google-gemma-4-31b-it"
Recommended Stack: DigitalOcean

Predictable Droplets, managed databases, and GPU nodes for production AI workloads.

Try DigitalOcean →
Self-Serve Placement Building an LLM API, GPU Cloud, or AI Dev Tool?
Feature your product across 1,500+ LLM pricing & comparison pages starting at $49/mo.
Book Sponsor Slot →