# gemini-2.0-flash and gemini-2.0-flash-lite shut down on 2026-06-01 (model in the request body)

- **Provider:** Google Gemini API
- **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

- Provider notice: https://ai.google.dev/gemini-api/docs/deprecations
- https://ai.google.dev/api/generate-content

## Machine-readable

- Advisory: https://github.com/SriVarshini09/shapi-advisories/blob/main/advisories/google-gemini-2-0-flash-shutdown-sdk.json
- OSV: https://shapi.dev/osv/google-gemini-2-0-flash-shutdown-sdk.json
