Gemini logoGemini

    gemini-3.1-pro-preview

    Auto-router

    gemini/gemini-3.1-pro-preview

    ChatVisionToolsSystem promptReasoning

    Context

    1.0M

    Max output

    66K

    Input / 1M

    $2.00

    Output / 1M

    $12.00

    Cached / 1M

    $0.20

    Cutoff

    Jan 2025

    About this model

    Gemini 3.1 Pro is our most advanced reasoning Gemini model, capable of solving complex problems.

    Best suited for

    • Gemini 3.1 Pro can comprehend vast datasets and challenging problems from different information sources, including text, audio, images, video, PDFs, and even entire code repositories with its 1M token context window.

    Built-in tools

    Gtwy web search

    Hosted by the gateway — enable them per request without wiring your own endpoint.

    Capabilities

    Vision

    Accepts images alongside text in the same message.

    Tools

    Native function calling, so agents can invoke your endpoints.

    System prompt

    Honours a dedicated system role, separate from the user turn.

    Reasoning

    Emits a separate thinking pass before the answer.

    Supported parameters

    creativity_level

    Controls the creativity of responses. Higher values (e.g., 0.7) increase creativity; lower values (e.g., 0.2) make responses more predictable.

    max_tokensMax Tokens Limit

    Specifies the maximum number of text units (tokens) allowed in a response, limiting its length.

    probability_cutoffProbability Cutoff (Top P)

    Focuses on the most likely words based on a percentage of probability.

    log_probability

    If true, returns the log probabilities of each output token returned in the content of message.

    stop

    This parameter tells the model to stop generating text when it reaches any of the specified sequences (like a word or punctuation)

    tools

    Lists tool definitions or capabilities available to the model.

    tool_choice

    Decides whether to use tools or just the model for generating responses.

    response_type

    Defines the format or type of the generated response.

    parallel_tool_calls

    Enables parallel execution of tools, allowing multiple tools to run simultaneously.

    reasoning

    Controls the level of reasoning used by the model.

    stream

    Sends the response in real-time as it's being generated.