gemini-2.5-proGemini 2.5 Pro 面向代码、数学和科学技术问题的深入推理,也可结合长文档、图像与音视频进行分析。
| 輸入/ 1M tokens | 輸出/ 1M tokens | 緩存讀取/ 1M tokens |
|---|---|---|
$0.625 | $5 | $0.0625 |
| 輸入/ 1M tokens | 輸出/ 1M tokens | 緩存讀取/ 1M tokens |
|---|---|---|
$0.875 | $7 | $0.0875 |
標準化評測得分。百分比越高越好,並展示排名百分位。
指標來源:Artificial Analysis 2026-09-30·Gemini 2.5 Pro
目前基準快照不包含此模型。
缺少模型或測量值不代表零分。
基準圖表保留來源中的模型選擇和推理設定。缺少模型或測量值不代表零分,基準成本或速度也不是本站的服務承諾。
Gemini 2.5 Pro 是面向复杂问题的思考模型,适合代码分析、数学推导、科学技术问答,以及大型资料集合的理解。它能够将文档中的条件、图表里的信息与已有代码联系起来,给出分析步骤、实现建议或专业解释。
对于研发工作,可以让它阅读一组模块和接口文档,说明数据如何流动、哪些假设会在边界条件下失效,再设计修复与测试。对于学习和研究,可以要求它列清变量、假设和推导过程,比较不同方法的适用条件,并检查结论是否满足题目要求。
它支持文字、图片、音频、视频和 PDF 输入,输出文字。因此既能解释教材图示,也能分析讲座录音和实验演示视频。请求中最好指定页码、时间范围或关注对象,并区分观察到的现象与进一步推论。大上下文方便关联长资料,但精确问题和材料标记仍是获得有用答案的关键。
函数调用、结构化输出和代码执行等能力,使它可以参与数据分析与应用流程。需要计算时,让它通过实际工具验证数值;需要新信息时,启用搜索 grounding 或指定网页上下文,再依据获取到的材料作答。图像、音频和视频在这里用于理解,结果以文本形式交付。
数学答案怎样更容易核验? 要求写清前提、单位和关键步骤,最后用代入或独立计算检查结果。
适合分析较大的代码库吗? 可以围绕一个功能或故障提供相关文件,先建立模块关系,再逐步深入;保留可运行的测试作为判断依据。
复杂推理任务应包含完整条件,说明希望看到的分析深度。
根据这份实验说明和测量表,分析传感器读数为何随温度漂移。
先列变量、单位和可能机制,再检查数据是否支持这些解释。
给出可验证的校正方案与下一轮实验设计;所有计算说明公式,缺少的参数单独列出。
不要把相关性直接写成因果关系。
代码任务附上相关实现和输入样本,要求测试边界情况。分析 PDF 或视频时,返回页码或时间位置;用工具计算后检查量纲、数据范围和结果合理性,再写最终结论。
/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 | integer | 0 ~ 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、速率等維度精細化授權。
| 參數 | 類型 | 預設值 / 範圍 | 說明資訊 |
|---|---|---|---|
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 | integer | 0 ~ 20 | 每個 token 返回的 top 概率數量 |
logit_bias | object | — | 按 token 的 logit 偏置映射 |
user | string | — | 用於風險審計的終端用戶標識 |
| 供應商 | RPM | TPM | RPD |
|---|---|---|---|
| Google AI Studio | 無限制 | 無限制 | 無限制 |
| Google Vertex | 無限制 | 無限制 | 無限制 |
無限制
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.
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.
The model catalog lists a context window of 1048576 tokens. Check the selected endpoint for request limits.
The model catalog lists a maximum output of 65536 tokens. Your request settings may set a lower limit.
Start with the use cases and prompting guidance on this page, then evaluate the model with representative inputs from your project.
