Google: Gemma 4 31B (free) API pricing
Google: Gemma 4 31B (free) is currently free on OpenRouter (rate-limited). Context window: 262,144 tokens.
freeinput / 1M tokens
freeoutput / 1M tokens
256Kcontext
text+image+video->textmodality
What it costs in practice
| Workload | Cost |
|---|---|
| Chatbot: 10,000 messages (1,500 in / 400 out tokens each) | $0.000 |
| RAG: 1,000 queries (8,000 in / 600 out each) | $0.000 |
| Summarize 100 long documents (50,000 in / 1,000 out each) | $0.000 |
Cross-check against the provider's list price
No first-party entry for this model in LiteLLM's price map, so this price comes from OpenRouter only.
Price history
No price change recorded since we started tracking on Nov 17, 2026. We check every 6 hours and log every change.
Run it yourself instead
The open weights are on Hugging Face. See the VRAM gemma 4 31B it needs and which GPUs fit it →
Source: OpenRouter listing via the public models API. Prices checked Nov 17, 2026. Model ID google/gemma-4-31b-it:free, listed Apr 2, 2026. Report an error.