Gemini 3 API: the ids to call and what they cost
The Gemini 3 API on one prepaid key: 6 Gemini 3 ids, which one to call for Pro, Flash and Flash Lite, and what each costs per million tokens, read live next to Google's list. Paid by card or in USDT, USDC, BTC, ETH, SOL, no Google account.
Gemini 3 Pro, Flash and Flash Lite, per million tokens
USD per million tokens, read from the catalog at render. Google's list beside ours where the catalog has it; the source is the Gemini API pricing page.
| Model | Context | Input | Output | List input | List output | Under list |
|---|---|---|---|---|---|---|
| Gemini 3.1 Pro Previewgemini-3.1-pro-preview | 1M | $1.20 | $7.20 | $2.00 | $12.00 | 40% |
| Gemini 3 Flash Previewgemini-3-flash-preview | 1M | $0.375 | $2.25 | $0.50 | $3.00 | 25% |
| Gemini 3.1 Flash Litegemini-3.1-flash-lite | — | $0.15 | $0.90 | $0.25 | $1.50 | 40% |
| Gemini 3.1 Flash Lite Previewgemini-3.1-flash-lite-preview | 1M | $0.1875 | $1.125 | $0.25 | $1.50 | 25% |
| Gemini 3.1 Flash Imagegemini-3.1-flash-image | — | $13.192 | $1,583.04 | — | — | — |
| Gemini 3.1 PRO Preview Customtoolsgemini-3.1-pro-preview-customtools | 1M | $4.80 | $28.80 | — | — | — |
Cached input is cheaper on every row that supports it; the model page has the rate. The later Gemini generations and the 2.5 line are on the Gemini pricing hub, 20 Gemini ids in all.
Pick by what the request does
Gemini 3.1 Pro Preview
gemini-3.1-pro-previewLong reasoning, large codebases, documents and video in the prompt. The dearest of the three per token and the one to pick when the answer has to be right the first time.
Gemini 3 Flash Preview
gemini-3-flash-previewThe default for chat, extraction and agent steps: most of the quality of Pro at a fraction of the output rate, with the same context window.
Gemini 3.1 Flash Lite
gemini-3.1-flash-liteClassification, routing, short summaries and anything that runs millions of times. Pick it when per-token price is the whole decision.
A chat turn of 2,000 tokens in and 500 out costs $0.0060 on Gemini 3.1 Pro Preview, $0.0019 on Gemini 3 Flash Preview and $0.0008 on Gemini 3.1 Flash Lite at today's prices. The compare page puts any two side by side.
One request in the OpenAI format
The Gemini 3 ids answer the OpenAI chat completions format at https://api.relayswitch.io/v1/chat/completions. Google documents the same OpenAI-compatible shape for its own endpoint, so code written that way moves here by changing the base URL and the key.
Python, OpenAI SDK
from openai import OpenAI client = OpenAI(base_url="https://api.relayswitch.io/v1", api_key="sk-relay-...")reply = client.chat.completions.create( model="gemini-3.1-pro-preview", messages=[ {"role": "system", "content": "Answer in one sentence."}, {"role": "user", "content": "What does the Gemini 3 API cost here?"}, ],)print(reply.choices[0].message.content)Node, OpenAI SDK
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.relayswitch.io/v1", apiKey: process.env.RELAYSWITCH_KEY });const reply = await client.chat.completions.create({ model: "gemini-3.1-flash-lite", messages: [{ role: "user", content: "Three bullet points on Gemini 3." }],});console.log(reply.choices[0].message.content);curl, streamed
curl https://api.relayswitch.io/v1/chat/completions \ -H "Authorization: Bearer $RELAYSWITCH_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "gemini-3-flash-preview", "messages": [{"role": "user", "content": "Hello"}], "stream": true}'Code on the google-genai SDK: swap it for the OpenAI SDK with the base URL above. Tool calls, JSON mode, images in the prompt and the response headers that carry the request id and the charge are in the docs; Cursor, Cline and the other editors are in the guides.
No Google account, no Google Cloud project
Sign-up
An email address. No Google account, no AI Studio key, no billing project, no identity documents, no phone number.
Payment
A top-up from $10 by Card, Apple Pay, PayPal, or USDT, USDC, BTC, ETH, SOL to the address the checkout shows. The balance credits in USD; nothing recurs.
The key
One key, every Gemini 3 id and every other model in the catalog, from the same balance. A monthly spend limit per key if you want one. Each request shows its charge.
Gemini 3 API: questions
Free tiers, access, ids and policies.
Gemini 3 on one key
Pro, Flash and Flash Lite at live prices under Google's list, from a $10 top-up by card or crypto. No Google account, no subscription.