Gemini

Gemini 3.1 Pro Preview

Google按量收費動態收費
Alias:gemini-3.1-pro-preview

Gemini 3.1 Pro Preview 能理解文字、影像、音訊、影片與 PDF,適合複雜推理、軟體工程和多步驟工具協作。

textimageaudiovideofilecachingcode_interpreterfunction_callingtoolsweb_searchstructured_outputjson_modereasoningvisioncontext:1048576
起始價格
查看完整計費明細
上下文
1M
最大輸入窗口
最大輸出
65.5K
單次回應最大 token 數
模態
→
發佈於
Feb 2026

Pricing by Supplier

比較同一模型在不同供應商的價格與服務表現。

供應商2
USD · 每 1M tokens效能 · Last 24 hours
供應商Discount檔位輸入/M輸出/M緩存讀取/M
Google AI Studio

Google 官方 API

省50%
standard輸入 ≤ 200K tokens
$1$2
$6$12
$0.1$0.2
long_context輸入 > 200K tokens
$2$4
$9$18
$0.2$0.4
Google Vertex

Google 官方 API

省30%
standard輸入 ≤ 200K tokens
$1.4$2
$8.4$12
$0.14$0.2
long_context輸入 > 200K tokens
$2.8$4
$12.6$18
$0.28$0.4
刪除線金額為標準價。效能統計涵蓋最近 24 小時,實際表現隨請求變化。

左右滑動表格,查看完整價格與效能。

能力 / 支援的模態

提示詞緩存代碼解釋器函數呼叫工具網絡搜尋結構化輸出推理視覺
輸入
輸出

廠商與數據私隱

供應商
Google文件
分詞器
SentencePiece (Gemini)
許可證
Proprietary (commercial)商業閉源
數據保留44 日預設不會用於上游訓練

效能

基準測試

標準化評測得分。百分比越高越好,並展示排名百分位。

指標來源:Artificial Analysis 2026-09-30·Gemini 3.1 Pro Preview

目前基準快照不包含此模型。

缺少模型或測量值不代表零分。

基準圖表保留來源中的模型選擇和推理設定。缺少模型或測量值不代表零分,基準成本或速度也不是本站的服務承諾。

About Gemini 3.1 Pro Preview

Gemini 3.1 Pro Preview 能理解文字、影像、音訊、影片與 PDF,適合複雜推理、軟體工程和多步驟工具協作。

查看介紹原文

将多种材料放到同一个问题里

Gemini 3.1 Pro Preview 适合同时涉及复杂推理与多种输入的工作。你可以把 PDF 方案、演示视频、会议录音和代码说明一起提供,让它分析同一项目中的需求、操作过程与实现约束。它输出文字,适合形成技术报告、代码、摘要或结构化记录。

在软件工程中,它可参与代码理解、故障分析和实现计划,也适合需要多次工具调用的智能体任务。比如先读接口文档,再检查代码,最后根据测试结果修订方案。调用端提供工具后,模型可以选择何时查询、计算或调用业务函数;每一步的结果都应作为后续分析的依据。

音视频理解让它能回答文字资料之外的问题:从产品演示中整理操作步骤、从培训录音中提取讨论结论,或将视频里的界面变化与需求文档对照。请求中注明关注的时间段、人物或页面,会更容易得到针对性结果。它不是语音或视频生成模型,也不通过 Live API 提供实时对话。

长上下文适合阅读大型资料包,结构化输出方便将内容转换为系统字段。接入搜索 grounding、URL 上下文或代码执行工具后,还可以补充时效信息、阅读指定网页和核算数据;需要在请求中实际启用对应能力。对于图片中的表格和 PDF 扫描件,要求保留页码与原文摘录有助于复核。

如何使用更顺手

能分析整段演示视频吗? 可以提交支持的视频输入,并说明要检查的行为,要求用时间位置标记发现。

适合长期固定流程吗? Preview 版本适合验证能力与构建应用,上线前应使用代表性样本检查格式、工具调用和任务完成率,并关注版本更新。

Use cases and prompting

Starting points for evaluation; supported inputs and options are listed in API access.

Use cases to explore

  • Draft and revise text with explicit audience, tone and format requirements.
  • Summarize supplied documents and compare answers against the original sources.

Practical tips

Separate instructions from source material, describe the desired output and provide an example. Test tool use or structured output only when listed as supported.

Example prompt

Summarize the following document in five bullet points. Separate confirmed facts from open questions, cite the relevant passages and do not invent missing information. Document: [paste your text]

