Gemini 3.1 Pro Preview
Google logo

Gemini 3.1 Pro Preview

gemini-3.1-pro-previewllms.txt
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

Providers

VertexAI gemini-3.1-pro-preview
Pricing$2.000$12.000
Cache Read$0.2/M tokens
Web Search$0.014/request
Cache Storage$4.5/h/M tokens
Pricing$4.000$18.000
Cache Read$0.4/M tokens
Web Search$0.014/request
Cache Storage$4.5/h/M tokens
Context1M
Max output64K
Latency20.3S
Throughput84.4TPS
Uptime
94.06% uptime 2 days ago
99.62% uptime yesterday
99.64% uptime today
Google AI Studio gemini-3.1-pro-preview
Pricing$2.000$12.000
Cache Read$0.2/M tokens
Web Search$0.014/request
Cache Storage$4.5/h/M tokens
Pricing$4.000$18.000
Cache Read$0.4/M tokens
Web Search$0.014/request
Cache Storage$4.5/h/M tokens
Context1M
Max output64K
Latency9.6S
Throughput75.2TPS
Uptime
92.56% uptime 2 days ago
88.75% uptime yesterday
88.26% uptime today

Performance for gemini-3.1-pro-preview

Uptime is the percentage of requests that succeeded over the past 72 hours. AIHubMix continuously monitors every provider and automatically retries with the next-best provider when one returns an error or responds too slowly; Latency is total round-trip time (lower is better); Throughput is how fast the model writes (tokens per second, higher is better).

Uptime
Loading...
Latency
Loading...
Throughput
Loading...

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.