Gemini 3.1 Pro Preview

Gemini 3.1 Pro preview, 200K+ 上下文 + thinking

模型 ID: gemini-3.1-pro-preview · 类型: chat · 厂商: Google

可用端点: /v1/chat/completions · /v1/messages

定价

输入 (每 1M tokens)$1.5 USD
输出 (每 1M tokens)$9 USD
缓存命中 (每 1M tokens)$0.15 USD

上下文分档定价

≤ 200000 tokens$1.5 / 1M in$9 / 1M out
> 200000$3 / 1M in$13.5 / 1M out

能力

from openai import OpenAI

client = OpenAI(api_key="sk-...", base_url="https://api.router.ai/v1")
resp = client.chat.completions.create(
    model="gemini-3.1-pro-preview",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

常见问题

Gemini 3.1 Pro Preview 在 932.ai 上的价格是多少?

Gemini 3.1 Pro Preview (`gemini-3.1-pro-preview`) 按用量计费, $1.5/1M in · $9/1M out (美元)。最新价格见 https://932.ai/models/gemini-3.1-pro-preview。

怎么通过 932.ai 调用 Gemini 3.1 Pro Preview?

向 https://api.router.ai/v1/v1/chat/completions 发请求, 带请求头 `Authorization: Bearer <你的 API Key>`, body 里 `"model": "gemini-3.1-pro-preview"`。接口与 OpenAI 兼容, 用任何 OpenAI SDK 只需把 base_url 改成 https://api.router.ai/v1, 其余代码不用动。

Gemini 3.1 Pro Preview 支持哪些接口端点?

Gemini 3.1 Pro Preview 可通过以下端点调用: /v1/chat/completions; /v1/messages.

Gemini 3.1 Pro Preview 的上下文窗口有多大?

Gemini 3.1 Pro Preview 最多接受 1,048,576 个输入 token, 最多返回 65,536 个输出 token。超出输入上限的请求会在到达模型前被拒绝。

Gemini 3.1 Pro Preview 支持哪些能力?

Gemini 3.1 Pro Preview 支持: vision, function_calling, prompt_caching, audio_input, thinking, long_context, cache.

Gemini 3.1 Pro Preview 是哪家厂商的模型?

Gemini 3.1 Pro Preview 是 Google 的 chat 模型, 通过 932.ai 网关调用, 与其他所有模型共用同一个 API Key。

通过 932.ai 的 OpenAI 兼容接口调用 (API Base: https://api.router.ai/v1). AI agent 可经 MCP (https://mcp.router.ai/mcp) 直接发现并调用本网关的全部模型, 无需人工集成.

API 文档 · 全部模型