LLMCost
google

Google: Gemma 4 31B (free) API Pricing

Google: Gemma 4 31B (free) costs Free per 1M input tokens and Free per 1M output tokens. Context window: 262K. Prices verified 2026-10-21 · source

🔔 Price alerts coming soon
Price history
2026-08-23 → 2026-10-21 · 59 daily snapshots
inputoutput

Rebuilt daily from our snapshot archive — the chart appears once a model has 5+ snapshots of history.

Community adoption
8.8M
HF downloads
4K
Likes

High adoption means battle-tested weights, more fine-tunes/quants, and faster bug fixes. View on HuggingFace →

Pricing behavior
Stable — no price moves across our 59 daily snapshots (2026-08-23 → 2026-10-21).

From our own daily snapshot archive — independent of provider announcements.

Intelligence & capability
via Artificial Analysis
14.7
Intelligence index · top 63% of 288 scored
43.4
Coding index
4.2
Agentic index
$0
Blended $/1M (3:1 in:out)

Intelligence measures reasoning/knowledge/coding benchmarks. A high score with a low blended price = value pick; check the value chart to see where this model lands.

Input / 1M tokens
Free
Output / 1M tokens
Free
Context window
262K
Max output
33K
Reasoning behavior
Mode: Off by default (opt-in)

Higher effort = deeper thinking = more reasoning tokens billed as output.

What would Google: Gemma 4 31B (free) cost you per month?

WorkloadRequests/moAvg tokens (in/out)Est. monthly cost
Light chatbot10,000800 / 400$0.00
Coding agent5,0008,000 / 2,000$0.00
RAG pipeline30,0004,000 / 500$0.00
Doc summarizer2,00020,000 / 1,000$0.00

Estimates use list prices without prompt caching. Caching can cut input cost by up to 90% on repeated context.

About Google: Gemma 4 31B (free)

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

Compare Google: Gemma 4 31B (free) with

    Popular head-to-heads — see all on the comparisons index.

    Frequently asked questions

    How much does Google: Gemma 4 31B (free) cost?

    Google: Gemma 4 31B (free) costs Free per 1M input tokens and Free per 1M output tokens. Verified 2026-10-21 — provider source.

    What is the context window?

    262K tokens, with up to 33K output tokens per response. That's roughly 328 pages of text in a single request.

    Does it support prompt caching?

    Prompt-caching pricing is not published for this model via OpenRouter.

    What's a cheaper alternative?

    Check the value chart for models with similar intelligence at lower cost.

    Official resources