Models / Google

GO

Gemini 3.1 Pro Preview

$1.20 in, $7.20 out per million tokens, 40% under Google's list price.

gemini-3.1-pro-previewmanaged routeGemini SDKOpenAI SDK

Price · per million tokens, USD

TokensGoogle list priceUplinkSwitchSaving
Input$2.00$1.20-40%
Cached input$0.20$0.12-40%
Output$12.00$7.20-40%
List price: Google's published rate, read Oct 11, 2026. Same price on every host.

Call it · base URL and key

Python · OpenAI SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.uplinkswitch.com/v1",
    api_key="sk-uplink-live-...",
)

completion = client.chat.completions.create(
    model="gemini-3.1-pro-preview",
    messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)
TypeScript · OpenAI SDK
import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://api.uplinkswitch.com/v1',
  apiKey: 'sk-uplink-live-...',
});

const completion = await client.chat.completions.create({
  model: 'gemini-3.1-pro-preview',
  messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(completion.choices[0].message.content);
Python · Gemini SDK
from google import genai

client = genai.Client(
    api_key="sk-uplink-live-...",
    http_options={"base_url": "https://api.uplinkswitch.com/v1"},
)

response = client.models.generate_content(
    model="gemini-3.1-pro-preview",
    contents="Summarize this in one line.",
)
print(response.text)
curl
curl "https://api.uplinkswitch.com/v1beta/models/gemini-3.1-pro-preview:generateContent" \
  -H "x-goog-api-key: sk-uplink-live-..." \
  -H "content-type: application/json" \
  -d '{"contents":[{"parts":[{"text":"Hello"}]}]}'

What would it cost? · paste a prompt, priced before you send it

Input is counted at about 4 characters per token.

Cheapest first. A real request is billed on the provider's own token count. Same estimate as JSON: POST https://api.uplinkswitch.com/v1/estimate, no key needed.