Skip to content
AI Dev Toolkit.
Esc
  • Loading…

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 tokensInputOutput
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?

WorkloadTokens in / outRequests/dayPer requestPer month
Support chatbot50% cached1,500 / 4001,000$0.00645$196.19
RAG app20% cached6,000 / 500500$0.0158$240.90
Coding agent80% cached40,000 / 2,000200$0.0464$282.27
Document summariserbatch8,000 / 600300$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.

Google

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.

ModelInput / 1MOutput / 1MContextReleased
Gemini 2.5 Pro$1.25$101,048,5762025-06-17

Save

What are cheaper alternatives to Gemini 3.1 Pro Preview?

Keeping image input, tool calling, reasoning; by blended price.

Compare

Which models cost about the same?

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.

Prices checked · Page updated

Sources: OpenRouter models API and LiteLLM model prices and context windows, checked daily; open-weight prices are typical hosted prices. Confirm critical numbers on Google’s pricing page. Every price move is in the AI pricing changes log. See our methodology.

Keep exploring