Breaking model
gemini-3.1-flash-lite-preview was shut down on the Gemini API May 25, 2026; the replacement is gemini-3.1-flash-lite.
What changes
Google announced on May 7, 2026, when it released gemini-3.1-flash-lite, that the preview was deprecating on 5/11/26 and would shut down May 25, 2026. The changelog records it as shut down on May 25, 2026.
Breaking: Calls fail after this date.
What to do
Switch to gemini-3.1-flash-lite. The deprecations page lists May 7, 2027 as its earliest shutdown date, with gemini-3.5-flash-lite as the replacement after that.
Strings to search for
gemini-3.1-flash-lite-preview