AI Change Guard
Reroute announced2 days

Gemini 2.5 Flash and Pro are rerouted on 1 Dec 2026. Your code won't see an error.

On the Gemini API, Google retires gemini-2.5-flash and gemini-2.5-pro by rerouting them: the same model ID keeps working, but a different model answers, billed at that model's price (Google's deprecations page, which lists 1 Dec 2026 as the earliest possible date). Both are already closed to new API users.

Which model answers instead

Your code asks forAnswered byPrice nowPrice after
gemini-2.5-flashgemini-3.5-flash-lite$0.30 / $2.50$0.30 / $2.50 (same price, a Lite model)
gemini-2.5-progemini-3.8-flash$1.25 / $10.00$0.75 / $3.75 until 31 Dec, then $1.50 / $7.50

US dollars per million input / output tokens, from Google's pricing page. The Gemini 3.8 Flash price doubles on 1 Jan 2027, when its introductory price ends.

On Vertex AI it is different: gemini-2.5-pro, gemini-2.5-flash and gemini-2.5-flash-lite were already retired on 20 Oct 2026 (Google Cloud), so calls there fail now.

Why a reroute is riskier than a shutdown

A shutdown fails loudly: you see errors and fix them. A reroute fails quietly. Nothing in your logs says the model changed, but every answer now comes from another model: Flash prompts are answered by a Lite model, and Pro prompts by a Flash model. Answers can get shorter or longer, follow instructions differently, change their JSON, or refuse things they used to do. Code that parses answers, and users who relied on their quality, notice first.

What to do before 1 December

  1. 1. Find every place your code uses them

    The free scan lists each file and line, and every other AI model with a date. Public GitHub repositories, no sign-up.

  2. 2. Test the model you will actually get, on your own prompts

    Replay your real prompts on the old model and on its replacement, and see which answers change or break. Free and open source; runs on your own Gemini key (if you still have access to 2.5, which existing users keep until the reroute):

    GEMINI_API_KEY=... npx ai-change-guard replay --set golden.jsonl --old google:gemini-2.5-flash --new google:gemini-3.5-flash-lite

    No golden set yet? starter writes one from the system prompts in your code, and import builds one from your logs. See the README.

  3. 3. Choose the model yourself

    If the replay passes, name the new model in your code, so what runs is what you tested. If it doesn't, test another (Gemini 3.6 Flash or 3.8 Flash, say) before the date, instead of finding out from your users.

  4. 4. Hear about the next one first

    Install the free GitHub App to get an email before each model your code uses changes, or follow the Model Change Radar (also as RSS).

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.

Rather have the switch tested for you? We build the golden set, replay it and hand you a tested pull request. See Migration Proof.