gemini-2.0-flash and gemini-2.0-flash-lite shut down on 2026-06-01
- Provider
- Gemini
- Endpoint
POST /*/models/gemini-2.0-flash*:*- Effective
- 2026-06-01
- Severity
- critical
- Change
- version-sunset
- Status
- verified
What changed
Google shut down gemini-2.0-flash, gemini-2.0-flash-001, gemini-2.0-flash-lite and gemini-2.0-flash-lite-001 on 2026-06-01. A shut-down model is completely turned off, so generateContent and streamGenerateContent calls that name it in the path fail. Calls that pass the model in a request body (as /v1beta/interactions does) or in a variable are not matched by this path.
What to do
Change the model segment to gemini-3.6-flash (for gemini-2.0-flash) or gemini-3.1-flash-lite (for gemini-2.0-flash-lite), for example /v1beta/models/gemini-3.6-flash:generateContent, and re-test prompts and output parsing.
Sources
Check your code
npx shapi-cli scan .shapi scan lists the call sites this change affects; shapi fix repairs them test-first when the advisory has an automatic fix. All advisories · Markdown · OSV · JSON