# gemini-2.0-flash and gemini-2.0-flash-lite shut down on 2026-06-01

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

- 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.json
- OSV: https://shapi.dev/osv/google-gemini-2-0-flash-shutdown.json
