Gemini 3.1 Pro API Pricing & Cost Calculator

By TechCompare · Updated · How we check

Gemini 3.1 Pro provides deep reasoning with a 1M token context window, a 90% prompt caching discount, and tiered rates that increase above 200,000 tokens.

A newer version of Gemini 3.1 Pro Preview is out: Gemini 4 Carbon. Price Gemini 4 Carbon in the calculator or compare every Gemini and Gemma model.

Calculator

Cost Comparison

Based on 100,000 input tokens (50% cached), 5,000 output tokens, and 100 requests.Prices come live from OpenRouter at each maker's own price where it's listed. Temporary deals are left out.

Loading model prices

Gemini 3.1 Pro is Google's reasoning model in the Pro tier, offering a context window of about 1 million tokens.

Google: Gemini 3.1 Pro Preview

Google AI Studio's own price

Input
$2
Output
$12
Cached
$0.20

per 1M tokens

Batch availableFlex available

Price checked 2026-12-02

How this is calculated

For prompts up to 200,000 tokens, Gemini 3.1 Pro is priced at $2.00 per million input tokens and $12.00 per million output tokens. Cached input gets a 90% discount, and batch pricing is $1.00 per million input tokens and $6.00 per million output tokens. Above 200,000 tokens, standard pricing rises to $4.00/M input and $18.00/M output, with cached input at $0.40/M.

Verdict

For prompts up to 200,000 tokens, Gemini 3.1 Pro costs $2.00/M input and $12.00/M output, with cached input at $0.20/M and batch pricing at $1.00/$6.00. Above that, standard rates rise to $4.00/$18.00 and cached input is $0.40/M. The 1M token context window can hold large corpora, codebases, or document sets, while the 90% cached input discount cuts the cost of reusing a stable context block. Use the higher tier when estimating any prompt above 200,000 tokens.

More API Standalones scenarios

Frequently asked questions

Does Gemini 3.1 Pro support prompt caching?
Yes. Google offers a 90% discount on cached input tokens. Cached input costs $0.20 per million at standard rates for prompts up to 200,000 tokens and $0.40 per million above that.
How much does Gemini 3.1 Pro cost per million output tokens?
Gemini 3.1 Pro charges $12.00 per million output tokens for prompts up to 200,000 tokens. Batch output costs $6.00 per million. Above 200,000 tokens, standard output rises to $18.00/M, input rises to $4.00/M, and cached input is $0.40/M.
How does Gemini 3.1 Pro's price compare with Claude Sonnet 4.6?
Gemini is cheaper for prompts up to 200,000 tokens, at $2.00/M input and $12.00/M output against Sonnet 4.6's $3.00/$15.00. Cached input is $0.20/M on Gemini against $0.30/M on Sonnet. Gemini's rates rise above 200,000 tokens, so compare the applicable tier for longer prompts. Both also have a roughly 1M context window.