Google

Gemma 4 31B

$0.20 per 1M input tokens and $0.40 per 1M output tokens · 262K context · vision, tools, reasoning, JSON, open weights.

Prices checked Dec 6, 2026 · tracked by LLM Cost Index since Oct 21, 2026

$0.20
input / 1M tokens
$0.40
output / 1M tokens
262K
context window
16K
max output
4
Artificial Analysis intelligence index

What Gemma 4 31B costs per month

Estimated monthly bill for typical workloads. Try your own numbers in the cost calculator.

WorkloadPer month
Customer chatbot
1,000 conversations a day, 8 turns each
$106
Document Q&A (RAG)
500 questions a day over retrieved documents
$21.00
Coding / tool-using agent
200 tasks a day, long tool-heavy contexts
$81.60
Content generation
30 long articles a day
$1.44
Classification / extraction
100,000 short items a day
$198

Price history

No input price change since Oct 21, 2026. See all recent price changes.

Where to run Gemma 4 31B: 18 providers

Chutes is the cheapest at $0.072 input / $0.222 output per 1M tokens. Uptime is the average over the last 30 days as reported by OpenRouter; see provider reliability.

ProviderInput / 1MOutput / 1MContextUptimeNotes
Chutes$0.072$0.222131K98.7% fp4
CoreWeave$0.10$0.34262K99.3% fp4
KT$0.10$0.34262K99.2% —
OpenInference$0.10$0.3466K43.7% bf16
Makora$0.12$0.34262K95.7% fp8
Venice$0.12$0.36256K99.9% fp4
NextBit$0.125$0.34262K100% fp4
DeepInfra$0.135$0.51262K99.4% priority tier, fp4
Crusoe$0.14$0.40260K99.5% —
Friendli$0.14$0.40262K99.9% —
Parasail$0.15$0.40262K99.8% fp8
DeepInfra$0.16$0.32262K99.8% flex tier, fp8
DeepInfra$0.20$0.40262K99.8% fp8
PrimeIntellect$0.20$0.335262K97.5% fp8
DeepInfra$0.30$0.60262K99.1% priority tier, fp8
Modal$0.34$0.10131K99.1% —
SambaNova$0.38$1.15131K89.1% —
SiliconFlow$0.75$1.00262K84.9% fp8

Cheaper alternatives to Gemma 4 31B

Models with the same tool calling, image input, structured output for at least 20% less (3:1 input/output mix), most capable first.

Cheaper alternatives to Gemma 4 31B
Model Input / 1M Output / 1M Context Capabilities
$0.02 $0.20 1.05M visiontoolsreasoningJSONopen weights
MiMo-V2.6-Flash
Xiaomi
$0.14 $0.28 1.05M visionaudiotoolsreasoningJSONopen weights
$0.06 $0.36 1.05M visiontoolsreasoningJSONopen weights
Hy4 flash
Tencent
$0.07 $0.281 1.05M visiontoolsreasoningJSONopen weights
Inkling 2 Mini
Thinkingmachines
$0.06 $0.24 1.05M visiontoolsreasoningJSONopen weights

How to pay less for Gemma 4 31B

For a customer chatbot (1,000 conversations a day, 8 turns each) that costs $106 a month at list price without caching:

OptionPer monthYou save
Move to DeepSeek V4.1 Flash 1017 (similar capabilities)$19.90$85.70 (81%)
Route to Chutes$44.57$61.03 (58%)

Other workloads: cut-your-bill tool for Gemma 4 31B.

Specifications

Model IDgoogle/gemma-4-31b-it
Inputimage, text, video
Outputtext
Tool callingYes
Structured outputYes
Reasoning modeYes
Open weightsYes — google/gemma-4-31B-it
ReleasedApr 2, 2026

FAQ

How much does Gemma 4 31B cost?
$0.20 per million input tokens and $0.40 per million output tokens. Prices as of Dec 6, 2026.
What is the context window of Gemma 4 31B?
262K tokens, with up to 16K output tokens per response.
Does Gemma 4 31B support images, tools and structured output?
Images as input: yes. Tool calling: yes. Structured (JSON) output: yes. Reasoning mode: yes.
What are cheaper alternatives to Gemma 4 31B?
Models with the same key capabilities for at least 20% less include DeepSeek V4.1 Flash 1017 ($0.02 / $0.20), MiMo-V2.6-Flash ($0.14 / $0.28), Qwen4 35B A3B ($0.06 / $0.36).

More from Google: all Google models · how we collect prices