Google: Gemma 4 31B
google/gemma-4-31b-it- Context window
- 262,144 tokens
- Maximum output
- 16,384 tokens
- Input price
- $0.09 per 1M tokens
- Output price
- $0.34 per 1M tokens
- Modalities
- image, text, video
Last verified · Source ↗
Official description
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...
Read the official model reference ↗.
Where this model fits
google/gemma-4-31b-it is part of the OpenRouter API catalog. Its documented modalities are image, text, video. Choose it against the request format, output requirements and operational limits of your application.
The source metadata identifies support for router hosting. Confirm endpoint-specific parameters in the official reference before integrating that capability.
For a repeatable evaluation, use representative requests, inspect structured output or tool calls, and log latency and usage in your own account. Catalog metadata establishes compatibility; it does not measure answer quality on your workload. Start from the provider guide for authentication and endpoint setup.
Current pricing
| Model | Price type | USD | Unit | Tier | Region | Source |
|---|---|---|---|---|---|---|
| Google: Gemma 4 31B | Cached Input | $0.05 | per 1M tokens | Standard | See source | Official source ↗ |
| Google: Gemma 4 31B | Input | $0.09 | per 1M tokens | Standard | See source | Official source ↗ |
| Google: Gemma 4 31B | Output | $0.34 | per 1M tokens | Standard | See source | Official source ↗ |
Last verified · Source ↗
Estimate request, daily and monthly usage in the API cost calculator.
Rate limits and availability
Published limits have not yet been verified for this selection. Check the official limits documentation and your account console.
Last verified · Source ↗
Account-specific capacity may differ. Check the provider rate-limit guide and the free-tier conditions.
Three alternatives to compare
These alternatives share a documented modality and have the closest combination of input price and context size in the current catalog. This is a specification comparison, not a quality benchmark.
| Model | Provider | Input / 1M tokens | Context |
|---|---|---|---|
| Qwen: Qwen3 30B A3B Instruct 2507 | OpenRouter | $0.09 | 262,144 |
| Qwen: Qwen3 Next 80B A3B Instruct | OpenRouter | $0.09 | 262,144 |
| Qwen: Qwen3 235B A22B Instruct 2507 | OpenRouter | $0.0875 | 262,144 |
Use the exact identifier in Python
This identifier fragment belongs in the authenticated request described in the provider Python tutorial. The tutorial covers the correct SDK, endpoint, environment variable and response shape.
model = "google\/gemma-4-31b-it"
# Pass model to the provider-specific request in the tutorial.Recent changes
- OpenRouter · Google: Gemma 4 31B — Amount UsdNot previously recorded → Price category: cached_input · USD: 0.05 · Unit: per 1M tokensSource ↗
- OpenRouter · Google: Gemma 4 31B — Amount UsdNot previously recorded → Price category: output · USD: 0.34 · Unit: per 1M tokensSource ↗
- OpenRouter · Google: Gemma 4 31B — Amount UsdNot previously recorded → Price category: input · USD: 0.09 · Unit: per 1M tokensSource ↗
- OpenRouter · Google: Gemma 4 31B — First SeenNot previously recorded → Model: Google: Gemma 4 31BSource ↗
Subscribe to the changelog RSS feed
Frequently asked questions
What is the exact API model identifier?
google/gemma-4-31b-it exactly as shown in the provider model reference. Display names are not interchangeable with API identifiers.How much does this model cost?
How much input can the model accept?
Can I use a free tier?
Where do these model facts come from?
Sources
Last verified · Source ↗