Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliability, and more efficient token usage across complex workflows. Building on the multimodal foundation of the Gemini 3 series, it combines high-precision reasoning across text, image, video, audio, and code with a 1M-token context window. Reasoning Details must be preserved when using multi-turn tool calling, see our docs here: https://openrouter.ai/docs/use-cases/reasoning-tokens#preserving-reasoning(opens in new tab). The 3.1 update introduces measurable gains in SWE benchmarks and real-world coding environments, along with stronger autonomous task execution in structured domains such as finance and spreadsheet-based workflows.
Designed for advanced development and agentic systems, Gemini 3.1 Pro Preview improves long-horizon stability and tool orchestration while increasing token efficiency. It introduces a new medium thinking level to better balance cost, speed, and performance. The model excels in agentic coding, structured planning, multimodal analysis, and workflow automation, making it well-suited for autonomous agents, financial modeling, spreadsheet automation, and high-context enterprise tasks.
Modalities
In / Out Price
$2 / $12per 1M
Context
1M
Released
Feb 19, 2026
Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliability, and more efficient token usage across complex workflows. Building on the multimodal foundation of the Gemini 3 series, it combines high-precision reasoning across text, image, video, audio, and code with a 1M-token context window.
Gemini 3.1 Pro Preview costs $2.00/M input tokens and $12.00/M output tokens, with separate rates for Cache Read at $0.20/M tokens, Cache Write at $0.375/M tokens, Image Input at $2.00/M tokens, Input Audio at $2.00/M tokens, Input Audio Cache at $0.20/M tokens and Web Search at $14.00/1K calls.
Gemini 3.1 Pro Preview has a 1,048,576 token context window. It supports up to 65,536 completion tokens.
Yes. Gemini 3.1 Pro Preview accepts tools and tool_choice for function calling. It also supports structured outputs via a JSON schema in response_format.
Gemini 3.1 Pro Preview accepts audio, files such as PDFs, images, text and video as input and returns text.
Gemini 3.1 Pro Preview is served by 2 providers on OpenRouter: Google Vertex and Google AI Studio. Requests are routed to the best available provider, with automatic failover to the others, and you can pin or exclude providers with provider routing.
Gemini 3.1 Pro Preview was released on February 19, 2026.