gemini-3.1-pro-preview
NixAPI price, from
USD per 1M tokens · via group Anti-Gemini-1 · Official list price $2 / $12Save 88%
About gemini-3.1-pro-preview
Gemini 3.1 is Google's most intelligent model family to date, grounded in advanced reasoning. It is designed to turn any idea into reality by mastering agentic workflows, autonomous coding, and complex multimodal tasks. gemini-3.1-pro-preview is best suited for complex tasks requiring broad world knowledge and advanced cross-modal reasoning.
Price by routing group
Pick a group in the console when you create a key. Status is live from the router. Live status by group →
| Group | Group status | Model status | Multiplier | Input | Output | Cache read | Cache write |
|---|---|---|---|---|---|---|---|
Anti-Gemini-1 | … | ×0.1243 | $0.2485 | $1.491 | $0.0249 | — | |
Cli-Gemini-1 | … | ×0.1243 | $0.2485 | $1.491 | $0.0249 | — | |
Aistudio-Gemini-1 | … | ×0.2982 | $0.5965 | $3.579 | $0.0596 | — | |
Vertex-Gemini-1 | … | ×0.338 | $0.676 | $4.056 | $0.0676 | — | |
Aistudio-Gemini-2 | … | ×0.4474 | $0.8947 | $5.368 | $0.0895 | — | |
Aistudio-Gemini-3 | … | ×0.7456 | $1.491 | $8.947 | $0.1491 | — | |
Vertex-Gemini-2 | … | ×0.7605 | $1.521 | $9.126 | $0.1521 | — | |
Vertex-Gemini-3 | … | ×1.521 | $3.042 | $18.252 | $0.3042 | — | |
Aistudio-Gemini-4 | … | ×1.6155 | $3.231 | $19.385 | $0.3231 | — |
USD per 1M tokens
Long-context pricing
- Prompts over 200,000 tokens: input ×2, output ×1.5
Supported endpoints
Call gemini-3.1-pro-preview in one request
Works with the OpenAI SDK and any OpenAI-compatible client. Replace the key with your own.
curl https://api.nixapi.com/v1/chat/completions \
-H "Authorization: Bearer $NIXAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-pro-preview",
"messages": [{"role": "user", "content": "Hello!"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.nixapi.com/v1", api_key="sk-…")
resp = client.chat.completions.create(
model="gemini-3.1-pro-preview",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://api.nixapi.com/v1', apiKey: process.env.NIXAPI_KEY });
const resp = await client.chat.completions.create({
model: "gemini-3.1-pro-preview",
messages: [{ role: 'user', content: 'Hello!' }],
});
console.log(resp.choices[0].message.content);Questions about gemini-3.1-pro-preview
How much does gemini-3.1-pro-preview cost on NixAPI?
From $0.2485 per 1M input tokens and $1.491 per 1M output tokens in the Anti-Gemini-1 group, about 88% below the official list price. Prices are pay-as-you-go in USD with no monthly minimum.
How do I call gemini-3.1-pro-preview?
Point any OpenAI-compatible client at https://api.nixapi.com/v1, use your NixAPI key and set the model to "gemini-3.1-pro-preview".
Which routing groups serve gemini-3.1-pro-preview?
gemini-3.1-pro-preview is available in 9 routing groups: Anti-Gemini-1, Cli-Gemini-1, Aistudio-Gemini-1, Vertex-Gemini-1, Aistudio-Gemini-2, Aistudio-Gemini-3, Vertex-Gemini-2, Vertex-Gemini-3, Aistudio-Gemini-4. The lowest price is in Anti-Gemini-1.