Gemini 3.1 Pro Preview

gemini-3.1-pro-preview · Google

Gemini 3.1 Pro Preview is designed to further optimize the performance and reliability of the Gemini 3 Pro series, offering improved reasoning capabilities, greater token efficiency, and a more robust, factually consistent user experience. It is optimized for software-engineering behaviors and usability, and is also suitable for agent workflows that require precise tool invocation and reliable multi-step execution, enabling stable operation across a variety of real-world scenarios.

API Pricing

Input$2 / 1M tokens
Output$12 / 1M tokens
Cache read$0.5 / 1M tokens

Specifications

Context1.05M tokens
Max output65.5K tokens
Modalitiestext, image, video, audio, PDF
CapabilitiesThinking, Tool calling, Web search, URL context, Code interpreter, File search, Structured outputs, Prompt caching
Endpointschat_completions, gemini_api, claude_api

Frequently asked questions

What is Gemini 3.1 Pro Preview?

Gemini 3.1 Pro Preview is designed to further optimize the performance and reliability of the Gemini 3 Pro series, offering improved reasoning capabilities, greater token efficiency, and a more robust, factually consistent user experience. It is optimized for software-engineering behaviors and usability, and is also suitable for agent workflows that require precise tool invocation and reliable multi-step execution, enabling stable operation across a variety of real-world scenarios.

What is the context length of Gemini 3.1 Pro Preview?

Gemini 3.1 Pro Preview has a 1,048,576 token context window. It supports up to 65,536 output tokens.

How much does Gemini 3.1 Pro Preview cost?

On AIHubMix, Gemini 3.1 Pro Preview costs $2 per million input tokens and $12 per million output tokens. Cached input reads are billed at $0.5 per million tokens.

What modalities does Gemini 3.1 Pro Preview support?

Gemini 3.1 Pro Preview accepts text, image, video, audio and PDF input.

What capabilities does Gemini 3.1 Pro Preview support?

Gemini 3.1 Pro Preview supports thinking, tool calling, function calling, structured outputs, web search, deep search and long context. Per-protocol parameter support is listed in the capability table on this page.

How do I call Gemini 3.1 Pro Preview via API?

Gemini 3.1 Pro Preview is available through the AIHubMix unified API. The API is OpenAI-compatible: point your OpenAI SDK at https://aihubmix.com/v1, use your AIHubMix API key, and set the model name to gemini-3.1-pro-preview — no other code changes needed.

Who created Gemini 3.1 Pro Preview?

Gemini 3.1 Pro Preview is developed by Google. AIHubMix aggregates it alongside models from other providers behind one API and one bill.

When was Gemini 3.1 Pro Preview released?

Gemini 3.1 Pro Preview was released on February 19, 2026 by Google.

More models from Google

See all Google models →

Gemini 3.7 Flash

by Google

Gemini 3.7 Flash is Google’s natively multimodal reasoning model for coding, agents, web…

$0.75/1M in · $3.75/1M out
1,048,576 tokens context

Gemini 3.7 Flash (free)

by Google

Gemini 3.7 Flash free version: Free model resources are limited and provided only for…

1,000,000 tokens context

Gemini 3.6 Flash

by Google

Gemini 3.6 Flash provides sustained frontier-level intelligence optimized for real-world…

$1.5/1M in · $7.5/1M out
1,048,576 tokens context

Gemini 3.1 Flash Lite Image

by Google

Google's newest, most compact, and most cost-effective image generation and editing…

$0.25/1M in · $1.5/1M out

Gemini 3.5 Flash Lite

by Google

Gemini 3.5 Flash-Lite is a low-latency, cost-effective multimodal model optimized for…

$0.3/1M in · $2.5/1M out
1,048,576 tokens context

Gemini 3.5 Flash Lite (free)

by Google

Gemini 3.5 Flash-Lite free version: Free model resources are limited and provided only…

1,048,576 tokens context

Use Gemini 3.1 Pro Preview via the AIHubMix unified API — one interface for every major LLM.