Silent rest
Google deprecated temperature, top_p and top_k in the Gemini API on July 21, 2026; Gemini 3.6+ models ignore them
What changes
The July 21, 2026 Gemini API changelog marks temperature, top_p and top_k as deprecated. Starting with Gemini 3.6 Flash and Gemini 3.5 Flash-Lite, and for all future models, the API ignores them; Google says supplying them will return an HTTP 400 error in future model generations, with no date given. Remove them from all requests.
Silent: No error. Behavior, results, or cost change quietly.
What to do
Remove temperature, top_p and top_k from generation configs; the Gemini 3.6 guide suggests a system instruction with explicit rules where you relied on low temperature for determinism.
Strings to search for
temperature=temperature:"temperature":top_p=top_p:"top_p":top_k=top_k:"top_k":topP:"topP":topK:"topK":