Gemini 3.1 Pro Preview API
Gemini 3.1 Pro Preview
About Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview is a large language model developed by Google. It's particularly well-suited for analyzing images, screenshots, and visual content, tackling complex, multi-step reasoning problems, orchestrating tool-using agents that call APIs and external services, producing structured outputs for reliable data extraction, and handling large contexts of up to 1M tokens. Its 1M-token context window means you can pass in entire documents, codebases, or conversation histories without losing context. Developers choose Gemini 3.1 Pro Preview when they need reliable, production-quality AI inference through a simple API — and on Qubax, it's available at a fraction of the cost of traditional providers.
In the broader AI landscape, Gemini 3.1 Pro Preview sits among the frontier-tier offerings from Google With advanced reasoning and multimodal vision and agentic tool use, it competes with the most frontier-tier models on the market. What sets it apart on Qubax isn't just the model itself — it's the accessibility. Rather than dealing with enterprise contracts or traditional payment rails, you get instant access via an OpenAI-compatible endpoint. That means you can drop Gemini 3.1 Pro Preview into Cursor, Cline, LangChain, or any framework that speaks the OpenAI protocol and start building immediately.
Qubax offers Gemini 3.1 Pro Preview at 74% below OpenRouter's price — just $0.520 per million input tokens and $3.12 per million output tokens. That pricing advantage compounds quickly at scale: a high-volume application sending millions of tokens per day can save significantly compared to using OpenRouter or the provider directly. And because Qubax runs on crypto-native infrastructure, you can pay with USDC, USDT, ETH, BTC, or 200+ other cryptocurrencies — no credit card or bank account required. New users even get $1 in free credits to test Gemini 3.1 Pro Preview risk-free before committing.
Pricing
| Token Type | Qubax | OpenRouter | You Save |
|---|---|---|---|
| Input (per 1M tokens) | $0.520 | $2.00 | 74% |
| Output (per 1M tokens) | $3.12 | $12.00 | 74% |
Prices per 1 million tokens. Pay with 200+ cryptocurrencies.
Estimated Monthly Cost
Specifications
Use Cases
Capabilities
Quick Start
from openai import OpenAI
client = OpenAI(
base_url="https://api.qubax.ai/v1",
api_key="qbx_live_YOUR_API_KEY",
)
response = client.chat.completions.create(
model="gemini-3.1-pro-preview",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.qubax.ai/v1",
apiKey: "qbx_live_YOUR_API_KEY",
});
const response = await client.chat.completions.create({
model: "gemini-3.1-pro-preview",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);curl https://api.qubax.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer qbx_live_YOUR_API_KEY" \
-d '{
"model": "gemini-3.1-pro-preview",
"messages": [{"role": "user", "content": "Hello!"}]
}'Get your API key from the dashboard. New users get $1 free credits.
Why use Gemini 3.1 Pro Preview on Qubax?
74% Cheaper
Up to 74% off OpenRouter prices
Pay with Crypto
200+ coins (BTC, ETH, SOL, USDT, USDC & more). No credit card needed.
OpenAI Compatible
Drop-in replacement. Works with Cline, Cursor, any tool.
More from Google
Compare Gemini 3.1 Pro Preview with alternatives
| Model | Provider | Input / 1M | Output / 1M | vs Gemini 3.1 Pro Preview |
|---|---|---|---|---|
| Gemini 3.1 Pro Preview | $0.520 | $3.12 | — | |
| Hermes 3 Llama 3.1 405b (Morpheus Web) | Meta | $0.572 | $1.56 | More expensive |
| MiniMax M2.1 | MiniMax | $0.291 | $1.16 | Cheaper |
| Kimi K3 | Moonshot AI | $0.520 | $0.494 | Same price |
| GPT-5.4 Image 2 | OpenAI | $1.04 | $1.95 | More expensive |
Frequently Asked Questions
How much does the Gemini 3.1 Pro Preview API cost?
On Qubax, Gemini 3.1 Pro Preview costs $0.520 per 1M input tokens and $3.12 per 1M output tokens. This is 74% cheaper than OpenRouter's price of $2.00 per 1M input tokens.
Is the Gemini 3.1 Pro Preview API compatible with OpenAI?
Yes. Qubax provides an OpenAI-compatible API. You can use Gemini 3.1 Pro Preview as a drop-in replacement by changing your base URL to https://api.qubax.ai/v1 and using your Qubax API key. It works with Cline, Cursor, OpenCode, Hermes Agent, and any tool that supports OpenAI APIs.
Why is Gemini 3.1 Pro Preview cheaper on Qubax than OpenRouter?
Qubax sources AI inference from the Surplus Intelligence marketplace, an open marketplace on the Base blockchain where compute providers compete on price. We pass the savings to you — 74% cheaper than OpenRouter's price for Gemini 3.1 Pro Preview.
How do I pay for Gemini 3.1 Pro Preview API usage?
Qubax uses prepaid crypto credits. Deposit USDC on the Base chain and your balance is automatically deducted as you use the API. New users get $1 in free credits to start. No credit card required.
What is the context window of Gemini 3.1 Pro Preview?
Gemini 3.1 Pro Preview supports a context window of 1M tokens, allowing you to process large documents, codebases, or long conversations in a single request.
What can I build with Gemini 3.1 Pro Preview?
Gemini 3.1 Pro Preview is versatile enough for a wide range of applications. You can use it to analyze images and visual content, tackle complex multi-step reasoning tasks, build autonomous agents that call external tools and APIs, generate structured JSON output for data pipelines, process long documents and entire codebases, and more. Because it's served through Qubax's OpenAI-compatible API, integration into existing apps, agents, or workflows takes just a few lines of code.
How fast is Gemini 3.1 Pro Preview on Qubax?
Gemini 3.1 Pro Preview on Qubax supports streaming responses, so tokens begin arriving in real time as they're generated. Latency depends on the provider and prompt complexity, but most requests start streaming within 200–800 milliseconds. Qubax routes requests through the Surplus Intelligence marketplace, which selects the fastest available compute provider for each request — so you get competitive latency at a lower price.
Gemini 3.1 Pro Preview vs Hermes 3 Llama 3.1 405b (Morpheus Web): which should I choose?
Gemini 3.1 Pro Preview by Google and Hermes 3 Llama 3.1 405b (Morpheus Web) by Meta are both strong models in a similar price tier. Gemini 3.1 Pro Preview excels at complex reasoning and supports vision/image inputs. Hermes 3 Llama 3.1 405b (Morpheus Web) comes from a different lab and may have different strengths depending on your workload. On Qubax, Gemini 3.1 Pro Preview starts at $0.520/1M input tokens versus Hermes 3 Llama 3.1 405b (Morpheus Web)'s $0.572/1M — making Gemini 3.1 Pro Preview the more cost-effective option for high-volume workloads. Both are available on Qubax with crypto payments and OpenAI-compatible APIs, so you can try each and switch freely.
Can I use Gemini 3.1 Pro Preview for commercial projects?
Yes. Gemini 3.1 Pro Preview on Qubax can be used for commercial purposes. You own the outputs you generate. Qubax provides the API infrastructure — you bring your use case.
Browse 340+ other AI models
GPT, Claude, Gemini, Llama, DeepSeek & more — all up to 99% off.
See all models →