Models / Gemini 3.1 Pro Preview

Gemini 3.1 Pro Preview

Tier 1Proprietary

Google Gemini 3.1 Pro Preview (preview) — reasoning. Via yylx gateway.

google/gemini-3.1-pro-preview
Context Window
1M
Max Output
66K
Providers
1
Released
2026-01

Capabilities

ChatToolsFunction CallingStreamingVision

Pricing by Provider

Prices shown are the official rate published by the model provider, before any platform discounts. Your actual rate may be lower based on your account's discount tier.

ProviderPriceLatency p50Latency p95Status
yylx_gemini$2.00 /M in · $12.00 /M out700ms3000ms

Quick Start

Python
import magicrouter

mr = magicrouter.Client(
    provider_keys={"yylx_gemini": "your-api-key"}
)

response = mr.chat(
    "google/gemini-3.1-pro-preview",
    "Your prompt here"
)
print(response.choices[0].message.content)
TypeScript
import { MagicRouter } from "magicrouter";

const mr = new MagicRouter({
  providerKeys: { yylx_gemini: "your-api-key" }
});

const response = await mr.chat({
  model: "google/gemini-3.1-pro-preview",
  messages: [{ role: "user", content: "Your prompt here" }]
});
console.log(response.choices[0].message.content);
cURL
curl https://app.yylx.io/v1/chat/completions \
  -H "Authorization: Bearer your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-pro-preview",
    "messages": [{"role": "user", "content": "Your prompt here"}]
  }'

Use this model

Sign up for free and test Gemini 3.1 Pro Preview in the playground

Get Started