Gemini 2.5 Retirement: Migrate Before December 1 Reroute
Gemini 2.5 Pro and Flash retire in the Gemini API on Dec 1 2026 with automatic reroutes to 3.8 Flash and 3.5 Flash-Lite. Migration checklist and pricing.
Google deprecated gemini-2.5-pro and gemini-2.5-flash in the Gemini API on November 2, 2026. From December 1, requests to those model IDs automatically route to newer models and bill at the new rates.
This affects any code, automation, or third-party tool that still names the 2.5 models. The Gemini app and Workspace integrations stay unaffected. Vertex AI already retired the 2.5 models on October 20, 2026.
Act before December 1 so you control the switch instead of discovering failures later.
What changes on December 1
The Gemini API deprecations page and the November 2 changelog entry confirm the schedule:
| Model ID you call today | Routes to from Dec 1 | Billed at |
|---|---|---|
| gemini-2.5-pro | gemini-3.8-flash | Gemini 3.8 Flash rates |
| gemini-2.5-flash | gemini-3.5-flash-lite | Gemini 3.5 Flash-Lite rates |
| gemini-2.5-flash-lite | Unchanged | Unchanged (no shutdown announced) |
Both models left the Google AI Studio model picker. API access continues only for projects that already used them. New projects must start on current models.
Pricing after the reroute
Gemini 3.8 Flash carries introductory pricing through December 31, 2026: $0.75 per million input tokens and $3.75 per million output tokens. From January 1, 2027 the rates double to $1.50 input and $7.50 output.
Gemini 3.5 Flash-Lite stays at $0.30 input and $2.50 output, matching the previous Gemini 2.5 Flash text rates. Context caching also doubles on 3.8 Flash after the year ends.
Review your volume forecasts now. Higher thinking levels on 3.8 Flash can increase token use on complex tasks because the model reasons longer by design.
Breaking changes you must handle
Automatic routing does not preserve every 2.5-era parameter. The official migration guides list these changes:
thinking_budget(integer) is gone. Usethinking_levelwith the string valueslow,medium, orhigh. Gemini 3.8 Flash rejectsminimalwith an error. Gemini 3.5 Flash-Lite defaults tominimal.- Sampling parameters (
temperature,top_p,top_k) are ignored today and will return errors on later generations. Remove them. candidate_countis unsupported. Make separate requests if you need multiple drafts.- Prefilled model turns are rejected. A request that ends on a model role returns HTTP 400. End on a user turn or move steering into the system instruction.
- Function calling now requires matching
call_idandnameon every function response. Preservethought_signaturevalues across multi-turn tool loops.
Test every production path against the target model before December 1. Quality, latency, and cost can all shift even when the call succeeds.
Migration checklist
- Search your codebase, configs, and vendor integrations for the strings
gemini-2.5-proandgemini-2.5-flash. - Change the model ID to
gemini-3.8-flash(for former Pro workloads) orgemini-3.5-flash-lite(for former Flash workloads). See our guide on adding Gemini 3.8 Flash to Android apps with Firebase AI Logic. - Replace any
thinking_budgetwiththinking_level. Start withmediumon 3.8 Flash andminimalon 3.5 Flash-Lite, then adjust after testing. - Strip sampling parameters,
candidate_count, and any trailing model turns. - Audit function-calling loops for required IDs and thought signatures.
- Run your evaluation suite or a representative sample of production prompts. Compare output quality, token counts, and latency.
- Update billing alerts for the January 1 price step on 3.8 Flash.
- Deploy the change and monitor error rates for the first 48 hours after December 1.
If you use a coding agent that supports skills, the Gemini API documentation recommends the gemini-api-dev skill for an automated pass.
Watch a walkthrough
Tips for a smooth cutover
Keep the old model ID behind a feature flag until you finish testing. That lets you roll back instantly if quality drops on a critical path.
For high-volume extraction or classification, Gemini 3.5 Flash-Lite is usually the lower-cost choice. For multi-step agents, coding, or long-context reasoning, Gemini 3.8 Flash at medium or high thinking level is the stronger default.
Document the new model and thinking level in your runbooks so the next person who touches the integration does not reintroduce a deprecated parameter.
Conclusion
Gemini 2.5 Pro and Flash stop being first-class citizens in the Gemini API on December 1, 2026. Requests will still return answers, but they will come from different models under a different contract and, for 3.8 Flash, under a temporary introductory price that ends on January 1.
Update your model strings, remove the deprecated parameters, and test this month. The official sources are the Gemini API deprecations page, the November 2 changelog entry, and the migration sections in the Gemini 3.8 Flash and Gemini 3.5 Flash-Lite guides.
Sources:
Share this story