Gemini 3.1 Pro Preview runs at 17% off on API Token Router.
Google: Gemini 3.1 Pro Preview
Designed for advanced development and agentic systems, Gemini 3.1 Pro Preview improves long-horizon stability and tool orchestration while increasing token efficiency. It introduces a new medium thinking level to better balance cost, speed, and performance. The model excels in agentic coding, structured planning, multimodal analysis, and workflow automation, making it well-suited for autonomous agents, financial modeling, spreadsheet automation, and high-context enterprise tasks. Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliability, and more efficient token usage across complex workflows. Building on the multimodal foundation of the Gemini 3 series, it combines high-precision reasoning across text, image, video, audio, and code with a 1M-token context window.
Modalities
Price (in / out)
17% off$1.666 / $9.996$2 / $12per 1M
Context-tiered pricingContext
1,048,576
Released
Feb 19, 2026
Call the Gemini 3.1 Pro Preview API
Model ID gemini-3.1-pro-preview · replace <ATR_API_KEY> with your API key
OpenAI-compatible
curl https://api.apitokenrouter.com/v1/chat/completions \
-H "Authorization: Bearer <ATR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"model":"gemini-3.1-pro-preview","messages":[{"role":"user","content":"Hello"}]}'Gemini native
curl "https://api.apitokenrouter.com/v1beta/models/gemini-3.1-pro-preview:generateContent" \
-H "Authorization: Bearer <ATR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"contents":[{"parts":[{"text":"Hello"}]}]}'Providers
API Token Router routes by health and cost within the discount range and provider list you configured. When one returns an error we fall through to the next best — you don't pick a provider in the request. Configure discount range
Need a specific set of providers?
| Provider | Context | Input | Output | Cache | Latency | Throughput | Uptime | No training |
|---|---|---|---|---|---|---|---|---|
| Google AI | 1,048,576 | $2$1.666Context-tiered pricing | $12$9.996 | $0.2$0.1666 | — | — | — | No training |
| Google Vertex | 1,048,576 | $2$1.666Context-tiered pricing | $12$9.996 | $0.2$0.1666 | — | — | — | No training |
Uptime
API Token Router continuously probes every provider and falls through to the next best one on error.
Uptime (24h)
—
Uptime (3d)
—
Uptime, last 3 days
—
Uptime, last 24 hours
One line per upstream provider, taking the best success rate among that provider's channels. The API Token Router line counts only the final attempt of each request — the end-to-end result after all fallbacks.
AVAILABILITY · LAST 24H · API TOKEN ROUTER GATEWAY
Data security
API Token Router does not use your data to train models.
For the full data-security policy, learn more.
Need to pick your own providers? .
Quickstart
from google import genai
from google.genai import types
client = genai.Client(
api_key="<ATR_API_KEY>",
http_options=types.HttpOptions(base_url="https://api.apitokenrouter.com"),
)
response = client.models.generate_content(
model="gemini-3.1-pro-preview",
contents="Hello",
)
print(response.text)Endpoint: https://api.apitokenrouter.com
About Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview is a Google model. On API Token Router its model ID is gemini-3.1-pro-preview, and the same API Token Router API key works for it and every other model. Setup steps are in the API docs.
- Model ID
gemini-3.1-pro-preview- Provider
- Context window
- 1.05M tokens
- Official list price
- $2 input / $12 output per 1M tokens
- Released
- Feb 19, 2026
More Google models
Similar-priced models
Use the Gemini 3.1 Pro Preview API
Point the base URL at API Token Router and use gemini-3.1-pro-preview as the model name; nothing else changes. Python example:
from google import genai
from google.genai import types
client = genai.Client(
api_key="<ATR_API_KEY>",
http_options=types.HttpOptions(base_url="https://api.apitokenrouter.com"),
)
response = client.models.generate_content(
model="gemini-3.1-pro-preview",
contents="Hello",
)
print(response.text)Use Gemini 3.1 Pro Preview in OpenCode
OpenCode
OpenCode → Settings → Providers → Custom provider
Provider ID: apitokenrouter
Base URL: https://api.apitokenrouter.com/v1
API key: <your API Token Router API key>
Model ID: gemini-3.1-pro-previewGemini 3.1 Pro Preview guides
- Gemini 4 Hydrogen API Is Out: gemini-4-hydrogen Price, Four Thinking Levels and How to Call It
- Gemini 4 Hydrogen vs Carbon vs Argon: Price, Capability and Which to Pick
- Using Gemini 4 Hydrogen Without a Google Account or a Credit Card
- Gemini 4 Carbon API Is Live: Model ID, Price, Benchmarks and How It Differs From Argon
- Gemini Krypton Release Date: What We Know So Far
- Gemini Omni Pro Release Date: What We Know So Far
Gemini 3.1 Pro Preview FAQ
- What is the Gemini 3.1 Pro Preview API model ID?
- The model ID is gemini-3.1-pro-preview. The OpenAI-compatible base URL is https://api.apitokenrouter.com/v1.
- How do I get a Gemini 3.1 Pro Preview API key?
- You don't need a Google account. Sign up for API Token Router, create a key (sk-atr-…) under API Keys in the dashboard, top up from $5, and call gemini-3.1-pro-preview — the same key also works for every other model. Create an API key.
- How large is the Gemini 3.1 Pro Preview context window?
- Gemini 3.1 Pro Preview has a 1.05M-token context window, with up to 66K output tokens per request.
- How much does the Gemini 3.1 Pro Preview API cost?
- The official list price of Gemini 3.1 Pro Preview is $2 input / $12 output per 1M tokens. API Token Router bills per use with no monthly fee; see the price table on this page for the current discounted price.
- How do I pay for the Gemini 3.1 Pro Preview API?
- New accounts start with a $0 balance. Top up from $5 by card in the API Token Router dashboard, then usage is deducted per request, with no subscription. Top up.
- Can I use Gemini 3.1 Pro Preview from Russia?
- Yes. API Token Router works from Russia without a VPN, and the Russian version of the site lets you pay in rubles with SBP, SberPay, T-Bank or YooMoney. Gemini 3.1 Pro Preview на русском.
- Can I use Gemini 3.1 Pro Preview in Cursor, Cline or Cherry Studio?
- Yes. Choose the OpenAI-compatible provider, set the base URL to https://api.apitokenrouter.com/v1, use your API Token Router API key, and enter gemini-3.1-pro-preview as the model name.
- Can I pay for the Gemini 3.1 Pro Preview API with USDT?
- Yes. In the top-up dialog, click "Pay with crypto" and send USDT, USDC or ETH from Binance, OKX or any wallet. The minimum is $5 and no browser extension is needed. Step by step: how to pay for the API with USDT.