If your code calls gemini-2.5-pro or gemini-2.5-flash, the model answering you changed today.
Google deprecated both models on November 2 and set the switch for December 1, 2026. From today, every API request for those model strings is automatically routed to a newer model, and billed at that newer model's rates:
| What your code asks for | What answers from Dec 1 |
|---|---|
gemini-2.5-pro | gemini-3.8-flash |
gemini-2.5-flash | gemini-3.5-flash-lite |
Both 2.5 models are also gone from the model picker in Google AI Studio.
This post is a short checklist to find out whether you're affected and what to re-test.
Why a reroute is worse than a shutdown
When an API shuts a model down, your calls fail. It's loud, it's annoying, and someone fixes it the same day.
A reroute is quieter. Your code keeps running, the model string in your config still says 2.5, and the feature keeps answering. The only thing that changed is the model behind it.
I research LLM hallucination, and this is the part that worries me. Every eval you ran, every prompt you tuned, every "it works, ship it" moment happened on the old model. A different model can be better on average and still fail on the exact cases your product depends on. Nothing in your code will tell you that.
Step 1: find every old model string
Start with a plain search across code, config and environment files:
grep -rnE "gemini-2\.5-(pro|flash)" . \ --include="*.py" --include="*.ts" --include="*.js" \ --include="*.json" --include="*.yaml" --include="*.yml" --include="*.env*" Check the places a search misses too: environment variables in your hosting dashboard, CI secrets, serverless function settings, and any no-code or workflow tool that calls Gemini on your behalf.
Step 2: pin the model you actually mean
Don't let the reroute choose for you. Update the string to the model you intend to run, then test that model on purpose.
from google import genai client = genai.Client() MODEL = "gemini-3.8-flash" # was "gemini-2.5-pro" response = client.models.generate_content( model=MODEL, contents="Summarise this support ticket in one line: ...", ) print(response.model_version) # log what actually answered print(response.text) Logging model_version from the response is a cheap habit. If what you asked for and what answered ever differ again, you'll see it in your logs instead of in a user complaint.
Step 3: fix the breaking changes
Google's changelog lists breaking API changes that come with the new models:
- Thinking config:
thinking_levelreplacesthinking_budget. If you set a token budget for thinking, move to a level instead. - Function calling: function calling and
thought_signaturevalidation changed. If your app uses tools, re-run every tool-calling path, not just the happy one. - Sampling parameters: some sampling parameters were removed. Check what you pass in your generation config.
- Prefilled model turns: if you start the model's reply for it (a common trick to force a format), that pattern is removed. Use structured output or a clearer instruction instead.
The migration guides for Gemini 3.8 Flash and 3.5 Flash-Lite in Google's docs cover each change in detail.
Step 4: re-run your evals, more than once
This is the step people skip. Take the inputs your feature actually sees and run them through the new model.
Two things to look at:
- Accuracy: does it still get your known cases right?
- Consistency: does it get them right every time? Run the same input several times, and a few small variations of it.
from collections import Counter def consistency(prompt, runs=5): answers = [ client.models.generate_content(model=MODEL, contents=prompt).text.strip() for _ in range(runs) ] most_common, count = Counter(answers).most_common(1)[0] return count / runs, most_common score, answer = consistency("Is this review positive or negative? 'Delivery was late but the food was great.'") print(score, answer) Exact string matching is crude, so for free-text answers compare the field or label you care about, not the whole response. The point is the habit: a model that is right once is not the same as a model that is right every time.
Step 5: check the bill
Requests are now billed at the new model's rates, not 2.5 rates. Look at your usage dashboard over the next few days, especially if you have long prompts or high volume.
The bigger lesson
Model churn now arrives as dated changelog entries, not big announcements.
A small routine helps:
- Keep every model string in one config file, not scattered across the codebase
- Log the model version on every response
- Keep a small eval set in the repo and run it whenever a model string changes
- Read your provider's changelog once a month
Which old model string did you find in your codebase?
I'm Veer, I write about AI, tech and society at SpaceRock. More of my work: veersolanki.in
