gemini-3.1-flash-image deprecation
gemini-3.1-flash-image is deprecated, and removal was announced. Key date: Oct 6, 2026.
Google Deprecation model
gemini-3.1-flash-imageis deprecated, and removal was announced. Key date: Oct 6, 2026. Google deprecated the Gemini API image model gemini-3.1-flash-image (Nano Banana 2) on October 6, 2026, with no shutdown date announced, and tells callers to migrate to gemini-nano-banana-2.1.What to do: Move gemini-3.1-flash-image calls to gemini-nano-banana-2.1, which the deprecations page lists as the replacement with no shutdown date announced, then re-check image output on your evals.