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.
function_calling| Model | Context | Max out | Pricing |
|---|---|---|---|
| gemini-3.1-flash-lite-image | 66K | 4K | $0.25$1.5 |
| gemini-3.1-flash-lite-preview | 1M | 66K | $0.25$1.5 |
| gemini-3.1-flash-lite | 1M | 66K | $0.25$1.5 |
| gemini-3.1-flash-image-preview | 131K | 33K | $0.5$3 |
| gemini-3.1-flash-image | 131K | 33K | $0.5$3 |
| gemini-3.1-pro-preview | 1M | 66K | $2$12 |
/v1/models/vercel/google/gemini-3.1-pro-preview