After Gemini 2.5 retires, your code can keep running without a rewrite, but you can't ignore it: starting December 1, 2026, requests to gemini-2.5-pro are automatically rerouted to Gemini 3.8 Flash, and requests to gemini-2.5-flash go to Gemini 3.5 Flash-Lite. Requests don't error out, and billing follows the new model's rates -- rename the model first.
| Old model | Rerouted to | Billing change |
|---|---|---|
| gemini-2.5-pro | Gemini 3.8 Flash | $0.75 input / $3.75 output per million tokens through December 31; rising to $1.50 and $7.50 from January 1, 2027 |
| gemini-2.5-flash | Gemini 3.5 Flash-Lite | $0.30 input / $2.50 output, unchanged |
| gemini-2.5-flash-lite | Unchanged | Not affected, keeps working as before |
Migrate in three steps
- Search the whole repository for gemini-2.5-pro and gemini-2.5-flash, including environment variables, config files, and hard-coded defaults -- don't fix just one place.
- Swap in the new model names from the table above, and change thinking_budget to thinking_level: some sampling parameters no longer exist on the new models, and function calling is validated more strictly, so copying old parameters verbatim may error.
- Run your core flows in a test environment first and compare output quality: 3.8 Flash is cheaper than 2.5 Pro, but its reasoning depth differs, so don't push critical tasks straight to production.
If the bill changed, check these two things
On the same day, Carbon and Argon also got more expensive: standard pricing doubled from $2 input / $10 output to $4 and $20 per million tokens, while Neon and Hydrogen didn't change. Check the usage page to confirm which model your requests actually ran on, since rerouted traffic is billed at the new model's rates; batch jobs that can wait should move to the Batch tier, which brings prices back close to the old level. For the full story behind the change, see: Gemini 2.5 officially retires today: requests auto-rerouted, Carbon and Argon prices double.