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

These examples were written for this endpoint. Replace the prompt and sample media URLs with your own accessible inputs, then check the current quote and model availability before submitting.

  • Input types
    Text
    Output types
    Text
    Input
    $1.90 / 1 million tokens
    Cached input
    $0.19 / 1 million tokens
    Output
    $11.40 / 1 million tokens
    Context
    1M
    Max output
    32,768

    $1.90/11.40per 1 million tokens · input / output

    fast-triage

    Low effort, a fixed system message, only the material changes. This is the cheap pass you run before deciding what deserves a careful one.

    • 1000
    • low
  • Input types
    Text
    Output types
    Text
    Input
    $1.90 / 1 million tokens
    Cached input
    $0.19 / 1 million tokens
    Output
    $11.40 / 1 million tokens
    Context
    1M
    Max output
    32,768

    $1.90/11.40per 1 million tokens · input / output

    long-read-short-answer

    The shape this endpoint is built for: the whole context in one message, a short answer out.

    • 1500
    • medium
  • Input types
    Text
    Output types
    Text
    Input
    $1.90 / 1 million tokens
    Cached input
    $0.19 / 1 million tokens
    Output
    $11.40 / 1 million tokens
    Context
    1M
    Max output
    32,768

    $1.90/11.40per 1 million tokens · input / output

    structured-output

    JSON output. response_format shapes the reply, but parsing and validation stay on your side.

    • 3000

This example starts at Input $1.90 / Output $11.40 per 1 million tokens. The Playground updates the estimate when you change the settings.