Gemini Image Preview Models Shut Down — `gemini-3.1-flash-image-preview` and `gemini-3-pro-image-preview` Retired as of June 25
gemini-3.1-flash-image-preview and gemini-3-pro-image-preview were retired as of today, June 25, 2026. This completes the final step of Google's image generation stack deprecation cycle that began with the Imagen 3 model shutdown on June 24. Any call to either preview model ID now returns an error.gemini-3.1-flash-image and gemini-3-pro-image — have been available since May 28, 2026 and now include video-to-image generation support.gemini-3.1-flash-image (was: gemini-3.1-flash-image-preview) or gemini-3-pro-image (was: gemini-3-pro-image-preview). No code changes beyond the model string are required for existing generate_content() + GenerationConfig callers — the GA versions use the same API surface as the preview versions. The GA gemini-3.1-flash-image model adds video-to-image generation not available in the preview: pass video files via direct upload or public YouTube URLs alongside a text prompt. The gemini-3-pro-image GA version does not add video input. A note on what's still pending: imagen-3.0-capability-001 (Vertex AI mask-based editing) shuts down June 30 with no announced replacement — this is separate from today's shutdown and affects a different capability class. Video generation models also shut down June 30; migrate to Veo 3.1 preview model IDs.gemini-3.1-flash-image-preview or gemini-3-pro-image-preview in any production or development code; or you migrated from Imagen 3 models to preview model IDs as an interim measure on June 24.EffortQuick (model string swap only; API call pattern unchanged for existing generate_content() callers; test video-to-image on flash variant if you want the new capability).