llm pricing·Verified 2026-11-13·Primary documentation sourced

Gemini 3.1 Pro Preview API Pricing & Cost Architecture

Verified Gemini 3.1 Pro Preview API token pricing ($2.00/$12.00), context caching rates ($0.20/M), batch discounts, and cost estimation guide.

Key Technical Takeaway

Gemini 3.1 Pro Preview costs $2.00 per million input tokens and $12.00 per million output tokens for standard API calls. Utilizing prompt or context caching reduces cached input costs down to $0.20 per million tokens (a 90% discount). Batch API processing yields an additional 50% cost reduction. Gemini 3.1 Pro Preview is Google's massive-context preview model ($2.00/1M input, $12.00/1M output), featuring a 2-million token context window capable of ingesting entire codebases or hours of audio.

Interactive Calculator

Estimate Gemini 3.1 Pro Preview Monthly Spend

Verified 2026-11-13
Monthly API Requests25,000
Avg Input Tokens / Call2,000 tokens
Avg Output Tokens / Call500 tokens
Prompt Cache Hit Ratio50%
Standard Uncached Cost
250.00
At raw list pricing
Optimized Monthly Bill
$205.00
With caching & routing
Projected Monthly Savings
$45.00 (18%)
Reduced infrastructure burn
Pricing DimensionRate (USD)Billing UnitNotes
Standard Input$2.00Per 1,000,000 tokensStandard real-time prompt requests
Standard Output$12.00Per 1,000,000 tokensGenerated text, reasoning tokens & tool calls
Prompt / Context Caching Read$0.20Per 1,000,000 tokensApplies when prompt matches active cache breakpoint
Batch Processing Discount-50%Off standard rateFor async workloads with 24h completion window

Gemini 3.1 Pro Preview Rate Card & Caching Mechanics

Published Google list pricing for Gemini 3.1 Pro Preview sets standard input at $2.00/1M tokens and output at $12.00/1M tokens. When context caching is enabled, repeated prompt tokens cost $0.20/1M tokens, yielding direct token invoice savings of up to 90%. Rates for prompts up to 200K tokens (higher above). Preview model. Context caching also charges storage ($4.50 per million tokens per hour), which this calculator does not count. The page lists batch caching at the standard rate, so the batch discount is not stacked on cached tokens here. Gemini 3.1 Pro Preview is Google's massive-context preview model ($2.00/1M input, $12.00/1M output), featuring a 2-million token context window capable of ingesting entire codebases or hours of audio. Furthermore, asynchronous batch jobs receive an automatic 50% discount. For applications that execute overnight evaluations or large-scale document pipelines, combining batch requests with cached system prompts maximizes engineering runway.

Gemini 3.1 Pro Preview Production Workload Cost Analysis

Target Workloads: Multi-hour audio transcription analysis, full-repository architectural audits, regulatory compliance scanning across thousands of legal PDFs. Detailed Workload Simulation: Auditing 20 entire enterprise software repositories monthly (each ~1,000,000 tokens) with 5,000 output tokens costs $70/run on base rates. Using temporary context caching for same-day interactive refactoring reduces per-query rerun expenses significantly.

Architectural Best Practices for Gemini 3.1 Pro Preview

When integrating Gemini 3.1 Pro Preview into production architectures, follow these guidelines: - Prompt Organization: Context caching charges storage ($4.50/1M tokens/hour). Calculate whether active query frequency justifies persistent cache storage versus on-demand re-ingestion. - Output Token Control: Enforce strict max_tokens constraints and JSON schema validation to eliminate verbose generation loops. - Multi-Model Routing: Pair Gemini 3.1 Pro Preview with smaller companion models to handle high-frequency intent classification and guardrails before invoking high-parameter reasoning.

Frequently Asked Questions

What are the standard input and output token rates for Gemini 3.1 Pro Preview?

Gemini 3.1 Pro Preview is priced at $2.00 per million input tokens and $12.00 per million output tokens on standard API endpoints.

How does context caching discount work with Gemini 3.1 Pro Preview?

Context caching bills repeated prompt tokens at $0.20 per million tokens, representing a 90% reduction compared to raw input token pricing.

What is the context window limit for Gemini 3.1 Pro?

Gemini 3.1 Pro Preview supports prompts up to 2,000,000 tokens on standard AI Studio endpoints.

Does the batch discount stack with context caching on Gemini 3.1 Pro?

No, Google AI Studio lists batch caching at the standard rate rather than stacking discounts.

Verified Documentation Sources

Every token rate, credit limit, and technical mechanism cited is traced to official vendor sources:

Engineering Support & Architecture Review

Want an audit of your Gemini 3.1 Pro Preview spend?

We review prompt structure, context cache breakpoints, and model tier routing. Actionable savings delivered in 24 hours.

Want an audit of your Gemini 3.1 Pro Preview spend?

Direct engineer response in 24h