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

Provider Google AI
Creator google
Licenseproprietary
Statusactive
Typechat
Input modalitiestext, image, video, audio
Output modalitiestext, image, audio
Open weightNo
Parameters—
Architecture—
Context window1.0M tokens
Max input—
Max output66K tokens
Reasoning tokens—
Knowledge cutoff
Release date—
Sourceofficial

Tools

Function Callingfunction_calling
Call external functions and APIs

Endpoints

Generate ContentPOST
Generate text from multimodal inputhttps://generativelanguage.googleapis.com/v1beta/v1beta/models/{model}:generateContent
Stream ContentPOST
Stream text generation responseshttps://generativelanguage.googleapis.com/v1beta/v1beta/models/{model}:streamGenerateContent

Pricing

Text tokensPer 1M tokens
InputCached inputOutput
Standard$2$0.2$12
Batch$1—$6

Family Comparison: gemini-3.1

ModelContextMax outPricing
gemini-3.1-flash-lite-image66K4K$0.25$1.5
gemini-3.1-flash-lite-preview1.0M66K$0.25$1.5
gemini-3.1-flash-lite1.0M66K$0.25$1.5
gemini-3.1-flash-image-preview131K33K$0.5$3
gemini-3.1-flash-image131K33K$0.5$3
gemini-3.1-flash-live-preview131K66K$0.75$4.5
gemini-3.1-flash-tts-preview8K16K$1$20
gemini-3.1-pro-preview1.0M66K$2$12

API

GET/v1/models/google/gemini-3.1-pro-preview