此页面:# 3.5 Flash:/gemini-api/docs/whats-new-gemini-3.5
Gemini 3.6 Flash (gemini-3.6-flash) 和 Gemini 3.5 Flash-Lite (gemini-3.5-flash-lite) 已正式发布(GA),可用于生产环境。
本指南说明了每个模型的新功能、哪些 API 更改会影响您的代码,以及如何迁移。
这两种模型都支持 1M 令牌上下文窗口、最大输出令牌 64k、思考模式,以及完整的内置工具套件,包括计算机使用:/gemini-api/docs/computer-use。
有关完整规格,请参见模型页面:
有关详细定价,请参见定价页面:/gemini-api/docs/pricing。
使用此表格选择适合您工作负载的模型和迁移路径。
这两种模型都需要删除已弃用的采样参数(temperature、top_p、top_k)以及预填的模型轮次。详情请参见 API 更改:#api-changes-and-parameter-updates。
由于性能提升,Gemini 3.6 Flash 现已成为 Gemini 管理代理中驱动 Antigravity agent:/gemini-api/docs/antigravity-agent 的新默认模型。您可以通过在 API 上设置新字段来更改此设置。
从 Gemini 3.6 Flash 和 Gemini 3.5 Flash-Lite 开始,以下 API 更改适用于这些模型及所有未来的 Gemini 模型版本。
以下是每个 API 更改的详细说明和代码示例。
temperature、top_p 和 top_k 已弃用并将被忽略。在未来的模型版本中,如果提供这些参数,将返回 HTTP 400 错误。请从所有请求中删除这些参数。
为了提高确定性,请为您的具体用例定义带有明确规则的系统指令。
以非空模型角色轮次结尾的 API 请求不被允许,会返回 HTTP 400 错误。
在传统的 generateContent 或原始 REST 负载中,现在不允许以模型角色轮次结尾:
在交互 API 中,模型轮次不再手动预填。如果您的应用程序以前预填充模型轮次以抑制前言或强制 JSON 格式,请使用 system_instruction 或结构化输出:/gemini-api/docs/structured-output。
除非另有说明,本页面内容采用知识共享署名 4.0 国际许可协议(Creative Commons Attribution 4.0 License)授权:https://creativecommons.org/licenses/by/4.0/,代码示例采用 Apache 2.0 许可证授权:https://www.apache.org/licenses/LICENSE-2.0。详情请参阅 Google 开发者网站政策:https://developers.google.com/site-policies。Java 是 Oracle 及/或其附属公司注册的商标。
This page:# 3.5 Flash:/gemini-api/docs/whats-new-gemini-3.5
Gemini 3.6 Flash ( gemini-3.6-flash ) and Gemini 3.5 Flash-Lite ( gemini-3.5-flash-lite ) are generally available (GA) and ready for production use.
This guide explains what's new in each model, what API changes affect your code, and how to migrate.
Both models support the 1M token context window, 64k max output tokens, thinking, and the full suite of built-in tools including Computer Use:/gemini-api/docs/computer-use.
For complete specs, see the model pages:
For detailed pricing, see the pricing page:/gemini-api/docs/pricing.
Use this table to select the right model and migration path for your workloads.
Both models require removing deprecated sampling parameters ( temperature , top_p , top_k ) and prefilled model turns. See API changes:#api-changes-and-parameter-updates for details.
Due to its improved performance, Gemini 3.6 Flash is now the new default model powering the Antigravity agent:/gemini-api/docs/antigravity-agent in Gemini Managed Agents. This can be changed by setting a new field on the API.
Starting with Gemini 3.6 Flash and Gemini 3.5 Flash-Lite, the following API changes apply to these models and all future Gemini model releases.
Below are detailed explanations and code samples for each API change.
temperature , top_p , and top_k are deprecated and ignored. In future model generations, supplying these parameters returns an HTTP 400 error. Remove these parameters from all requests.
To improve determinism, define a system instruction with explicit rules for your specific use case.
API requests ending with a non-empty model role turn are disallowed and return an HTTP 400 Error .
In legacy generateContent or raw REST payloads, ending with a model role turn is now disallowed:
In the Interactions API, model turns are not manually prefilled. If your application previously prefilled a model turn to suppress preambles or force JSON formatting, use system_instruction or Structured outputs:/gemini-api/docs/structured-output instead.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License:https://creativecommons.org/licenses/by/4.0/, and code samples are licensed under the Apache 2.0 License:https://www.apache.org/licenses/LICENSE-2.0. For details, see the Google Developers Site Policies:https://developers.google.com/site-policies. Java is a registered trademark of Oracle and/or its affiliates.