# gemini-2.5-flash-image shuts down on 2027-03-15

- **Provider:** Google Gemini API
- **Endpoint:** `POST /*/models/gemini-2.5-flash-image:*`
- **Effective:** 2027-03-15
- **Severity:** high
- **Change:** version-sunset
- **Status:** verified

## What changed

Google shuts down gemini-2.5-flash-image (the original Nano Banana image model) on 2027-03-15. After that the model is turned off and generateContent calls that name it in the path fail. Calls that pass the model in a request body are not matched by this path.

## What to do

Move image generation to gemini-3.1-flash-lite-image, the replacement on the deprecations page, before 2027-03-15, and re-test how you read the returned image parts.

## Sources

- Provider notice: https://ai.google.dev/gemini-api/docs/deprecations
- https://ai.google.dev/gemini-api/docs/image-generation

## Machine-readable

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