Google Breaking change major

Gemini API deprecates the temperature, top_p and top_k sampling parameters

Google deprecated the temperature, top_p and top_k sampling parameters on the Gemini API. The changelog gives no removal date; the latest-model guide covers what replaces them.

What does this mean for me?

Plan for it
  • Engineering leadership

    Cost, risk, timeline, team impact Plan for it

    Anything that relies on tuning Gemini's sampling will need rework before Google removes these parameters. No removal date is set yet, so schedule it rather than rush it.

  • Engineer

    What to change, what breaks, what to test Plan for it

    Find code setting `temperature`, `top_p` or `top_k` on Gemini API calls and plan to drop them. Read the latest-model guide for the alternative before Google sets a removal date.

  • General consumer

    Using the Gemini app, not the API No impact

    Nothing to do — these are API parameters and do not affect the Gemini app.

The sampling parameters temperature, top_p and top_k are deprecated on the Gemini API, announced alongside the Gemini 3.6 Flash and 3.5 Flash-Lite releases. Deprecated is not yet removed: the changelog gives no date after which requests setting them fail or are ignored, and points to the latest-model guide for the details.

API surface

ParameterChangeBreakingModels
temperaturedeprecatedno
top_pdeprecatedno
top_kdeprecatedno

Terms on this page: Deprecation

Sources

Confidence
high
Verification
Verified: stated on the vendor's own pages
Date precision
exact
How this entry was made
Drafted by an agent, reviewed by a person