gemini-3.1-pro-preview
Google logo

Gemini 3.1 Pro Preview

gemini-3.1-pro-preview
Google
Gemini 3.1 Pro Preview is designed to further optimize the performance and reliability of the Gemini 3 Pro series, offering improved reasoning capabilities, greater token efficiency, and a more robust, factually consistent user experience. It is optimized for software-engineering behaviors and usability, and is also suitable for agent workflows that require precise tool invocation and reliable multi-step execution, enabling stable operation across a variety of real-world scenarios.

Pricing

TierPricingCache ReadWeb SearchCache Storage
Input<=200K
$2.000$12.000
$0.2/M tokens$0.014/request$4.5/h/M tokens
200K<Input
$4.000$18.000
$0.4/M tokens$0.014/request$4.5/h/M tokens

Input Modalities

  • Text
  • Vision
  • Audio
  • Video
  • PDF

Output Modalities

  • Text

Context length

  • 1.05M tokens

Max output

  • 65.5K tokens

Capabilities

  • Thinking
  • Streaming
  • Tool calling
  • Web search
  • URL context
  • Code interpreter
  • Computer use
  • File search
  • Memory tool
  • Structured outputs
  • Citations
  • Prompt caching
  • Background mode
  • Server-side sessions

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="gemini-3.1-pro-preview",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

What is gemini-3.1-pro-preview?

Gemini 3.1 Pro Preview is designed to further optimize the performance and reliability of the Gemini 3 Pro series, offering improved reasoning capabilities, greater token efficiency, and a more robust, factually consistent user experience. It is optimized for software-engineering behaviors and usability, and is also suitable for agent workflows that require precise tool invocation and reliable multi-step execution, enabling stable operation across a variety of real-world scenarios.