Find a model

Browse the full catalog →

Gemini 3.1 Pro Preview

Chat model from Google AI Studio. One API key reaches all 3 providers, with automatic failover.

Input / 1M$2.11
Output / 1M$12.66
Context1.05M
Providers 3 providers, one key

No card required. Start with 1 million free tokens.

Overview

About Gemini 3.1 Pro Preview

Gemini 3.1 Pro Preview is a chat model published by Google AI Studio, with a 1,048,576-token context window. It scores 122 on AI IQ, ranked #38. Through TrustedRouter it runs on 3 providers, with options in the US and EU, from $2.11 per million input tokens.

Model ID
google/gemini-3.1-pro-preview
Publisher
Google AI Studio
Modes
chat
Billing
Credits or your own provider key
Quickstart

Set it up with your agent

Paste this into Claude Code, Cursor or any coding agent.

Use Gemini 3.1 Pro Preview through TrustedRouter in this project.

1. Read https://trustedrouter.com/llms.txt
2. Point the OpenAI-compatible client at
   https://api.trustedrouter.com/v1 and read the key from
   TRUSTEDROUTER_API_KEY.
3. Set the model to google/gemini-3.1-pro-preview.
4. Run the tests, then show me the diff before committing.
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.trustedrouter.com/v1",
    api_key=os.environ["TRUSTEDROUTER_API_KEY"],
)
response = client.chat.completions.create(
    model="google/gemini-3.1-pro-preview",
    messages=[{"role": "user", "content": "What is the capital of France?"}],
)
print(response.choices[0].message.content)
curl https://api.trustedrouter.com/v1/chat/completions \
  -H "Authorization: Bearer $TRUSTEDROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-3.1-pro-preview",
    "messages": [{"role": "user", "content": "What is the capital of France?"}]
  }'
Your agent will need an API key.
3 providers

Providers

Your key goes to the cheapest healthy provider and fails over on its own. Open a row for retention, location and weight format, or see how we check privacy claims and the live speed leaderboard.

Gemini 3.1 Pro Preview providers and prices per 1M tokens
Provider Input Cached Output Cost per 1M in + out Details
Atlas Cloud logo Atlas Cloud $2.11 $0.211 $12.66 $14.77

Retention

Verification: privacy unknown.

Atlas Cloud publishes a platform zero-retention policy, while its aggregated model routes can involve downstream providers. TrustedRouter keeps the public route tier conservative pending downstream-path contractual verification.

Provider policy source

Location

Operator country: US

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

Unknown

Price and speed

Input $2.11/1M · Cached input $0.211/1M · Output $12.66/1M

TTFT: insufficient data

Speed: insufficient data

Last sample:

Atlas Cloud provider page

Google AI Studio logo Google AI Studio $2.11 $0.211 $12.66 $14.77

Retention

Verification: no verified privacy claim.

Not currently marked ZDR in TrustedRouter. Google AI Studio and the Gemini Developer API have product- and billing-specific data-use terms, so this route stays outside trustedrouter/zdr.

Provider policy source

Location

Operator country: US

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

Unknown

Price and speed

Input $2.11/1M · Cached input $0.211/1M to $0.422/1M · Output $12.66/1M

TTFT: 3.63 s

Speed: insufficient data

Last sample:

Google AI Studio provider page

Google Vertex AI logo Google Vertex AI $2.11 $0.211 $12.66 $14.77

Retention

Cache remediation - review pending: Durable implicit caching was disabled on the managed Vertex project on October 29, 2026; four regional checks confirmed EPHEMERAL memory-only caching. Previously cached inputs may persist for up to 24 hours. This route remains excluded from strict ZDR until prior data expiration and model-specific terms and feature exceptions are reviewed. BYOK is not covered.

Durable implicit caching was disabled on the managed Vertex project on October 29, 2026; four regional checks confirmed EPHEMERAL memory-only caching. Previously cached inputs may persist for up to 24 hours. This route remains excluded from strict ZDR until prior data expiration and model-specific terms and feature exceptions are reviewed. BYOK is not covered.

Provider policy source

Location

Operator country: US

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

Unknown

Price and speed

Input $2.11/1M · Cached input $0.211/1M to $0.422/1M · Output $12.66/1M

TTFT: 3.32 s

Speed: insufficient data

Last sample:

Google Vertex AI provider page

Append :nitro to the model ID, or send "provider": {"sort": "throughput"}, to route to the fastest provider instead.

FAQ

Questions

What model ID should I use for Gemini 3.1 Pro Preview?

Use google/gemini-3.1-pro-preview as the model field with the TrustedRouter OpenAI-compatible API. Credits routing and provider fallback happen behind that model ID.

Do you log my prompts or outputs?

No. Prompt and output content are intentionally excluded from the control plane and metadata systems. Optional content export requires explicit destination-level configuration.

Which providers serve Gemini 3.1 Pro Preview?

TrustedRouter currently lists Google AI Studio, Google Vertex AI, and Atlas Cloud for Gemini 3.1 Pro Preview. Provider availability and routing eligibility can change as catalog and health data update.

How much does Gemini 3.1 Pro Preview cost through TrustedRouter?

The current lowest Credits input price is $2.11/1M and the lowest Credits output price is $12.66/1M. Prices are per one million tokens and come from the current route catalog.

How do I require zero data retention for Gemini 3.1 Pro Preview?

Set provider.min_privacy to zdr on the request. TrustedRouter considers only routes with a recorded zero-data-retention posture and fails closed if no eligible route remains.

Compare

Gemini 3.1 Pro Preview vs other models

Start building with Gemini 3.1 Pro Preview.

No card required. Start with 1 million free tokens.

Workspace access

Sign in

Choose a sign in method to access your TrustedRouter workspace.

New to TrustedRouter?

By continuing you agree to the terms of service and privacy policy.