Gemini 3.1 Pro API Pricing

Gemini 3.1 Pro by Google costs $2.00 per million input tokens and $12.00 per million output tokens.

Price verified from Google's pricing page.

Rates and limits

Input / 1M
$2.00
Output / 1M
$12.00
Cached input / 1M
$0.20
Batch discount
50% off
Context window
1.05M tokens
Released
April 2026

Pricing note: Priced as gemini-3.1-pro-preview. Prompts over 200K tokens: $4 in / $0.40 cached / $18 out. Cache storage $4.50 per 1M tokens per hour.

What Gemini 3.1 Pro costs per month

Token volume split 3:1 between input and output, with no prompt caching.

Tokens per monthInput / outputStandardBatch API
1M750K / 250K$4.50$2.25
10M7.5M / 2.5M$45.00$22.50
100M75M / 25M$450.00$225.00
Estimate your own workload with Gemini 3.1 Pro

Where to run Gemini 3.1 Pro

Prices above are Google's direct rates. Cloud platforms can charge differently; the cloud platform view compares them.

Gemini 3.1 Pro pricing FAQ

How much does Gemini 3.1 Pro cost per million tokens?

Gemini 3.1 Pro costs $2.00 per million input tokens and $12.00 per million output tokens, as listed on Google's pricing page on September 30, 2026.

How much does Gemini 3.1 Pro cost for 10 million tokens a month?

About $45.00 a month, assuming 7.5 million input and 2.5 million output tokens with no prompt caching, or $22.50 through the batch API.

What is the context window of Gemini 3.1 Pro?

Gemini 3.1 Pro accepts up to 1,048,576 tokens of context.

Does Gemini 3.1 Pro support prompt caching?

Yes. Cached input tokens cost $0.20 per million, 90% less than the standard input rate.

Is there a batch discount for Gemini 3.1 Pro?

Yes. Requests sent through the batch API cost 50% less: $1.00 per million input tokens and $6.00 per million output tokens.

Where can I use the Gemini 3.1 Pro API?

Gemini 3.1 Pro is available through Google AI Studio (Gemini API), Google Cloud Vertex AI, and OpenRouter.

Prices shown as input / output per million tokens. All model prices · Side-by-side comparison