Gemini 3.1 Pro
Save 70%google/gemini-3.1-pro-preview
Gemini 3.1 Pro — Google flagship for advanced math, code, and reasoning.
- Context window
- 1M
- Max output
- 66K
- Input modalities
- text · image · audio · video
- Output modalities
- text
- Capabilities
- Vision · Reasoning · Tool Calling · Json Mode · Coding
- RouteMux name
- google/gemini-3.1-pro-preview
Try Gemini 3.1 Pro here
Tune the request, see the current price ceiling, and inspect the real response without leaving this model page.
Sign in first to upload images to this vision model.
Your result will appear here
Enter an input on the left. The same RouteMux Playground execution and billing path powers this embedded test.
Gemini 3.1 Pro API pricing
Source: gemini_x0.5 · Verified 2026-06-08
Cache read $0.06/M · Cache write —/M
| Tier | Input | Cache read | Cache write | Output |
|---|---|---|---|---|
| Standard | $0.6 | $0.06 | — | $3.6 |
| Standard ≤200K | $0.6 | $0.06 | — | $3.6 |
| Standard >200K | $1.2 | $0.12 | — | $5.4 |
Estimate cost
Limited time20% extra Credits on your first top-up — up to 200 bonus Credits
Applies to your first top-up within 72 hours of signing up. Minimum $20, once per account.
Key capabilities
Interface and protocols
Use either ID to call this model via the API.
google/gemini-3.1-pro-previewYou can use these names directly in the request model field.
Replace the ROUTEMUX_KEY placeholder with your API key. Create one →
from openai import OpenAI
client = OpenAI(
base_url="https://api.routemux.com/v1",
api_key="<ROUTEMUX_KEY>",
)
completion = client.chat.completions.create(
model="google/gemini-3.1-pro-preview",
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(completion.choices[0].message.content)Performance (last 30 days)
Gemini 3.1 Pro FAQ
›What is Gemini 3.1 Pro?
Gemini 3.1 Pro — Google flagship for advanced math, code, and reasoning.
›How large is the context window of Gemini 3.1 Pro?
Gemini 3.1 Pro supports a context window of up to 1M tokens, with up to 66K output tokens per request.
›How much does the Gemini 3.1 Pro API cost?
Through RouteMux, Gemini 3.1 Pro costs $0.6 for input and $3.6 for output (USD per 1M tokens), below the official list price.
›How do I call Gemini 3.1 Pro via API?
Gemini 3.1 Pro is OpenAI-compatible: point your base URL at RouteMux and set the model field to google/gemini-3.1-pro-preview — no code changes needed.
›Which input and output modalities does Gemini 3.1 Pro support?
Gemini 3.1 Pro accepts text, image, audio, video as input and produces text as output.