gemini-2.5-flash-image-preview was shut down on the Gemini API January 15, 2026; the listed replacement is gemini-nano-banana-2.1.
Took effect · Gemini API model gemini-2.5-flash-image-preview
Reviewed against the vendor source on Oct 7, 2026 (AI-assisted review). Key facts are re-checked against the source daily.
What changes
Google announced the shutdown on December 4, 2025, and the changelog records it as shut down on January 15, 2026. The Gemini API deprecations page lists gemini-nano-banana-2.1 as the recommended replacement. Once a model is shut down its endpoint is no longer available.
Breaking: Calls fail after this date.
What to do
Switch to gemini-nano-banana-2.1, the replacement the deprecations page lists. Don't move to gemini-2.5-flash-image, which the same page gives a March 15, 2027 shutdown date. Re-test image outputs before switching.