If you had production traffic on Imagen 4 through the Gemini API, it stopped working yesterday. Google retired all three generally available Imagen 4 model IDs on August 17, 2026: imagen-4.0-generate-001, imagen-4.0-ultra-generate-001 and imagen-4.0-fast-generate-001. The replacement Google names in its own deprecation table is gemini-3.1-flash-image.

The trap is in how you migrate. Most model retirements are a string swap, where you change an identifier in a config file and redeploy. This one is not. Imagen 4 was served through a dedicated image-generation method, and the Gemini-native image models are served through the standard content-generation method. The model changes, the call shape changes, and the code that reads the response changes with it.

RelatedGemini 3.7 Flash Ships at Half Price, 3.5 Pro Still Missing

What breaks in the code?

On the Imagen path you called a purpose-built method, generate_images(), which took image-specific arguments like the number of images and the aspect ratio as first-class parameters, and handed back a list of generated image objects. That method does not exist for the Gemini-native image models.

On the Gemini path you call generate_content(), the same entry point used for text and multimodal work. The prompt goes in as content, generation settings move into the config object, and the image comes back as inline data inside a candidate's parts, alongside any text the model chose to emit. So the response handling is genuinely different: you are no longer indexing into a list of images, you are walking parts and picking out the ones carrying image bytes.

Anyone who wrote a thin wrapper around image generation will find this a contained change. Anyone who called the SDK directly from a dozen places will find it less contained.

Imagen 4 call path compared with the Gemini native image call path The retired path used a dedicated generate images method returning a list of images. The replacement path uses generate content, with settings in a config object and image bytes returned as inline data inside response parts. RETIRED · AUG 17 2026 generate_images( model=imagen-4.0-* number_of_images, aspect ) returns: list of images REPLACEMENT generate_content( model=gemini-3.1- flash-image contents, config returns: parts with inline data WHAT YOU HAVE TO REWRITE the method call the parameter names the response parsing genztech.blog
Fig 1 Three separate things change, which is why this is not a config-file edit.

Three models became one

Imagen 4 shipped as a tiered family. Standard was the default, ultra traded throughput for fidelity on single-image requests, and fast traded fidelity for latency and cost. Google's deprecation table points all three at the same replacement, which means the tiering is gone from the migration path entirely.

That has a practical consequence teams keep missing. If your product routed cheap thumbnail generation to imagen-4.0-fast and hero images to imagen-4.0-ultra, you no longer have two price and quality points to route between. You have one model, and whatever cost and latency profile it happens to have. Any budget model built on the old three-tier spread needs redoing against real measurements.

imagen-4.0-generate-001imagen-4.0-ultra / fastgemini-3.1-flash-image
StatusShut down Aug 17, 2026Shut down Aug 17, 2026Current
ReleasedJune 24, 2025June 24, 20252026
Call methodgenerate_images()generate_images()generate_content()
Quality tiersStandardTwo additional tiersSingle model
Response shapeList of imagesList of imagesParts with inline data

What else is on the clock?

The Imagen 4 preview endpoint, imagen-4.0-generate-preview-06-06, was already retired back on February 17, 2026, and its migration target was the GA model that has now itself been shut down. Anyone who did that first migration got six months before doing another one, which is a fair summary of the pace here.

One more Google model has an August date attached: gemini-robotics-er-1.6-preview shuts down on August 31, 2026, with gemini-robotics-er-2-preview named as its replacement. If you are running anything on the robotics embodied-reasoning preview line, that is thirteen days out from publication.

RelatedGoogle Ships Two New Gemini Image Models, and Pricing Is the Story

  1. Jun 24 2025Imagen 4 GA models released standard, ultra, fast
  2. Feb 17 2026Imagen 4 preview endpoint retired migrated onto the GA model
  3. Aug 17 2026All three GA model IDs shut down replacement: gemini-3.1-flash-image
  4. Aug 31 2026gemini-robotics-er-1.6-preview shuts down replacement: er-2-preview

What it means for the market

The strategic read on Alphabet is consolidation rather than retreat. Running a separate Imagen serving stack alongside the Gemini multimodal stack costs real capacity, and folding image generation into the model line that already handles text and video removes a duplicated inference path. For a company under scrutiny over AI capital spending, cutting a parallel serving stack is a margin decision as much as a product one.

For developers the read-through is about switching costs, and it cuts against Google. A migration that requires rewriting call sites rather than swapping a string is exactly the moment a team re-evaluates its provider, because the work to move to a competitor is suddenly comparable to the work to stay. The signal to watch is whether image-generation share moves measurably toward OpenAI, Black Forest Labs or the open-weight image models over the next quarter. That is factual analysis, not investment advice.

Our take

Google is entitled to retire models, and fourteen months from GA release to shutdown is not unusually aggressive by current industry standards. The complaint is narrower than that: the deprecation table presents gemini-3.1-flash-image as a replacement in a column that implies equivalence, and a replacement that requires a different method, different parameters and different response handling is not equivalent. It is a rewrite with a recommendation attached.

The practical lesson is the boring one that keeps being true. Put a thin abstraction between your application and any hosted model API, even when it feels like premature indirection, because the shape of these APIs is not stable and the migration windows are short. Teams who wrapped image generation behind one internal function spent an afternoon on this. Teams who did not spent the week.

What to watch · next quarter
  • Cost and latency reality. Benchmark gemini-3.1-flash-image against whatever your old tier actually cost you, since the three-tier spread is gone.
  • Prompt adherence drift. Prompts tuned against Imagen 4 will not necessarily behave the same way on a Gemini-native image model. Re-run a representative test suite.
  • The robotics preview. gemini-robotics-er-1.6-preview goes dark August 31, 2026.
  • The next deprecation. Watch Google's deprecation page directly rather than waiting for the shutdown to surface as an outage.
Primary sources

Original analysis by GenZTech, built from Google's own Gemini API deprecation table and Imagen model documentation.