# Gemini 2.5 Flash

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

我们性价比最高、能力全面的模型。2.5 Flash 尤其适合大规模处理、要求低延迟且需要思考的高吞吐量任务，以及智能体应用场景。

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

{% 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-flash`
{% /doc-cell %}
{% /doc-row %}

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

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

**输出** 文本
{% /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-flash` （12 月生效 1, 2026, 自动路由至 `gemini-3.5-flash-lite`)
* 关闭： [gemini-2.5-flash-preview-09-2025](/docs/models/gemini-2.5-flash-preview-09-2025)
{% /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-flash)
{% /doc-cell %}
{% /doc-row %}
{% /doc-table %}
