Google · Model
Gemini 3.1 Pro Preview API pricing, cost and context window
Gemini 3.1 Pro Preview costs $2 per million input tokens and $12 per million output tokens, rising to $4 and $18 once a prompt passes 200,000 tokens. Cached input costs $0.20. It reads up to 1,048,576 tokens and writes up to 65,536 per reply. Prices checked 2026-11-28. By blended price it is number 8 of Google’s 9 current models here, counting from the cheapest.
- Input / 1M
- $2
- Output / 1M
- $12
- Cached / 1M
- $0.20
- Context
- 1,048,576
- Max output
- 65,536
- Released
- 2026-02-19
Estimate your cost with Gemini 3.1 Pro PreviewCompare all Google modelsCount tokens for Gemini 3.1 Pro Preview
Pricing
How much does Gemini 3.1 Pro Preview cost per million tokens?
| Price per 1M tokens | Input | Output |
|---|---|---|
| Standard | $2 | $12 |
| Cached input (read) | $0.20 | – |
| Batch API | $1 | $6 |
| Prompts of 200,000+ tokens | $4 | $18 |
Output costs 6.0× the input price; a cache hit costs 10% of it. Once a single prompt reaches 200,000 tokens, the whole request is billed at the higher long-context rate shown above.
Work out your monthly Gemini 3.1 Pro Preview bill in the cost calculatorSee what prompt caching savesSee what the Batch API saves
Examples
How much does a typical Gemini 3.1 Pro Preview request cost?
| Workload | Tokens in / out | Requests/day | Per request | Per month |
|---|---|---|---|---|
| Support chatbot50% cached | 1,500 / 400 | 1,000 | $0.00645 | $196.19 |
| RAG app20% cached | 6,000 / 500 | 500 | $0.0158 | $240.90 |
| Coding agent80% cached | 40,000 / 2,000 | 200 | $0.0464 | $282.27 |
| Document summariserbatch | 8,000 / 600 | 300 | $0.0116 | $105.85 |
Change any number in the cost calculator.
Context
What is Gemini 3.1 Pro Preview’s context window and max output?
Gemini 3.1 Pro Preview accepts up to 1,048,576 tokens per request, roughly 786,432 English words or 1,573 pages, prompt and reply together; one reply is capped at 65,536 tokens.
Filling the whole window with one prompt costs about $4.19 at list price.
Check whether your text fits Gemini 3.1 Pro Preview’s window.
Features
What can Gemini 3.1 Pro Preview do?
- Image input
- Yes
- Tool / function calling
- Yes
- Reasoning mode
- Yes
- Prompt caching
- Yes
- Structured output
- Yes
- Open weights
- No
- Accepts
- audio, file, image, text, video
- Knowledge cutoff
- Not published
As declared by the provider’s API. It shows a feature exists, not how well it works.
API
What is the Gemini 3.1 Pro Preview API model ID?
- OpenRouter
google/gemini-3.1-pro-preview- Google API
gemini-3.1-pro-preview(preview)gemini-3.1-pro-preview-customtools(preview)
Google lists Gemini 3.1 Pro Preview as current. Every Gemini model ID, with aliases and snapshots.
Where does Gemini 3.1 Pro Preview sit in Google’s line-up?
Ranked by blended price (three parts input to one part output, $4.50 per 1M for Gemini 3.1 Pro Preview), it is number 8 of Google’s 9 current models here, counting from the cheapest. One step down, Gemini 4 Carbon costs $4 blended (11% less). One step up, Gemini 4 Neon costs $6 (1.3× as much). See every Google model and price
History
Is Gemini 3.1 Pro Preview cheaper than Gemini 2.5 Pro?
The previous model in this line is Gemini 2.5 Pro, first listed on 2025-06-17. Compared with it, Gemini 3.1 Pro Preview’s input price is 60% higher and its output price is 20% higher.
| Model | Input / 1M | Output / 1M | Context | Released |
|---|---|---|---|---|
| Gemini 2.5 Pro | $1.25 | $10 | 1,048,576 | 2025-06-17 |
Save
What are cheaper alternatives to Gemini 3.1 Pro Preview?
- GLM 4.6VZ.ai90% cheaper
- Qwen3.7 PlusQwen88% cheaper
- Command A+Cohere87% cheaper
Keeping image input, tool calling, reasoning; by blended price.
Compare
Which models cost about the same?
- GPT-6.2 SolOpenAI$2 / $10
- Claude Sonnet 5.5Anthropic$2 / $10
- Kimi K3.1 ProMoonshot AI$2 / $10
FAQ
Gemini 3.1 Pro Preview questions
How much does Gemini 3.1 Pro Preview cost?
Gemini 3.1 Pro Preview costs $2 per million input tokens and $12 per million output tokens, with cached input at $0.20. A typical chatbot reply (1,500 tokens in, 400 out) costs about $0.0078. Use the LLM cost calculator for your own workload.
What is Gemini 3.1 Pro Preview’s context window?
1,048,576 tokens, about 786,432 English words or 1,573 printed pages, shared between your prompt and the reply. A single reply can be up to 65,536 tokens.
Does Gemini 3.1 Pro Preview support prompt caching and batch requests?
Yes, cached input is billed at $0.20 per million tokens (10% of the normal input price). A batch API is available at $1 input and $6 output per million tokens.
What are cheaper alternatives to Gemini 3.1 Pro Preview?
With the same essentials (image input and tool calling), the cheapest options are GLM 4.6V (90% cheaper), Qwen3.7 Plus (88% cheaper), Command A+ (87% cheaper). Cheaper doesn’t mean equivalent, so test them on your own prompts.
What is the API model ID for Gemini 3.1 Pro Preview?
On OpenRouter it is google/gemini-3.1-pro-preview. In Google’s own API, use gemini-3.1-pro-preview; Google lists the model as current. The Gemini model ID list has every alias and snapshot. Pass the ID as the model value in each request.
When was Gemini 3.1 Pro Preview released?
Gemini 3.1 Pro Preview was first listed on 2026-02-19. It follows Gemini 2.5 Pro, first listed on 2025-06-17. Release dates here are when our price source first listed each model.
Is Gemini 3.1 Pro Preview cheaper than Gemini 2.5 Pro?
The previous Google model in the same line is Gemini 2.5 Pro, first listed on 2025-06-17. Compared with it, Gemini 3.1 Pro Preview’s input price is 60% higher and its output price is 20% higher. Prices are only part of the picture, so test the newer model on your own prompts before switching.
Is Gemini 3.1 Pro Preview open source?
No, Gemini 3.1 Pro Preview is only available through Google’s API and partners; its weights aren’t published.
Keep exploring