OpenAI compatible API · Attested · Public status

Google: Gemini 3.1 Pro Preview API

Use the OpenAI-compatible API quickstart for Google: Gemini 3.1 Pro Preview on TrustedRouter, with model IDs, streaming examples, authentication, fallback behavior, and SDK configuration.

Verify gateway
Onebase URL to migrate
100sof models and routes
0prompt or output logs. Always.

google/gemini-3.1-pro-preview

API

All models

AI IQ IQ 127 #9 public AI IQ rank for gemini-3.1-pro
View AI IQ profile

Use the same OpenAI compatible clients you already use. Only the base URL and model change.

from openai import OpenAI

client = OpenAI(
    base_url="https://api.trustedrouter.com/v1",
    api_key="sk-tr-v1-..."
)

response = client.chat.completions.create(
    model="google/gemini-3.1-pro-preview",
    messages=[{"role": "user", "content": "Give me a one-sentence status."}],
    max_tokens=64,
)
print(response.choices[0].message.content)
Workspace access

Sign in

Choose a sign in method to access your TrustedRouter workspace.

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