gemini-2.0-flash and gemini-2.0-flash-lite shut down on 2026-06-01 (model in the request body)
- Provider
- Gemini
- Endpoint
POST /*/models/{?}:*- 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 fail. This advisory covers calls that pass the model as a parameter, as the @google/genai SDK does (ai.models.generateContent({ model })); google-gemini-2-0-flash-shutdown covers calls that name the model in the path.
What to do
Change the model to gemini-3.6-flash (for gemini-2.0-flash) or gemini-3.1-flash-lite (for gemini-2.0-flash-lite), 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