Gemma 4 31B
Provider: Google AI US
Input price
$0.15
/ 1M tokens
Output price
$0.40
/ 1M tokens
Cache price
$0.06
/ 1M tokens (read)
Context
262K tokens
Max output 16K tokens
Overview
Google's 30.7B dense multimodal flagship model supports text and image input with a 262k context window and configurable reasoning.
Strengths
- 262k context window with vision support
- Configurable thinking and reasoning mode
- Native function calling and JSON mode
- Available for free via Google AI Studio and OpenRouter
Best use cases
- Multimodal document extraction and analysis
- Complex reasoning tasks needing tool use
- Large-scale context ingestion within budget
Pricing position
Input is $0.15/1M and output is $0.4/1M, matching GPT-4o-mini's input rate while offering cheaper output.
Caveats
Free tier prompts on Google AI Studio may be used for model training.
Notes drafted by an LLM from the figures on this page (2026-11-10) and rewritten when the price changes.
Key facts
- Price basis
- Median third-party host price (no first-party API)
- Max output
- 16K tokens
- Listed on OpenRouter
- 2026-04-02
- Tracked since
- 2026-05-08
- Last updated
- 2026-11-10
Features
Image inputFunction callingJSON outputReasoning
Free tier
| Free via | Limits | Note |
|---|---|---|
| Google AI Studio Maker’s API | Not published (shown in the provider console) | Prompts may be used to improve the provider’s products |
| OpenRouter (:free) Third-party host | RPM 20 · RPD 50 | 1,000/day after buying $10 of credits |
Monthly cost estimate
| Scale | Input (M) | Output (M) | Monthly |
|---|---|---|---|
| 0.1M (hobby) | 0.1 | 0.05 | $0.04 |
| 1M (small app) | 1 | 0.5 | $0.35 |
| 10M (mid scale) | 10 | 5 | $3.50 |
| 100M (large) | 100 | 50 | $35.00 |
※ Cache and batch discounts not factored in. Detailed calculator
Official resources
Other models from Google AI
Similar-priced models
Source: OpenRouter API (google/gemma-4-31b-it)