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. 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.
Specifications
Modalities
Supported Parameters
Max Output Tokens
65,536Reasoning Configuration
- Default
- Thinking on (effort: medium)
- Selectable effort levels
- highmediumlow
- Turning thinking off
- Not possible (always thinks)
Data policy
- Prompt retention
- Unknown — we could not confirm
- Training
- Unknown — not declared
"Unknown" does not mean "safe". It means we could not confirm it.
Whether a provider trains on prompts is a declared value from our terms with them. Retention is determined from the upstream listing for every host this model can reach. Neither is guessed.
Measured performance
Measured through FastMetal's own gateway over the last 30 days (627 first-response samples).
Throughput is sampled once a day: the median of 25 observations over the last 30 days.
Time to first response is measured to the first streamed chunk; throughput counts all output tokens, including reasoning tokens. These are observations, not a performance guarantee.
Code Examples
curl https://api.fastmetal.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gemini-3.1-pro-preview",
"messages": [{"role": "user", "content": "Hello!"}]
}'How Gemini 3.1 Pro Preview actually answers
Real responses to our standard prompts, recorded on FastMetal.
Count the number of 'r's in 'strawberry'
Count the number of 'r's in 'strawberry'. Explain your reasoning step by step.
Debug This Error
I'm getting the following error in my Node.js application: TypeError: Cannot read properties of undefined (reading 'map') at UserList (/app/components/UserList.js:12:25) at renderWithHooks (/app/node_modules/rea…
Code Review
Please review the following Python function and suggest improvements for readability, performance, and best practices: def get_data(url, retries=3): import requests import time for i in range(retries):…
Frequently asked questions
- How much does the Gemini 3.1 Pro Preview API cost?
- On FastMetal, Gemini 3.1 Pro Preview is billed per token: $2.11 per 1M input tokens and $12.66 per 1M output tokens on a US-dollar account, before tax. Usage is drawn from a prepaid balance; there is no subscription or monthly fee.
- Can I call Gemini 3.1 Pro Preview with the OpenAI SDK?
- Yes. Point base_url at https://api.fastmetal.ai/v1 and pass "gemini-3.1-pro-preview" as the model; existing OpenAI-style code works unchanged, including streaming, tool calls and structured output.
- What is the context window of Gemini 3.1 Pro Preview?
- 1,048,576 tokens, shared between the prompt and the response.
- What do I need to try Gemini 3.1 Pro Preview?
- Create an account and add credit; the model is then available both in the browser chat and over the API. There is no contract or minimum spend.
Try Gemini 3.1 Pro Preview right now
Gemini 3.1 Pro Preview is available on FastMetal through one API key. Start in the browser, or call it from the OpenAI SDK.