# Gemini 2.5 Pro

{% callout type="caution" %}
Gemini 2.5 Pro (`gemini-2.5-pro`) 是 [已弃用](/docs/deprecations#gemini-2.5-pro-models) 并且不再可以在 Google AI Studio 中选择（API 访问仅限于现有用户，直到 12 月 1, 2026）。 12 月生效 1, 2026, 所有 API 请求 `gemini-2.5-pro` 会自动路由到 [Gemini 3.8 Flash (`gemini-3.8-flash`)](/docs/models/gemini-3.8-flash) 并计费于 [Gemini 3.8 Flash 费率](/docs/pricing#gemini-3.8-flash)。 12 月之前 1, 2026, 将您的型号字符串更新为 `gemini-3.8-flash` 并审查 [Gemini 3.8 Flash迁移指南](/docs/whats-new-gemini-3.8#migrate-to-gemini-3-8-flash)。重大 API 更改包括函数调用和 `thought_signature`
验证， `thinking_level` 替换 `thinking_budget`，并删除了采样参数和预填充模型匝数。
{% /callout %}

我们最先进的思维模型，能够推理代码、数学和 STEM 中的复杂问题，并使用长上下文分析大型数据集、代码库和文档。

## gemini-2.5-pro  {% #gemini-25-pro %}

{% doc-table variant="model" %}
{% doc-row header="true" %}
{% doc-cell %}
属性
{% /doc-cell %}

{% doc-cell %}
说明
{% /doc-cell %}
{% /doc-row %}

{% doc-row header="false" %}
{% doc-cell %}
{% section class="model-property" %}
{% icon name="id_card" /%}模型代码
{% /section %}
{% /doc-cell %}

{% doc-cell %}
`gemini-2.5-pro`
{% /doc-cell %}
{% /doc-row %}

{% doc-row header="false" %}
{% doc-cell %}
{% section class="model-property" %}
{% icon name="save" /%}支持的数据类型
{% /section %}
{% /doc-cell %}

{% doc-cell %}
**输入** 音频、图像、视频、文本和 PDF

**输出** 文本
{% /doc-cell %}
{% /doc-row %}

{% doc-row header="false" %}
{% doc-cell %}
{% section class="model-property" %}
{% icon name="token_auto" /%}token 限制{% sup %}[[*]](/docs/tokens){% /sup %}
{% /section %}
{% /doc-cell %}

{% doc-cell %}
**输入token限制** 1,048,576

**输出 token 限制** 65,536
{% /doc-cell %}
{% /doc-row %}

{% doc-row header="false" %}
{% doc-cell %}
{% section class="model-property" %}
{% icon name="handyman" /%}功能
{% /section %}
{% /doc-cell %}

{% doc-cell %}
{% section class="three-column-grid" %}
{% section %}
[**音频生成**](/docs/speech-generation)

{% badge type="not-supported" /%}
{% /section %}

{% section %}
[**代码执行**](/docs/code-execution)

{% badge type="supported" /%}
{% /section %}

{% section %}
[**上下文缓存**](/docs/caching)

{% badge type="supported" /%}
{% /section %}

{% section %}
[**文件搜索**](/docs/file-search)

{% badge type="supported" /%}
{% /section %}

{% section %}
[**函数调用**](/docs/function-calling)

{% badge type="supported" /%}
{% /section %}

{% section %}
[**使用 Google 地图提供事实依据**](/docs/maps-grounding)

{% badge type="supported" /%}
{% /section %}

{% section %}
[**使用 Google 搜索提供事实依据**](/docs/google-search)

{% badge type="supported" /%}
{% /section %}

{% section %}
[**图像生成**](/docs/image-generation)

{% badge type="not-supported" /%}
{% /section %}

{% section %}
[**Live API**](/docs/live-api)

{% badge type="not-supported" /%}
{% /section %}

{% section %}
[**结构化输出**](/docs/structured-output)

{% badge type="supported" /%}
{% /section %}

{% section %}
[**思考**](/docs/thinking)

{% badge type="supported" /%}
{% /section %}

{% section %}
[**URL 上下文**](/docs/url-context)

{% badge type="supported" /%}
{% /section %}
{% /section %}
{% /doc-cell %}
{% /doc-row %}

{% doc-row header="false" %}
{% doc-cell %}
{% section class="model-property" %}
{% icon name="speed" /%}消费选择
{% /section %}
{% /doc-cell %}

{% doc-cell %}
{% section class="three-column-grid" %}
{% section %}
[**Batch API**](/docs/batch-api)

{% badge type="supported" /%}
{% /section %}

{% section %}
[**弹性推理**](/docs/flex-inference)

{% badge type="supported" /%}
{% /section %}

{% section %}
[**优先推理**](/docs/priority-inference)

{% badge type="supported" /%}
{% /section %}
{% /section %}
{% /doc-cell %}
{% /doc-row %}

{% doc-row header="false" %}
{% doc-cell %}
{% section class="model-property" %}
{% icon name="123" /%}版本
{% /section %}
{% /doc-cell %}

{% doc-cell %}
阅读 [模型版本模式](/docs/models#model-versions) 了解更多详情。

* 已弃用： `gemini-2.5-pro` （12 月生效 1, 2026, 自动路由至 `gemini-3.8-flash`)
{% /doc-cell %}
{% /doc-row %}

{% doc-row header="false" %}
{% doc-cell %}
{% section class="model-property" %}
{% icon name="calendar_month" /%}最新更新
{% /section %}
{% /doc-cell %}

{% doc-cell %}
六月 2025
{% /doc-cell %}
{% /doc-row %}

{% doc-row header="false" %}
{% doc-cell %}
{% section class="model-property" %}
{% icon name="cognition_2" /%}知识截止
{% /section %}
{% /doc-cell %}

{% doc-cell %}
一月 2025
{% /doc-cell %}
{% /doc-row %}

{% doc-row header="false" %}
{% doc-cell %}
{% section class="model-property" %}
{% icon name="paid" /%}价格
{% /section %}
{% /doc-cell %}

{% doc-cell %}
[价格](/docs/pricing#gemini-2.5-pro)
{% /doc-cell %}
{% /doc-row %}
{% /doc-table %}
