Skip to main content

Gemini 3.1 Pro Preview is Google's long-context chat model with an OpenAI-compatible API. It reads up to 1,000,000 tokens and replies up to 32,768, with three reasoning-effort levels, up to 128 tools, JSON output and text and image input.

Input $1.90Output $11.40per 1 million tokens5% below the publisher's list priceCached input $0.19Prompts over 200K tokensInput $3.80Output $17.10Google official priceInput $2Output $12

Workbench

Gemini 3.1 Pro Preview

What can Gemini 3.1 Pro Preview help with?

Related models and next tasks

Missing the model you need?

Tell us what to add and where you would use it. Requests go to the people who decide what gets onboarded next.

Build stable message flows for reasoning over long context, with a declared long-context tier

Gemini 3.1 Pro Preview reads up to 1,000,000 tokens and returns up to 32,768 — the smallest reply ceiling in the Gemini group here — and it is the one route in this group with a published long-context tier that begins at 200,000 tokens. It is the reasoning option of the group, priced accordingly.

Open the chat playground
Build stable message flows for reasoning over long context, with a declared long-context tier
Model
Gemini 3.1 Pro Preview
Good for
reasoning over long context, with a declared long-context tier
Message shape
System rules → evidence and state → current task → output contract
Fact boundary
Capabilities, controls, and price come from the live schema

Integration principle

Validate with the smallest message set, then add necessary context. Separate facts, assumptions, and constraints, and design interruption, retry, settlement, and review paths.

Build repeatable workflows for reasoning over long context, with a declared long-context tier

Gemini 3.1 Pro Preview reads up to 1,000,000 tokens and returns up to 32,768 — the smallest reply ceiling in the Gemini group here — and it is the one route in this group with a published long-context tier that begins at 200,000 tokens. It is the reasoning option of the group, priced accordingly.

  • A long-context threshold

    Declared from 200,000 tokens

    The only Gemini route here with a separate long-context tier in its price card. Check it before assuming a long call is priced like a short one.

  • The smallest reply ceiling here

    32,768 tokens

    Half of what the Flash routes return. The shape favours a reasoned answer over a long document.

  • Preview status

    Named as a preview route

    Interface and behaviour are less settled than a general-availability route; pin what you depend on.

Where Gemini 3.1 Pro Preview wins on task cost and interaction shape

Test one real task for quality, verifiability, latency, and sale-price fit instead of relying on a general leaderboard.

  1. Choose 3.1 Pro Preview

    The reasoning is the deliverable

    Analysis over a large evidence base, where the answer is a judgement rather than a text.

  2. Choose 3.7 Flash

    The answer needs to be longer

    Twice the reply ceiling at a lower rate, without the long-context tier.

  3. Choose a Claude or GLM route

    You need a very long reply

    Reply ceilings from 64,000 to 384,000 exist elsewhere in this catalogue; this route is not built for that.

Turn Gemini 3.1 Pro Preview into concrete work, not generic labels

Every scenario needs input boundaries, verification, and recovery; official capabilities, benchmarks, and tool support are never invented.

  • Many sources, one judgement

    Evidence-heavy analysis

    Many sources, one judgement

    A large context with a compact, reasoned conclusion is exactly this shape.

  • Read broadly, report precisely

    Code review at scale

    Read broadly, report precisely

    The 32,768-token ceiling keeps the report focused rather than exhaustive.

  • Weighing options against constraints

    Comparative assessment

    Weighing options against constraints

    Ask for the trade-offs and what would change the recommendation.

  • Adult characters, clear boundaries

    Unrestricted narrative work

    Adult characters, clear boundaries

    Planning and continuity checking over an existing body of text, rather than generating long passages. We add no content filter.

Organize context into an inspectable Gemini 3.1 Pro Preview input

Objective, evidence, state, constraints, and output contract need distinct jobs so requests can be compressed, debugged, and reproduced.

  1. Watch the threshold

    200,000 tokens changes the rate

    Know where your typical request sits relative to it; the price card carries the current numbers for both tiers.

  2. Output

    32,768 is the design constraint

    Ask for a judgement with its reasoning, not for a document.

  3. Evidence

    Separate sources from assumptions

    Higher effort reasons over everything you provide, including the things you did not mean as facts.

  4. Preview handling

    Pin and re-verify

    Keep a smoke check on the request and response shapes you depend on.

Prove a repeatable Gemini 3.1 Pro Preview case before product integration

Confirm live schema, quote, streaming, and error behavior before reusing the normalized request.

  1. 01 · Baseline

    Validate the smallest request in Playground

    Check message layers, output shape, streaming, and current controls.

  2. 02 · Boundaries

    Exercise failure, cancellation, and retry

    Verify timeouts, interrupted streams, oversized input, regeneration, and duplicate submission.

  3. 03 · Integrate

    Copy the normalized API request

    Use the public model id and messages contract; read model controls from the live schema.

  4. 04 · Operate

    Meter usage and keep evaluating

    Store state, final usage, failure reasons, and quality feedback; quote expensive calls first.

Bring Gemini 3.1 Pro Preview into a clear API contract

Playground, API examples, request states, and usage records stay aligned from evaluation through production integration.

  • Unified contract

    One shape for messages, streams, and errors

    Keep request structure, state handling, and error recovery consistent when changing models.

  • Live schema

    Use the current endpoint controls

    Playground and API examples expose available fields, limits, and default behavior together.

  • Observable lifecycle

    Every request has a clear state

    Submission, streaming, failure, cancellation, and usage use inspectable public semantics.

  • Portable integration

    Reduce work when models evolve

    A clear contract keeps product code focused on inputs, results, and user experience.

Gemini 3.1 Pro Preview API boundaries to confirm before integration

All Gemini models8