Google's Gemini API has removed support for three long-standing text generation parameters temperature, top_p and top_k in its newest model versions. Developers sending those parameters will now see them silently ignored, leaving applications to rely on fixed default behavior for output randomness and diversity.
What Changed in the Gemini API
Previous Gemini model versions, such as gemini-pro-1.0, allowed developers to pass temperature, top_p and top_k to shape how the model selects the next token. Temperature controls randomness, top_p sets nucleus sampling probability, and top_k limits the number of candidate tokens. Google's latest models, however, treat these fields as legacy and do not apply them to generation. The official documentation now marks the parameters as deprecated, meaning they may be removed entirely in future releases without further notice.
Developers who continue to include these parameters in API calls will not receive errors. The API simply ignores the values and processes the request using built-in defaults. This silent discard can be particularly confusing for teams that have not monitored the API changelog, as their applications may begin producing different outputs without any obvious warning.
Why This Matters
The move removes a layer of control that many developers relied on to fine-tune output for specific use cases. Chatbots that used a high temperature to encourage creative responses will suddenly behave more conservatively. Code generation tools that set temperature low for deterministic outputs may still succeed but cannot adjust strictness independently. The impact extends across any application where output character matters, from creative writing assistants to data extraction pipelines.
This shift aligns with a broader industry pattern where large model providers standardize generation behavior to reduce variability and simplify support. OpenAI, for instance, has also limited similar parameters in certain models. While the simplification may reduce support overhead for Google, it forces developers to adapt or accept a potentially significant change in application performance without alternative parameters to compensate.
What Developers Should Do Now
Google has not indicated whether it plans to introduce replacement parameters. For now, developers must treat the Gemini API as a fixed-behavior service for text generation. Those who need tunable randomness may need to explore model orchestration layers or switch to providers that still support these controls.



