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.
- 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 /1M | Output /1M | vs 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% |
- Prompts over 200,000 tokens are billed at $4.00 input and $18.00 output per 1M for the whole request.
- The Batch API costs $1.00 input and $6.00 output per 1M: input and output 50% cheaper.
- Prompts shorter than 4,096 tokens are not cached.
Typical task cost
| Task | Cost |
|---|---|
| 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
| Model | Input /1M | Output /1M | What changes | |
|---|---|---|---|---|
| Older | Gemini 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
- Image input: Yes
- Function calling: Yes
- Reasoning: Yes
- Prompt caching: Yes
- PDF input: Yes
- Web search: Yes
- Structured output: Yes
- Audio input: Yes
- Minimum cacheable prompt: 4,096 tokens
- Input types: text, image, audio, video
- Output types: text
- Endpoints: /v1/chat/completions, /v1/completions, /v1/batch
Similar models by price
| Model | Provider | Input /1M | Output /1M | Context window | vs this model (input / output) |
|---|---|---|---|---|---|
| Command A | Cohere | $2.50 | $10.00 | 256K | +25% / -17% |
| GPT-4o | OpenAI | $2.50 | $10.00 | 128K | +25% / -17% |
| Gemini 3.5 Flash | $1.50 | $9.00 | 1M | -25% / -25% | |
| Gemini 3.8 Flash | $0.75 | $3.75 | 1M | -63% / -69% | |
| Gemini 3 Flash Preview | $0.50 | $3.00 | 1M | -75% / -75% |
Compare Gemini 3.1 Pro Preview
- Claude Opus 5.5 vs Gemini 3.1 Pro Preview
- Claude Opus 5 vs Gemini 3.1 Pro Preview
- GPT-6.2 Astra vs Gemini 3.1 Pro Preview
- GPT-5.5 vs Gemini 3.1 Pro Preview
- Gemini 3.1 Pro Preview vs Grok 4.7
Price history
| Date | Input /1M | Output /1M | Cached 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
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>[](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.