Google AI Studio: gemini-3.1-pro-preview

proprietary

The Interactions API is now generally available. We recommend using this API for access to all the latest features and models. Home Gemini API Docs Send feedback Gemini 3.1 Pro Preview Built to refine the performance and reliability of the Gemini 3 Pro series, Gemini 3.1 Pro Preview provides better thinking, improved token efficiency, and a more grounded, factually consistent experience. It's optimized for software engineering behavior and usability, as well as agentic workflows requiring precise tool usage and reliable multi-step execution across real-world domains.

Context
1.0M
Max output
66K
Input price
$2/1M tokens
Output price
$12/1M tokens

Capabilities

Reasoning & Interaction
Reasoning
Tool Calling
Output Control
Structured Output
JSON Mode
Infrastructure
Streaming
Batch Processing

Details

Model IDgoogle-ai-studio/gemini-3.1-pro-preview
Creator Google AI
Licenseproprietary
Status—
Typechat
Input modalitiestext
Output modalitiestext
Open weightNo
Parameters—
Architecture—
Context window1.0M tokens
Max input—
Max output66K tokens
Reasoning tokens—
Knowledge cutoff
Release date—
Sourceofficial

Pricing

Input
$2
Output
$12
Cache write
—
Cache read
—
Batch in
—
Batch out
—

Family Comparison: gemini-3.1

ModelContextMax outPricing
Google AI Studio: gemini-3.1-flash-lite-preview-20260303——$0.25$1.5
Google AI Studio: gemini-3.1-flash-lite-preview1.0M66K$0.25$1.5
OpenRouter: google/gemini-3.1-flash-lite-preview-20260303——$0.25$1.5
OpenRouter: google/gemini-3.1-flash-lite-preview——$0.25$1.5
Google AI Studio: gemini-3.1-flash-image-preview-20260226——$0.5$3
Google AI Studio: gemini-3.1-flash-image-preview131K33K$0.5$3
OpenRouter: google/gemini-3.1-flash-image-preview-20260226——$0.5$3
OpenRouter: google/gemini-3.1-flash-image-preview——$0.5$3
Google AI Studio: gemini-3.1-pro-preview-20260219——$2$12
Google AI Studio: gemini-3.1-pro-preview-customtools-20260219——$2$12
Google AI Studio: gemini-3.1-pro-preview-customtools——$2$12
Google AI Studio: gemini-3.1-pro-preview1.0M66K$2$12
Google Vertex AI: gemini-3.1-pro-preview-customtools——$2$12
Google Vertex AI: gemini-3.1-pro-preview——$2$12
OpenRouter: google/gemini-3.1-pro-preview-20260219——$2$12
OpenRouter: google/gemini-3.1-pro-preview-customtools-20260219——$2$12
OpenRouter: google/gemini-3.1-pro-preview-customtools——$2$12
OpenRouter: google/gemini-3.1-pro-preview——$2$12

API

GET/v1/models/cloudflare-ai-gateway/google-ai-studio/gemini-3.1-pro-preview