Gemini 3.1 Pro (preview) API
Gemini 3.1 Pro (preview) brings Google’s deepest multimodal reasoning to the OpenLux endpoint: $0.1471 per million tokens — 92% below list — with thinking modes for hard problems.
Pay-as-you-go rate
$0.1471 / 1M tokens
-92% vs official list pricing. Billed in USD, metered per request with real-time cost in the console.
Access
One OpenLux key and the OpenAI-compatible endpoint: set base_url to https://openlux.lol/v1 and pass gemini-3.1-pro-preview as the model.
Get started
Create a key in the console, then follow the five-minute docs for streaming, tools and error codes.
What Gemini 3.1 Pro (preview) delivers
Pro-class Gemini combines multimodal input — images, screenshots and documents — with extended thinking for tasks that need visible reasoning: data analysis, visual QA and technical questions.
It sits between Flash and the OpenAI and Anthropic flagships on price: roughly a third of gpt-6-astra and a third of Claude Opus 5, with particular strength in mixed image and text workloads.
As a preview model, features follow Google’s upstream releases; the catalogue always lists the current rate and any changes.
Call Gemini 3.1 Pro (preview) in minutes
Every OpenLux model speaks the OpenAI protocol. Reuse your existing SDKs and replace two values: the base URL and the API key.
cURL
curl https://openlux.lol/v1/chat/completions \
-H "Authorization: Bearer $OPENLUX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-pro-preview",
"messages": [{"role": "user", "content": "Read this dashboard screenshot and explain the trend in the second quarter."}]
}'Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
api_key="sk-openlux-...",
base_url="https://openlux.lol/v1",
)
resp = client.chat.completions.create(
model="gemini-3.1-pro-preview",
messages=[{"role": "user", "content": "Read this dashboard screenshot and explain the trend in the second quarter."}],
)
print(resp.choices[0].message.content)Node.js (OpenAI SDK)
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.OPENLUX_API_KEY,
baseURL: "https://openlux.lol/v1",
});
const resp = await client.chat.completions.create({
model: "gemini-3.1-pro-preview",
messages: [{ role: "user", content: "Read this dashboard screenshot and explain the trend in the second quarter." }],
});
console.log(resp.choices[0].message.content);Where Gemini 3.1 Pro (preview) fits
Thinking modes
Extended reasoning for problems that benefit from explicit deliberation.
Multimodal input
Images, screenshots and documents processed alongside text.
Long context
Handles large inputs for analysis across whole documents.
Tool calling
Function calling for agentic and pipeline use.
Visual QA and analysis
Read dashboards, diagrams and screenshots and reason about what they show.
Technical reasoning
Multistep technical questions in engineering and science contexts.
Multimodal pipelines
Mixed image and text processing where thinking modes add accuracy.
How gemini-3.1-pro-preview is priced on OpenLux
Gemini 3.1 Pro (preview) is metered pay as you go at $0.1471 / 1M tokens (-92% vs official rates). There is no subscription requirement for API access: top up a balance, call the model, and see the cost of every request in the console.
| Model | Provider | Rate | Discount |
|---|---|---|---|
| gemini-3.1-pro-preview (this model) | $0.1471 / 1M tokens | -92% | |
| gemini-3.8-flash | $0.0551 / 1M tokens | -92% | |
| gpt-6-astra | OpenAI | $0.3677 / 1M tokens | -96% |
| claude-opus-5 | Anthropic | $0.4412 / 1M tokens | -91% |
Rates follow official provider pricing and are shown in USD. See the full model catalogue and pricing plans for credit allowances.
Gemini 3.1 Pro (preview) questions
How much does gemini-3.1-pro-preview cost on OpenLux?
$0.1471 per 1 million tokens, 92% below list pricing, metered pay as you go.
How do I call Gemini 3.1 Pro?
Use the OpenAI-compatible endpoint: base_url https://openlux.lol/v1 and "model": "gemini-3.1-pro-preview". Streaming, images and tools all work through the same request shape.
How does it compare with Gemini Flash?
Flash at $0.0551 is the volume choice for extraction and high-concurrency chat. Pro at $0.1471 adds thinking modes and stronger multimodal reasoning — worth it when accuracy on hard tasks matters more than unit cost.
Is a preview model safe for production?
Preview models follow the upstream lifecycle and may change. For long-lived production paths, pin stable models; use previews where you can adopt updates quickly and want early access to new capabilities.
Start calling Gemini 3.1 Pro (preview) today
Create an OpenLux key and send your first request in minutes. Compare Gemini 3.1 Pro (preview) with the rest of the catalogue on the same endpoint and the same bill.