AI Change Guard
Retired

imagen-4.0-generate-001

imagen-4.0-generate-001 was retired on 17 Aug 2026 on Gemini API. Official source

Calls to imagen-4.0-generate-001 fail with an error, so every feature that uses it stops working.

Recommended replacementgemini-2.5-flash-image

Where and when

PlatformChangeDateTime leftReplacement
Vertex AIRetires30 Jun 2026Passedgemini-2.5-flash-image
Gemini APIRetires17 Aug 2026Passedgemini-nano-banana-2.1

What to do now

  1. 1. Find every place your code uses it

    Paste a public GitHub repository. The free scan lists each file and line that uses imagen-4.0-generate-001, and every other AI model and API with a date. No sign-up, and your code is deleted when the scan ends.

  2. 2. Test gemini-2.5-flash-image on your own prompts first

    A newer model can answer differently: longer, shorter, or in a format your code no longer parses. Replay your real prompts on both and compare, on your own API key, with the free open-source CLI or GitHub Action:

    ai-change-guard replay --set golden.jsonl --old google:imagen-4.0-generate-001 --new google:gemini-2.5-flash-image
  3. 3. Get a warning before the next one

    Install the GitHub App on your repositories: every pull request is checked, and you get an email before each model you use changes. Install free · Have the switch tested for you

Other Google changes coming up

Get the weekly deadline digest

Every Monday: the AI model and API changes coming up, each with the provider's own notice. One click to unsubscribe, and we delete your address.