- Text
- 1.05M context
Gemini 3.1 Pro API: pricing, capabilities and setup
Gemini 3.1 Pro API: Google's Pro-tier Gemini 3 model for deep reasoning, software development, long-document analysis and multi-step tasks.
pay as you go · no subscription · key right after sign-up
How much Gemini 3.1 Pro costs
- Input$0.60per 1M tokens
$2.00−70% - Output$2.45per 1M tokens
$12.00−80% - Cache read$0.10per 1M tokens
- Cache write$0.60per 1M tokens · same as input
Cost calculator
10 M tokens
75%
The rest is output
- Direct from the provider
$45- With llmbox
- $11
- Savings
- $34
What a typical task costs
| Task | Tokens (input / output) | With llmbox | Direct |
|---|---|---|---|
| Short chat | 2 000 / 500 | $0.00243 | $0.01 |
| Code review | 20 000 / 2 000 | $0.0169 | $0.064 |
| Document summary | 40 000 / 2 000 | $0.0289 | $0.104 |
| Agent session | 600 000 / 30 000 | $0.4335 | $1.56 |
Specs
- Context1.05Mtokens
- Max output66Ktokens
- Inputtext
Setup in three steps
- 01Get a key
Sign up and create an API key in the dashboard.
Get a key → - 02Set the base URL
In any OpenAI-compatible client, point the API address to:
- 03Pass the model id
Put this identifier in the model field:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://llmbox.cc/v1",
api_key=os.environ["LLMBOX_API_KEY"],
)
resp = client.chat.completions.create(
model="google/gemini-3.1-pro",
messages=[{"role": "user", "content": "Hi! Tell me about yourself in two sentences."}],
)
print(resp.choices[0].message.content)What Gemini 3.1 Pro is good for
Gemini 3.1 Pro is Google's Pro-tier model of the Gemini 3 generation. Google released it in February 2026 as a refinement of the Gemini 3 Pro series: per the company's description, it reasons better, uses fewer tokens, gives answers that are more consistent with the facts, and is built for software development and multi-step agentic tasks. According to Google's documentation, it has a 1,048,576-token context window and a single response returns up to 65,536 tokens. On llmbox you call it with the model ID google/gemini-3.1-pro and one API key.
What it's good for
The main difference between Pro and the Flash models is the default reasoning depth. Per Google's documentation, Gemini 3.1 Pro reasons at the high level without any extra settings, while Gemini 3.8 Flash and 3.6 Flash default to medium. That makes the model a fit for questions where the answer has to be worked out over several steps: tracing the cause of a bug, comparing architecture options, analyzing a contract or a technical specification while checking the wording.
Its focus on factual consistency makes 3.1 Pro convenient for answers over long material: a report, product documentation, an exported conversation. The million-token context window lets you pass such material in full, without splitting it into chunks.
When it's not the right fit
- You need the model inside an agent — with your functions, JSON-schema output, image input, or in Codex CLI. Through llmbox those are available on Gemini 4 Argon and Gemini 3.8 Flash.
- Lots of similar requests where response speed matters — the high reasoning level is overkill there; the Flash models or Gemini 3.1 Flash Lite fit better.
- Image generation — use Gemini 3 Pro Image for that.
How to connect
3.1 Pro is meant to be called from your own code — an analytics service, a document-review bot, a code-review script — through the OpenAI SDK or another OpenAI-compatible client. All you need is an llmbox key: no AI Studio key or Google Cloud project is required, and the key and base URL are covered in the Quickstart. To decide whether moving to the flagship is worth it, ask 3.1 Pro and Gemini 4 Argon the same questions and compare the answers and cost in the request log.
Gemini 3.1 Pro API pricing
The rates per 1M input and output tokens are on this page. Reasoning tokens count as output, and the high default reasoning level increases their number even on short questions — check what your own requests cost in the request log in your dashboard. You pay from a prepaid balance as you go, with no subscription.
Typical tasks
- Analytical questions that take several reasoning steps
- Writing and reviewing code
- Answers over long documents with a focus on factual accuracy
Gemini 3.1 Pro or Gemini 4 Argon?
| Model | Input · 1M | Output · 1M |
|---|---|---|
| Gemini 3.1 Pro | $0.60 | $2.45 |
| Gemini 4 Argon | $0.459 | $2.295 |
Gemini 3.1 Pro vs neighbours
| Model | Input · 1M | Output · 1M |
|---|---|---|
| Gemini 3.1 Pro | $0.60 | $2.45 |
| Gemini 3.6 Flash | $0.25 | $1.215 |
| Gemini 3.1 Pro Preview | $0.30 | $1.70 |
| Gemini 4 Hydrogen | $0.344 | $1.72 |
| Gemini 4 Argon | $0.459 | $2.295 |
| Claude Sonnet 5 Anthropic | $0.60264 | $3.0132 |
Gemini 3.1 Pro is also compared with
Other Google models
Articles about the model
FAQ
How is Gemini 3.1 Pro different from Gemini 4 Argon?
Gemini 3.1 Pro is the Pro-tier model of the Gemini 3 generation. Gemini 4 Argon is Google's newer flagship, and through llmbox it supports calling your functions, JSON-schema output, image input and work in Codex CLI.
How is Gemini 3.1 Pro different from the Flash models?
Pro is built for tasks where reasoning depth matters more: per Google's documentation, it reasons at the high level by default. The Flash models focus on speed and cost at high request volumes.
Do I need a Gemini API key?
No. Create a key in the API keys section of your dashboard and pass it, together with the llmbox base URL, to any OpenAI-compatible client. Step-by-step setup is in the Quickstart.
What model name do I pass to the API?
Use the model ID google/gemini-3.1-pro. It is shown on this page next to the sample request.
How is Gemini 3.1 Pro billed?
Per input and output token at the per-1M-token rates on this page, from a prepaid balance as you go, with no subscription. Reasoning tokens count as output, and the high default reasoning level increases their number — to see whether the spend pays off, compare 3.1 Pro with Gemini 3.8 Flash on the same tasks in the request log.
