TechCompare LogoTechCompare

Gemini 3.1 Pro API Pricing & Cost Calculator

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

Gemini 3.1 Pro is Google's flagship reasoning engine, offering a context window of about 1 million tokens.

By TechCompare · Updated

Input tokens
100,000
per request
Output tokens
5,000
per request
Volume
100 / monthly
Standard API

Calculator

Cost Comparison

Based on 100,000 input tokens (50% cached), 5,000 output tokens, and 100 requests.Prices are fetched live from OpenRouter and may include temporary promotional discounts not accounted for in our article and comparison figures.

How this is calculated

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

Verdict

For prompts up to 200K, 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 200K, standard rates rise to $4.00/$18.00 and cached input rises to $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 200K.

More API Standalones scenarios

MiMo-V2.6-Pro Pricing
Cost calculator for this model
View details ➜
MiMo-V2.6-Flash Pricing
Cost calculator for this model
View details ➜
GLM-5.3-Flash Pricing
Cost calculator for this model
View details ➜

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 for prompts up to 200K tokens and $0.40 per million above 200K.
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 200K. With the 50% batch discount, that drops to $6.00 per million. Cached input costs $0.20 per million at this tier. Above 200K tokens, standard output rises to $18.00/M, input rises to $4.00/M, and cached input rises to $0.40/M.
Is Gemini 3.1 Pro cheaper than Claude Sonnet 4.6?
For prompts up to 200K, yes. Gemini costs $2.00/M input and $12.00/M output against Sonnet 4.6's $3.00/$15.00, while cached input is $0.20/M against $0.30/M. Gemini's rates rise above 200K, so compare the applicable tier for longer prompts. Gemini also has a roughly 1M context window against Sonnet 4.6's 500K.