Gemini

Gemini 2.5 Pro

Google按量收費
Alias:gemini-2.5-pro

Gemini 2.5 Pro 面向代码、数学和科学技术问题的深入推理,也可结合长文档、图像与音视频进行分析。

textimageaudiovideofilecachingcode_interpreterfunction_callingtoolsweb_searchstructured_outputjson_modereasoningvisioncontext:1048576
起始價格
輸入 / 輸出 · 1M
上下文
1M
最大輸入窗口
最大輸出
65.5K
單次回應最大 token 數
模態
→
知識截止
Jan 2025
發佈於
Jun 2025

Pricing by Supplier

Google AI Studio
省50%
谷歌官方接口
輸入/ 1M tokens
$0.625$1.25
輸出/ 1M tokens
$5$10
緩存讀取/ 1M tokens
$0.0625$0.125
Google Vertex
省30%
谷歌官方接口
輸入/ 1M tokens
$0.875$1.25
輸出/ 1M tokens
$7$10
緩存讀取/ 1M tokens
$0.0875$0.125

能力 / 支援的模態

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

廠商與數據私隱

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

效能

基準測試

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

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

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

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

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

About Gemini 2.5 Pro

适合需要推导与交叉检查的问题

Gemini 2.5 Pro 是面向复杂问题的思考模型,适合代码分析、数学推导、科学技术问答,以及大型资料集合的理解。它能够将文档中的条件、图表里的信息与已有代码联系起来,给出分析步骤、实现建议或专业解释。

对于研发工作,可以让它阅读一组模块和接口文档,说明数据如何流动、哪些假设会在边界条件下失效,再设计修复与测试。对于学习和研究,可以要求它列清变量、假设和推导过程,比较不同方法的适用条件,并检查结论是否满足题目要求。

它支持文字、图片、音频、视频和 PDF 输入,输出文字。因此既能解释教材图示,也能分析讲座录音和实验演示视频。请求中最好指定页码、时间范围或关注对象,并区分观察到的现象与进一步推论。大上下文方便关联长资料,但精确问题和材料标记仍是获得有用答案的关键。

函数调用、结构化输出和代码执行等能力,使它可以参与数据分析与应用流程。需要计算时,让它通过实际工具验证数值;需要新信息时,启用搜索 grounding 或指定网页上下文,再依据获取到的材料作答。图像、音频和视频在这里用于理解,结果以文本形式交付。

使用前考虑

数学答案怎样更容易核验? 要求写清前提、单位和关键步骤,最后用代入或独立计算检查结果。

适合分析较大的代码库吗? 可以围绕一个功能或故障提供相关文件,先建立模块关系,再逐步深入;保留可运行的测试作为判断依据。

Use cases and prompting

给出问题条件与验证要求

复杂推理任务应包含完整条件,说明希望看到的分析深度。

根据这份实验说明和测量表,分析传感器读数为何随温度漂移。
先列变量、单位和可能机制,再检查数据是否支持这些解释。
给出可验证的校正方案与下一轮实验设计;所有计算说明公式,缺少的参数单独列出。
不要把相关性直接写成因果关系。

代码任务附上相关实现和输入样本,要求测试边界情况。分析 PDF 或视频时,返回页码或时间位置;用工具计算后检查量纲、数据范围和结果合理性,再写最终结论。

API access

API 介面文件

呼叫示例

請求POST/v1beta/models/gemini-2.5-pro: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 Key。

身份驗證

所有請求必須攜帶 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-2.5-pro

What is gemini-2.5-pro?

Gemini 2.5 Pro 面向代码、数学和科学技术问题的深入推理,也可结合长文档、图像与音视频进行分析。

How do I call gemini-2.5-pro?

Create an API key with access to gemini-2.5-pro, 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-2.5-pro 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-2.5-pro?

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

What is the maximum output of gemini-2.5-pro?

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

How should I evaluate gemini-2.5-pro for my project?

Start with the use cases and prompting guidance on this page, then evaluate the model with representative inputs from your project.