查看使用指南原文

让不同输入互相验证

为材料命名,并指定最终需要解决的问题。

材料 A 是产品操作视频,材料 B 是功能需求 PDF。
检查视频中的登录、筛选和导出流程是否符合需求。
按功能列出:需求页码、视频时间点、实际表现、差异与复现步骤。
最后生成验收清单;视频看不到的功能标为“未展示”,不要判断为已完成。

代码与工具任务写清可调用工具、完成标准和错误处理方式。分析音频时可以要求区分原话、摘要和推断;使用搜索工具时指定日期范围和证据要求,让结论与引用的材料保持对应。

API access

API 介面文件

呼叫示例

請求POST/v1beta/models/gemini-3.1-pro-preview:generateContent
請求範例
參數
參數類型預設值 / 範圍說明資訊
temperature
number
=10 ~ 2
採樣溫度;越低越穩定
top_p
number
=10 ~ 1
核採樣累積概率
max_tokens
integer>= 1回應中最大 token 數
frequency_penalty
number
=0-2 ~ 2
懲罰高頻 token 的重複出現
presence_penalty
number
=0-2 ~ 2
鼓勵引入新話題
stop
array—最多 4 個停止生成的字串
seed
integer—盡量保證可復現的採樣種子
n
integer
=1>= 1
生成的候選條數
stream
boolean
=false
透過 SSE 串流返回 token
response_format
object—強制輸出 JSON 物件或符合 Schema 的結果
tools
array—模型可呼叫的工具 / 函數聲明
tool_choice
string
autononerequired
工具選擇策略或具體工具名
logprobs
boolean
=false
返回每個 token 的對數概率
top_logprobs
integer0 ~ 20每個 token 返回的 top 概率數量
logit_bias
object—按 token 的 logit 偏置映射
user
string—用於風險審計的終端用戶標識

替換 <YOUR_API_KEY> 替換為 API 金鑰頁面中的金鑰。

身份驗證

所有請求必須攜帶 Authorization: Bearer <TOKEN> 請求頭。Anthropic 格式的端點也接受 x-api-key 請求頭。

在「令牌」頁面生成 API Key,可以按模型、分組、IP、速率等維度精細化授權。

支援的參數

Generation parameters
參數類型預設值 / 範圍說明資訊
temperature
number
=10 ~ 2
採樣溫度;越低越穩定
top_p
number
=10 ~ 1
核採樣累積概率
max_tokens
integer>= 1回應中最大 token 數
frequency_penalty
number
=0-2 ~ 2
懲罰高頻 token 的重複出現
presence_penalty
number
=0-2 ~ 2
鼓勵引入新話題
stop
array—最多 4 個停止生成的字串
seed
integer—盡量保證可復現的採樣種子
n
integer
=1>= 1
生成的候選條數
stream
boolean
=false
透過 SSE 串流返回 token
response_format
object—強制輸出 JSON 物件或符合 Schema 的結果
tools
array—模型可呼叫的工具 / 函數聲明
tool_choice
string
autononerequired
工具選擇策略或具體工具名
logprobs
boolean
=false
返回每個 token 的對數概率
top_logprobs
integer0 ~ 20每個 token 返回的 top 概率數量
logit_bias
object—按 token 的 logit 偏置映射
user
string—用於風險審計的終端用戶標識

速率限制

供應商RPMTPMRPD
Google AI Studio無限制無限制無限制
Google Vertex無限制無限制無限制

無限制

Frequently asked questions about gemini-3.1-pro-preview

What is gemini-3.1-pro-preview?

Gemini 3.1 Pro Preview 能理解文字、影像、音訊、影片與 PDF,適合複雜推理、軟體工程和多步驟工具協作。

How do I call gemini-3.1-pro-preview?

Create an API key with access to gemini-3.1-pro-preview, then use the exact model ID and a supported endpoint from the API access section. Request fields depend on the selected endpoint.

How is gemini-3.1-pro-preview priced?

Pricing depends on the selected provider group and the model billing unit. The current input, output, request, or media prices are shown on this page before sign-up.

What is the context window of gemini-3.1-pro-preview?

The model catalog lists a context window of 1048576 tokens. Check the selected endpoint for request limits.

What is the maximum output of gemini-3.1-pro-preview?

The model catalog lists a maximum output of 65536 tokens. Your request settings may set a lower limit.

How should I evaluate gemini-3.1-pro-preview for my project?

Separate instructions from source material, describe the desired output and provide an example. Test tool use or structured output only when listed as supported.