AI Change Guard
Change announced106 days

gemini-2.5-flash-image

gemini-2.5-flash-image retires on 15 Mar 2027 on Gemini API. Official source

Calls to gemini-2.5-flash-image fail with an error, so every feature that uses it stops working.

Recommended replacementgemini-3.1-flash-lite-image

Google lists this as the earliest possible date.

Where and when

PlatformChangeDateTime leftReplacement
Gemini APIRetires15 Mar 2027106 daysgemini-3.1-flash-lite-image
Vertex AIRetires15 Mar 2027106 daysgemini-3.1-flash-lite-image

What to do before the date

  1. 1. Find every place your code uses it

    Paste a public GitHub repository. The free scan lists each file and line that uses gemini-2.5-flash-image, 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-3.1-flash-lite-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:gemini-2.5-flash-image --new google:gemini-3.1-flash-lite-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.