新人 免费注册,送 10 次调用,最高 $1,免绑卡。

Gemini 3.1 Pro

发布于 2026-02-19

chat图像理解代码工具调用推理image提示词缓存

Gemini 3.1 Pro(preview)是 Google 对 Gemini 3 Pro 产品线的精修迭代,其模型页强调更好的思考、更高的 token 效率,以及更有依据、事实上更一致的体验;DeepMind 的模型卡称它是 Google 面向复杂任务最先进的模型。

输入
文本 图像 视频 音频 $2/M
输出
文本 $12/M
音频输入
$4/M
缓存读取
$0.2/M
上下文
1M
对比 GPT-4o
便宜约 60%
知识截止
2025-01

Benchmark 成绩

高于同侪均值无人分数更高28 / 636 / 63
Gemini 3.1 Pro 其他被测模型 同侪均值 无人分数更高
SWE-Bench Pro
54.2%
WenetSpeech test-net (CER)
9.52%
GeneBench Pro
3.1%
OSWorld-Verified
64%
GDPval-AA v2 Elo · 642-1861
962.3
GPQA Diamond
94.3%
BrowseComp
85.9%
BabyVision
55.9%

厂商公布: Alibaba (Qwen) Anthropic ByteDance DeepSeek Google MiniMax Moonshot OpenAI Tencent Z.ai

价格在同类中的位置

价格在 60 个同类模型中的位置

输入$2/M
$0.05 · Qwen3 VL Flash GPT-5.4 Pro · $30
输出$12/M
$0.275 · DeepSeek V4 Flash GPT-5.4 Pro · $180
缓存读取$0.2/M
$0.0028 · DeepSeek V4 Flash GPT-5.4 Pro · $15

这条线显示该模型的价格,在 Synthorai 上同类模型里处于什么位置。两端标出了最便宜和最贵的那个。这里是基础价,批量、区域和缓存写入的折扣见价格页。

规格与限制

Token

上下文窗口(厂商规格) 1,048,576
最大输出(厂商规格) 65,536
知识截止 2025-01

提示词缓存

缓存方式 自动 + 显式
最低前缀 4,096

思考

厂商参数 thinkingLevel
可选值 low · medium · high (minimal is not supported)
默认值 high 请求未指定时生效
可关闭 不支持
思考行为 唯一没有 minimal 档位的 Gemini 3 层级,Google 明确表示 3.1 Pro 无法关闭思考;思考 token 按输出 token 计费,函数调用时必须回传思考签名
参数 reasoning_effort
取值 minimal · low · medium · high 网关侧参数面——以上方厂商映射为准

模型

模态 文本 + 图像 + 视频 + 音频 → 文本
  • 1,048,576 token 输入
  • 支持 Search/Maps 事实依据和代码执行
  • 尽管网关带有能力标签,但不支持图像生成

依据 Google 官方文档 ↗

单个 Prompt —— 通过网关实测

提示词 Explain to a CFO, in exactly three sentences, why our LLM bill doubled after we enabled reasoning. 检查 恰好 3 句

Gemini 3.1 Pro 通过 · 3 sentences

Enabling the AI's reasoning capability forces the model to generate a massive amount of invisible "thought" tokens to logically work through complex problems before delivering its final answer. Because our vendor's pricing model charges us for total computational effort—including all of these hidden background tokens—our billable usage effectively doubled per request. While this directly increases our upfront software expenses, we are trading this higher compute cost for a drastic reduction in expensive downstream errors and manual human rework.

输出 1412 tok (+1318 思考) 延迟 12.7 s

指令遵循(恰好三句,可数)、受众适配(面向 CFO 的语气),以及下方 token 计量所暴露的隐藏思考计费缺口。

提示词 This function is supposed to return the longest run of consecutive equal items, but callers report it is off by one on single-element inputs and misses runs that end at the last index. Fix it and explain the bug in one paragraph. 检查 修复通过测试

Gemini 3.1 Pro 通过 · 8/8 cases

```python def longest_run(xs): if not xs: return 0 best = 1 cur = 1 for i in range(1, len(xs)): if xs[i] == xs[i - 1]: cur += 1 best = max(best, cur) else: cur = 1 return best ``` **Explanation:** The original function initializes `cur` and `best` to 0 and only increments `cur` when two adjacent elements are equal. This effectively counts the number of *matching consecutive pairs* (or transitions) rather than the actual number of *elements* in the run, causing all calculated lengths to be […]

输出 4092 tok (+3933 思考) 延迟 31.1 s

修复是否真的正确(可运行)、解释的信息密度,以及在一个边界明确的任务上的 token 效率。

提示词 Extract a JSON object with fields {company, quarter, revenue_usd_m, growth_pct, guidance} from this text. Use null for anything not stated; add no other fields. 检查 合法 JSON,schema 精确

Gemini 3.1 Pro 通过 · 5/5 fields, guidance "withheld"

