Model detail
Gemini 3.1 Pro preview
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. 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.
Model specs
- Model ID
-
gemini-3.1-pro-preview
- Context length
- 1.048576M
- Max output
- 65.536K
- I/O modalities
- Released
- 2026-02
02
API endpoints
One MixRoute gateway, OpenAI-compatible
-
Gemini
/v1beta/models/{model}:generateContentPOST -
OpenAI-compatible
/v1/chat/completionsPOST
03
Pricing
Flat rate, unit: /1M Tokens
Input
$2.0000 /1M Tokens
Completion
$12.0000 /1M Tokens
Cache read
$0.2000 /1M Tokens
05
Selection summary
Quickly judge whether it fits your workload
What is this model good for?
Pro-level thinking and reliability for engineering workflows
Gemini 3.1 Pro preview is built to refine the performance and reliability of the Gemini 3 Pro series, with better thinking, improved token efficiency, and a more grounded, factually consistent experience. Optimized for software engineering, agentic workflows requiring precise tool usage, and reliable multi-step execution across real-world domains.
What should you check before using it?
1,048,576 context, 65,536 output, improved token efficiency
Supports caching, thinking, structured outputs, function calling, code execution, and search grounding. Knowledge cutoff: 2025-01. Released 2026-02.
Why use it through MixRoute?
Drop-in via Google Gen AI SDK or OpenAI-compatible endpoint
Use the Google Gen AI SDK or call through MixRoute's OpenAI-compatible endpoint. Supports batch API, flex inference, and priority inference for production workloads.
07
Capabilities & compatibility
Unconfirmed capabilities stay "Unknown," no guesses
Tool calling
Gemini 3.1 Pro preview supports function and tool calls.
tools definition; the response returns tool_calls to execute and feed results back.
Structured output
Gemini 3.1 Pro preview can produce JSON-formatted output on demand.
response_format: { type: "json_schema" } forces valid JSON output.
Streaming
Gemini 3.1 Pro preview supports streamed responses.
stream: true streams tokens incrementally, so chat UIs render as they arrive.
Prompt caching
Gemini 3.1 Pro preview supports prompt caching under supported routing conditions.
Vision input
Gemini 3.1 Pro preview can process image inputs alongside text.
image_url content part alongside text messages.
OpenAI SDK
Call Gemini 3.1 Pro preview through MixRoute's OpenAI-compatible endpoint.
base_url to https://api.mixroute.ai/v1; everything else follows the OpenAI style.
08
Token cost estimator
Live estimate from this page's pricing, not an actual bill
Share of the same prefix read repeatedly, up to 100%
09
FAQ
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.
One endpoint, a testable decision
Test this model and alternate routes with the same request format
Start from a real workload, then let quality, total cost, and failure conditions decide whether to send production traffic.