Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview by Google AI: $2 per 1M input and $12 per 1M output tokens, 1.0M context. Call it with one OpenAI-compatible API key, compare it with similar models, start free.
Gemini 3.1 Pro Preview is served by Google AI and called through odnoga on /v1/chat/completions, in the same OpenAI-compatible shape every other model on that endpoint uses. It is a reasoning model, so it spends extra output tokens working through a problem before answering — budget for higher output cost on hard tasks. It accepts images alongside text. It supports tool and function calling. It can be forced to return structured JSON. Its 1.0M-token context window sets how much input you can send in one request. Cached input is billed at $0.2 per 1M tokens, so repeated prefixes cost less.
Specification and price
| Vendor | Google AI |
|---|---|
| Model ID | gemini-3.1-pro-preview |
| Context window | 1.0M tokens |
| Max output | 66K tokens |
| Served on | /v1/chat/completions |
| Capabilities | Reasoning, Reads images, Tool calling, JSON schema, Streaming, Web search, Prompt caching, Batch |
| Per 1M tokens | Vendor cost | Your price on Free+7% |
|---|---|---|
| Input | $2 | $2.15 |
| Output | $12 | $12.90 |
| Cached input | $0.2 | $0.215 |
Vendor cost is the list price per million tokens as recorded in the odnoga catalog; your price applies your plan margin with the same formula that bills every request — see pricing. Pricing
Call it through odnoga
const res = await fetch("https://api.odnoga.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.ODNOGA_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "gemini-3.1-pro-preview",
messages: [{ role: "user", content: "Hello" }],
}),
});
One endpoint, one key, one bill — /v1/chat/completions takes the same shape whichever vendor is behind it. Swap the model id and odnoga handles keys, routing, limits and cost accounting.
What Gemini 3.1 Pro Preview can do
Everything below is what the model itself supports. Ask for something it does not do and odnoga tells you before the request reaches the provider, instead of returning a worse answer.
Works through a problem step by step before answering, which costs more tokens and buys accuracy on hard tasks.
Send a screenshot, a photo or a scan in the same message as your text.
The model can call functions you define and use what they return.
Answers with valid JSON instead of prose you would have to parse.
Answers in the exact shape you specify, so the response fits your types without a fallback path.
Tokens arrive as they are produced, so your interface can answer immediately.
Can look something up rather than answer from training data alone. Billed per search.
A prompt you send repeatedly is charged at the cached rate, which is a fraction of the input price.
Work that can wait goes through at a lower price.
Beyond text
Send a document and ask about it, without extracting the text yourself first.
Takes recorded speech as input.
Takes video as input and answers questions about what happens in it.
Finer control
- Structured outputs · The provider guarantees the schema rather than merely aiming for it.
How to use Gemini 3.1 Pro Preview
Reviewed 2026-09-14
Best for
- Complex problems across mixed sources: Google describes it as its most advanced reasoning Gemini model, handling text, audio, images, video, PDFs and whole code repositories.
- Software engineering behaviour and agentic workflows that need precise tool use and reliable multi-step execution.
- Analysis over very large inputs with a 1M-token context window.
- Tasks where factual consistency and token efficiency matter more than raw speed.
Not the right pick when
- High-volume, latency-sensitive traffic — a Flash tier is the intended answer.
- Cost-sensitive batch work: Pro-tier pricing shows up quickly at scale.
- Production paths that cannot tolerate a preview model id changing underneath them.
Practical tips through odnoga
- 01Use it for the hard tail of your traffic and a Flash tier for the rest — routing by prompt is the whole point of a gateway.
- 02Give it the sources rather than a summary of them; its advantage is comprehension across large, mixed inputs.
- 03Because it is a preview id, pin it in a managed prompt version and keep the previous model available for instant switch-back.
- 04Track cost per tenant: Pro-tier reasoning on long inputs is the most expensive combination in any catalog.
What a month costs
1,000 calls a month, 10,000 input tokens and 2,000 output tokens each, at your Free price (vendor cost +7%):
| Input (10M tokens) | $21.51 |
|---|---|
| Output (2M tokens) | $25.81 |
| Your cost per month on Free | $47.31 |
Vendor list cost $44.00 + odnoga margin $3.31 (+7%). Cached input or answer reuse lowers it; odnoga records both numbers per request.
If Gemini 3.1 Pro Preview is not the one
Models that take the same kind of input, are priced the same way, and do the closest thing to what this one does. Not a quality ranking — odnoga does not benchmark models.
| Model | Context | Input / 1M | Output / 1M | Capabilities |
|---|---|---|---|---|
| Gemini 3.1 Pro Preview | 1.0M | $2 | $12 | Reasoning, Reads images, Tool calling, JSON schema, Streaming, Web search, Prompt caching, Batch |
| Gemini 3.5 Flash | 1.0M | $1.50 | $9 | Reasoning, Reads images, Tool calling, JSON schema, Streaming, Web search, Prompt caching, Batch |
| Claude Sonnet 5 | 1M | $2 | $10 | Reasoning, Reads images, Tool calling, JSON schema, Streaming, Web search, Prompt caching, Batch |
| Claude Sonnet 5.5 | 1M | $2 | $10 | Reasoning, Reads images, Tool calling, JSON schema, Streaming, Web search, Prompt caching, Batch |
Questions
- What is Gemini 3.1 Pro Preview built for?
- Google describes it as refining the Gemini 3 Pro series with better thinking, improved token efficiency and a more grounded, factually consistent experience, optimised for software engineering and agentic workflows.
- Should I run a preview model in production?
- Only with a pinned prompt version and a tested fallback. odnoga lets you switch the production label back to the previous model without an application change.
- Is the 1M context worth the cost?
- Sometimes. Compare a long-context prompt against a retrieval-based one on the same frozen test cases — the laboratory reports tokens and cost next to pass rate, so the trade-off is measured rather than argued.
All models · Pricing · Docs · Compare models in the evaluation lab
Sources: Google AI for Developers — Gemini 3.1 Pro preview, Google DeepMind — Gemini 3.1 Pro model card
Other Google AI models
Gemini 2.5 Flash Native Audio (Live)
$0.5 / $2 per 1M
Gemini 2.5 Flash TTS
$0.5 / $10 per 1M
Gemini 2.5 Pro TTS
$1 / $20 per 1M
Gemini 3 Flash Preview
$0.5 / $3 per 1M
Gemini 3 Pro Image (Nano Banana Pro)
$2 / $12 per 1M
Gemini 3.1 Flash Image (Nano Banana 2)
$0.5 / $3 per 1M
Gemini 3.1 Flash Lite Image (Nano Banana 2 Lite)
$0.25 / $1.50 per 1M
Gemini 3.1 Flash Live
$0.75 / $4.50 per 1M