47 model prices
  1. Home
  2. Models
  3. Google
  4. Gemini 3.1 Pro Preview

Gemini 3.1 Pro Preview API pricing and context window

Gemini 3.1 Pro Preview costs $2.00 per 1M input tokens and $12.00 per 1M output tokens on the Gemini API. Cached input reads cost $0.20 per 1M. It accepts up to 1,048,576 input tokens and returns up to 65,536 output tokens. A typical chat request (10K input, 1K output) costs about $0.032. Prices last updated November 27, 2026.

Last updated: Provider pricing pagePricing data: LiteLLM (MIT)

Input
$2.00
per 1M tokens
Output
$12.00
per 1M tokens
Cached input
$0.20
per 1M tokens
Context window
1,048,576
tokens
Max output
65,536
tokens

Pricing options

Input /1MOutput /1Mvs standard (input / output)
Prompt over 200K tokens$4.00$18.00+100% / +50%
Batch API$1.00$6.00-50% / -50%
Flex$1.00$6.00-50% / -50%
Priority$3.60$21.60+80% / +80%

Typical task cost

TaskCost
Chat request (10K in + 1K out)$0.032
Codebase question (100K in + 2K out)$0.224
Same question with cached context (100K cached + 2K out)$0.044
Long prompt (220K in + 2K out)$0.916
Filling the whole context once (1M in)$4.19
1M tokens a month (750K in + 250K out)$4.50

Estimate your own workload in the calculator

Gemini 3.1 Pro Preview compared with the previous and next version

ModelInput /1MOutput /1MWhat changes
OlderGemini 2.5 Pro$1.25 -38%$10.00 -17%Gemini 2.5 Pro → Gemini 3.1 Pro Preview: input: $1.25 → $2.00; output: $10.00 → $12.00; cached input: $0.125 → $0.20; long-context input: $2.50 → $4.00
+10 more differenceslong-context output: $15.00 → $18.00; long-context cached input: $0.25 → $0.40; Batch API input: $0.625 → $1.00; Batch API output: $5.00 → $6.00; Flex input: $0.625 → $1.00; Flex output: $5.00 → $6.00; Priority input: $2.25 → $3.60; Priority output: $18.00 → $21.60; minimum cacheable prompt: 2,048 → 4,096; shutdown date: December 1, 2026 → none

Capabilities and details

Similar models by price

ModelProviderInput /1MOutput /1MContext windowvs this model (input / output)
Command ACohere$2.50$10.00256K+25% / -17%
GPT-4oOpenAI$2.50$10.00128K+25% / -17%
Gemini 3.5 FlashGoogle$1.50$9.001M-25% / -25%
Gemini 3.8 FlashGoogle$0.75$3.751M-63% / -69%
Gemini 3 Flash PreviewGoogle$0.50$3.001M-75% / -75%

Compare Gemini 3.1 Pro Preview

Price history

DateInput /1MOutput /1MCached input /1M
$2.00$12.00$0.20

Tracking started on November 21, 2026. A new row appears only when a price changes.

Embed this price badge

Gemini 3.1 Pro Preview API price

The badge shows the current list price and updates daily. Paste the HTML or Markdown into your site or README.

<a href="https://vibecodingturkey.com/models/gemini-3-1-pro-preview"><img src="https://vibecodingturkey.com/models/badge/gemini-3-1-pro-preview.svg" alt="Gemini 3.1 Pro Preview API price" height="20"></a>
[![Gemini 3.1 Pro Preview API price](https://vibecodingturkey.com/models/badge/gemini-3-1-pro-preview.svg)](https://vibecodingturkey.com/models/gemini-3-1-pro-preview)

Questions

How is Gemini 3.1 Pro Preview different from Gemini 2.5 Pro?

Gemini 2.5 Pro → Gemini 3.1 Pro Preview: input: $1.25 → $2.00; output: $10.00 → $12.00; cached input: $0.125 → $0.20; long-context input: $2.50 → $4.00; long-context output: $15.00 → $18.00; long-context cached input: $0.25 → $0.40. +8 more differences in the table above.

Does Gemini 3.1 Pro Preview cost more for long prompts?

Yes. Once a prompt passes 200,000 tokens, the whole request is billed at $4.00 input and $18.00 output per 1M. A 220K-token prompt with a 2K answer costs about $0.916.

Is there a batch discount for Gemini 3.1 Pro Preview?

Yes. Through the Batch API it costs $1.00 per 1M input and $6.00 per 1M output tokens.

Does Gemini 3.1 Pro Preview support prompt caching?

Yes. Cached input reads cost $0.20 per 1M tokens, 90% less than standard input.