← Back to model catalog
MODEL / CURRENT PRICE
Google

Gemini 3.1 Pro Preview

gemini-3.1-pro-preview

These are Mengbi Router customer prices in USD per 1M tokens. Provider: Google; Context: 2M; Input price: $1.37; Output price: $8.21.

AI models and pricing

Model specs

Provider
Google
Context
2M
Max output
64K
Released
Feb 2026
Input modalities
Text, Image, PDF
Output modalities
Text
Tool calling
Supported
Structured output
Supported
Currency
USD
Model ID
gemini-3.1-pro-preview

Model pricing and access details

USD / 1M tokens
ModelOfficialMengbiDiscount
Input price$2$1.3731% OFF
Output price$12$8.2131% OFF
Cache read price$0.20$0.13731% OFF

Estimated cost for common usage

Estimates based on current Mengbi Router prices, so you can plan real request costs.

Token volumeInputOutputInput + output total
10K tokens$0.0137$0.0821$0.0958
100K tokens$0.137$0.821$0.958
1M tokens$1.37$8.21$9.58
10M tokens$13.69$82.11$95.8

Estimates use the current prices above and exclude cache-hit discounts. Your invoice is metered by the actual token usage of each request.

Public benchmark scores

How Gemini 3.1 Pro Preview scores on common public benchmarks, so you can compare capability at a glance.

BenchmarkScore
GPQA Diamond92.4
SWE-bench Verified73.1
AIME 202692.0

Curated from vendor-published evaluations (snapshot 2026-09). For reference only; not independently tested by Mengbi.

API protocol compatibility

Keep your SDK. Change one line.

Use the protocol your stack already speaks.

const client = new OpenAI({
  apiKey: process.env.MENGBI_ROUTER_KEY,
  baseURL: process.env.MENGBI_ROUTER_BASE_URL,
})

const response = await client.chat.completions.create({
  model: 'gemini-3.1-pro-preview',
  messages,
})

Frequently asked questions

Common questions about the Gemini 3.1 Pro Preview API: pricing, capabilities, and integration.

How much does the Gemini 3.1 Pro Preview API cost?

Through Mengbi Router, Gemini 3.1 Pro Preview costs $1.37 per 1M input tokens and $8.21 per 1M output tokens. Cached input is billed at $0.137 per 1M tokens.

What is the context window of Gemini 3.1 Pro Preview?

Gemini 3.1 Pro Preview supports a 2M-token context window. A single request can generate up to about 64K output tokens.

Does Gemini 3.1 Pro Preview support tool calling and structured output?

Yes. Gemini 3.1 Pro Preview supports the tools parameter in chat.completions for function calling. It also supports response_format with a JSON Schema for structured output.

What input and output formats does Gemini 3.1 Pro Preview support?

It accepts Text, Image, and PDF and returns Text.

How do I call Gemini 3.1 Pro Preview with the OpenAI SDK?

Keep your OpenAI SDK, point the base URL at Mengbi Router, use your Mengbi API key, and set model to gemini-3.1-pro-preview in the request.

Which company provides Gemini 3.1 Pro Preview?

Gemini 3.1 Pro Preview is provided by Google and available through Mengbi Router with one API key and pay-as-you-go billing. The model was first released in Feb 2026.