```json { "company": "Meridian Robotics", "quarter": "September", "revenue_usd_m": 412, "growth_pct": "11 and change", "guidance": "withheld" } ```

输出 1806 tok (+1743 思考) 延迟 14.1 s

schema 服从度(不臆造字段)、幻觉压力(guidance 明确被暂缓给出),以及结构化输出路径的差异。

提示词 Write a 120-word product announcement for an API gateway feature that caches prompts across providers. Forbidden words: "seamless", "unlock", "game-changer", "revolutionize", "empower". Exactly one sentence must be a question. 检查 120 词,0 个禁用词

Gemini 3.1 Pro 通过 · 120 words, 0 banned, 1 question

We are excited to announce universal prompt caching for our API gateway. Handling multiple AI models usually means paying for redundant prompts across various platforms. Why should you pay twice for identical queries? Now, our gateway automatically stores and retrieves exact prompt matches regardless of the backend provider you select. This reduces latency and significantly cuts your inference costs. Whether you route a request to one service today or a different vendor tomorrow, our intelligent caching layer intercepts the call and serves the saved response instantly. Developers can configure cache expiration times and specify matching criteria directly in the control panel. Experience faster response times and optimized resource usage starting today. Upgrade your software client to version two right now.

输出 4060 tok (+3929 思考) 延迟 28.6 s

约束服从度(字数预算、禁用词表、唯一的那句问句)、文风指纹,以及长度控制。

30 秒用上 Gemini 3.1 Pro

OpenAI 兼容:换掉 base_url,SDK 不用改。POST /v1/chat/completions

from openai import OpenAI

client = OpenAI(
    base_url="https://synthorai.io/v1",
    api_key="sk-syn-...",
)

resp = client.chat.completions.create(
    model="gemini-3.1-pro-preview",
    messages=[{"role": "user", "content": "Summarize this diff"}],
    reasoning_effort="medium",
)
print(resp.choices[0].message.content)

关于 Gemini 3.1 Pro

  • Google 把它的最佳用途列为智能体表现、高级编码、长上下文与多模态理解、算法开发、基于工具的智能体,以及要求精确使用工具的多步执行。
  • 它在 1,048,576 token 上下文窗口内接受文本、图像、视频、音频和 PDF 输入,输出 65,536 token,支持函数调用、结构化输出、代码执行、搜索与地图事实依据、URL 上下文、上下文缓存和 Batch API;计算机操作和 Live API 不受支持。
  • 思考由 thinking_level 控制,而 Pro 产品线只接受 low、medium 和 high,没有 Flash 模型提供的 minimal 一档,默认 high;推理无法关闭,因此要为每个请求按输出价计费的思考 token 留出预算,并在需要多轮连续性时回传 Gemini 3 签发的思考签名。
  • 另有一个 gemini-3.1-pro-preview-customtools 变体会优先使用开发者定义的工具,而更早的 gemini-3-pro-preview 标识符已经退役,由它取而代之。
  • Synthorai 以 OpenAI 兼容的 chat completions API 承载它。

常见问题

Gemini 3.1 Pro API 可以免费试用吗?

可以。新账号可获得 10 次试用调用和最高 $1 的免费额度,无需绑卡。按输入 $2/M 计算,仅这笔额度就足够对 Gemini 3.1 Pro 发起约 62 次 ~8K token 的请求。

Gemini 3.1 Pro 最擅长什么?

更好的思考与更高 token 效率、针对软件工程与智能体优化、custom-tools 变体优先自定义工具。完整能力请见「关于」部分,内容取自厂商官方发布说明。

Gemini 3.1 Pro 的价格是多少?

在 Synthorai 上,Gemini 3.1 Pro 输入 $2/百万 token、输出 $12/百万 token,即厂商牌价,无平台加价。缓存命中的输入 token 按 $0.2/M 计费。

Gemini 3.1 Pro 支持提示词缓存(prompt caching)吗?

支持:自动缓存默认开启,另有显式模式可获得确定性折扣。缓存命中的输入 token 按 $0.2/M 计费(未命中 $2/M);提示词需有 4,096 token 以上的稳定前缀才能命中缓存。 提示词缓存指南 →

如何开通 Gemini 3.1 Pro?

把现有 OpenAI SDK 的 base_url 指向 "https://synthorai.io/v1",model 设为 "gemini-3.1-pro-preview" 即可。一把 API key 通用网关上的全部模型。

Gemini 3.1 Pro 的知识截止日期是什么时候?

Gemini 3.1 Pro 的知识截止日期为 2025-01,依据厂商官方文档(数据核验于 2026-07-09)。

相关模型

对比

本页每个值都转录自厂商自己的文档(链接见上),并带有核对日期。价格在全目录范围内比较;各厂商定义不同的规格值,只说明差异而不作图表对比。此处没有任何由我们测量的数据,也不做评分。

获取 API 密钥 算算你的成本 →