Breaking model
Imagen 4 preview models imagen-4.0-generate-preview-06-06 and imagen-4.0-ultra-generate-preview-06-06 were shut down on the Gemini API February 17, 2026.
What changes
Google announced on January 15, 2026 that both would shut down February 17, 2026, and the changelog records them as shut down that day. The deprecations page lists imagen-4.0-generate-001 and imagen-4.0-ultra-generate-001 as replacements.
Breaking: Calls fail after this date.
What to do
Don't move to the listed replacements: imagen-4.0-generate-001 and imagen-4.0-ultra-generate-001 are listed with an August 17, 2026 shutdown date, and the page names gemini-nano-banana-2.1 as their replacement. Port calls to it with client.models.generate_content instead of client.models.generate_images, read image data from the response content parts, and re-test your image outputs.
Strings to search for
imagen-4.0-generate-preview-06-06imagen-4.0-ultra-generate-preview-06-06