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, see our docs here: https://openrouter.ai/docs/use-ca
Context window
This model accepts 1.0M tokens in one request (~786K words of text).
What fits in one request
- FitsShort documentAbout 1,500 words of text
- FitsLong documentAbout 37K words of text
- FitsSmall codebaseAbout 150K words of text
- FitsFull novelAbout 375K words of text
Specifications
Context size, pricing, and release info in one place.
- Context window
- 1,048,576 tokens (1.0M)
- Max output tokens
- 65,536 tokens (66K)
- Speed tier
- fast
- Provider
- Release date
- Feb 2026
- Input cost
- $2.00/M / 1M tokens
- Output cost
- $12.00/M / 1M tokens
- Cached input
- $0.200/M / 1M tokens
Capabilities
See which features this model supports, such as vision, tools, and streaming.
- Vision
- Accepts image inputs alongside text
- Supported
- Tool use
- Can call external tools and APIs
- Supported
- Function calling
- Structured function call interface
- Supported
- Extended thinking
- Shows its chain-of-thought reasoning
- Supported
- Streaming
- Returns tokens as they are generated
- Supported
- Prompt caching
- Reuse repeated prompt prefixes cheaply
- Supported
- Web search
- Can browse the web during a request
- Not supported
- Batch API
- Process many requests asynchronously
- Not supported
Best for
Jump to a guide or ranking that matches each workload.
Compare Gemini 3.1 Pro Preview
Open a side-by-side comparison with one click.
- Gemini 3.1 Pro Preview vs Gemma 7b It
Gemini 3.1 Pro Preview has 12700% larger context window
- Gemini 3.1 Pro Preview vs Amazon Titan Text Express
Gemini 3.1 Pro Preview has 2396% larger context window
- Gemini 3.1 Pro Preview vs Amazon Titan Text Lite
Gemini 3.1 Pro Preview has 2396% larger context window
- Gemini 3.1 Pro Preview vs Amazon Titan Text Premier
Gemini 3.1 Pro Preview has 2396% larger context window
- Gemini 3.1 Pro Preview vs Claude Instant
Gemini 3.1 Pro Preview has 948% larger context window
- Gemini 3.1 Pro Preview vs Anthropic Claude
Gemini 3.1 Pro Preview has 948% larger context window
Frequently asked questions
Short answers about context size and how this model behaves.
More from Google
Other models by Google in our catalog.
Powered by Mem0
Use a smaller model.
Get better results.
Mem0 gives your AI long-term memory so you stop re-sending context on every call. That means you can use a smaller, faster, cheaper model — and still get better answers.
Example: a multi-turn chat session
80% less to send — works with any model