apiwatch

All changes / Google

Silent rest

Google deprecated temperature, top_p and top_k in the Gemini API on July 21, 2026; Gemini 3.6+ models ignore them

Took effect · Gemini API generation config temperature, top_p, top_k

Reviewed against the vendor source on Oct 14, 2026 (AI-assisted review). Key facts are re-checked against the source daily.

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":

Not affected (matches inside these are ignored): 'temperature=', "temperature=", 'top_p=', "top_p=", 'top_k=', "top_k=", top_k=<, temperature=<, top_p=<, temperature: float, temperature: int, temperature: Optional, top_p: float, top_k: int, top_k: Optional, top_p: Optional

Counts only in files that mention from google import genai or google.genai or @google/genai or google.generativeai or google.golang.org/genai or com.google.genai or generativelanguage.googleapis.com or langchain_google_genai or ChatGoogleGenerativeAI.

Source

https://ai.google.dev/gemini-api/docs/changelog.md.txt