Gemini 2.5 Flash and 2.5 Pro Deprecation: API Requests Switch Models on December 1, 2026

From December 1, 2026, gemini-2.5-flash and gemini-2.5-pro API requests route to newer models. Pricing, ignored settings and what to test.

Gemini 2.5 Flash and Pro API requests switch models on December 1, 2026. Figure: the name in your code and the model that answers, with paid-tier prices per 1 million tokens.

Starting December 1, 2026, Gemini API requests that name gemini-2.5-flash or gemini-2.5-pro are automatically routed to a different model. Requests still go out under the old names, but a different model answers and a different price list applies. Some of the changes show up as errors. Others change your results with no error at all.

Three things to do before then. Find the model names in your code, save the responses the 2.5 models give you, and run the same inputs against the new models.

A small train carrying an envelope approaches a junction in the track. The straight track leads to a faint, distant old station, but the switch is set to send the train onto the track toward a newer station close by. A blank signpost stands beside the junction. There are no people and no text.
Figure 1. The sender stays the same, but the track switches partway and the train arrives at a different station. It is not a comparison of speed or performance.

This is an explainer, not a test; checked November 12, 2026. The routing starts on December 1, so nothing here comes from testing a routed request.

Are you affected?

  • Affected. Code and automation tools that call the Gemini Developer API (the Google AI Studio side) with an API key and name gemini-2.5-flash or gemini-2.5-pro.
  • Not affected. gemini-2.5-flash-lite is not deprecated and stays available through the API until further notice. This is also not about the Gemini app.
  • On a separate schedule. On Google Cloud’s Gemini Enterprise Agent Platform (where the old Vertex AI model docs address now leads), gemini-2.5-pro, gemini-2.5-flash and gemini-2.5-flash-lite have a retirement date of October 20, 2026. Google Cloud can extend a retirement date but does not move it earlier. This article does not cover whether those calls still go through. If you use that platform, start from its model lifecycle schedule and your own project’s status instead of the steps below.

Which model name goes where

The schedule has been public since November 2, 2026. Access to the 2.5 models has been limited to existing users since September 18, and neither model can be selected in Google AI Studio anymore.

Three-row diagram. From December 1, 2026, gemini-2.5-flash routes to gemini-3.5-flash-lite at the same text prices: $0.30 input and $2.50 output. gemini-2.5-pro routes to gemini-3.8-flash: $0.75 input and $3.75 output through December 31, 2026, then $1.50 input and $7.50 output from January 1, 2027. gemini-2.5-flash-lite is not deprecated and does not change. Prices are paid tier, per 1 million tokens.
Figure 2. Made by Rove. Checked November 12, 2026.
Name in your code Model that answers from December 1 Billed at
gemini-2.5-flash gemini-3.5-flash-lite Gemini 3.5 Flash-Lite rates
gemini-2.5-pro gemini-3.8-flash Gemini 3.8 Flash rates
gemini-2.5-flash-lite No change Not deprecated

The names hide two things. Flash does not go to Flash. It goes to Flash-Lite. Pro does not go to Pro. It goes to Flash. That alone does not mean a downgrade. In Google’s own benchmark results, 3.5 Flash-Lite scores 18.0% on the reasoning benchmark HLE (11.0% for 2.5 Flash) and 74.5% on the multimodal benchmark CharXIV (63.7%).

HLE is a set of 2,500 hard questions across dozens of subjects, written by subject-matter experts. CharXiv tests reading and reasoning over 2,323 real charts taken from arXiv papers. Both links go to the original benchmark papers. As of November 12, 2026, Google has not published which version of each benchmark was run. These are vendor-reported numbers, and whether your workload improves is something you have to measure yourself.

What to do before December 1

These steps are Rove’s suggestions, not an official procedure.

  1. Find the names. Look beyond the repository: environment variables, deployment settings, and the model field in automation tools. Names that only share a prefix, such as gemini-2.5-flash-lite, are not affected, so you can filter them out with the pattern below.
  2. Save a baseline. Before the December 1 switch, record the 2.5 model’s answers, token counts and response times for about 20 real inputs. For token counts, log promptTokenCount, candidatesTokenCount and thoughtsTokenCount from usageMetadata in the generateContent response. Once requests are routed, the old model is no longer there to compare against.
  3. Test under the new name yourself. Nothing guarantees that the auto-route target is the right model for your job. If you ran agents on 2.5 Flash, compare gemini-3.5-flash-lite at a higher thinking_level with gemini-3.6-flash. 3.6 Flash costs $0.75 input and $3.75 output per 1 million tokens through December 31, 2026, then $1.50 and $7.50 from January 1, 2027. Rate limits apply per project and vary by model, so check them too. As of November 12, 2026, Google has not published how rate limits apply to routed requests.
  4. Log which model answered. modelVersion in the generateContent response reports the model version used to generate the response. What it will show after December 1 is undocumented, so logging the value before and after makes a change easier to trace.
  5. Recheck costs on January 1. If you end up on 3.8 Flash or 3.6 Flash, do not budget from your December bill. Work the numbers out at the January rates.
grep -rnE "gemini-2\.5-(flash|pro)([^-a-z0-9]|$)" .

This pattern matches only gemini-2.5-flash and gemini-2.5-pro. It skips names like gemini-2.5-flash-lite and gemini-2.5-flash-preview-09-2025. It will not find settings that live outside the repository.

To compare before and after on the same inputs, you can use Promptfoo, an open-source evaluation tool that compares models including Gemini.

If you would rather hand the migration to a coding agent, Google publishes gemini-skills, which includes a gemini-api-dev skill. The migration command is /gemini-api-dev migrate my app to Gemini 3.8 Flash. Rove has not run it, so the comparison above still applies if you use it.

What changes in your code

The target models come with breaking API changes, and Google’s deadline for reviewing them is December 1, 2026. The table below sorts the main ones for 3.5 Flash-Lite and 3.8 Flash by symptom.

Item What changes How it shows up
temperature, top_p, top_k Deprecated and ignored by the API No error. The setting just stops having an effect. Future model generations will return a 400 error
Prefilling the start of the model’s answer Not supported 400 error when the last non-empty turn in the request is a model turn
candidate_count Unsupported in Gemini 3 and later Remove it from your code
thinking_budget Replaced by thinking_level Re-map old values to levels such as medium or high
Function calling Changes including thought_signature validation Check that the reasoning data from the previous response (thought_signature) is passed back correctly in the next request

The first row is the one to watch. If you set temperature=0 to keep answers consistent, that effect can disappear without an error. For more deterministic output, write explicit rules into a system instruction. Code that prefilled the start of the answer to force JSON output should move to a system instruction or structured outputs.

temperature=0 never guaranteed identical answers in the first place. In a study of ChatGPT’s code generation, temperature=0 reduced variation compared with the default. Even so, when the same request was sent five times, the share of problems where the five generated programs produced no matching test output was still about 18% to 44%, depending on the dataset (section 4.2). That experiment did not measure Gemini, so the numbers do not carry over. It is still reason enough to compare on fixed inputs instead of trusting a setting when the result matters.

The two target models also reason at different default levels. The default thinking level is minimal for 3.5 Flash-Lite and medium for 3.8 Flash. Setting minimal on 3.8 Flash returns an error. If you run an agent that calls tools several times on 3.5 Flash-Lite, raise thinking_level to medium or high. At the default level, tool calls can end early.

What function calling needs from you depends on how you call the API. The SDKs handle thought signatures automatically. No minimum SDK version is given, so check the release information for the SDK you use. If you use generateContent, every FunctionResponse must include call_id and name.

Some behavior is undocumented: how a routed request treats thinking_budget sent under the old model name, and how long the routing will stay in place. Rather than guess, test under the new model names before December.

Pricing: separate the December discount from the January rate

Here are the paid-tier prices per 1 million tokens, side by side. On the free tier, tokens are free of charge for all four models.

Model Input Output (including thinking tokens)
gemini-2.5-flash $0.30, audio $1.00 $2.50
gemini-3.5-flash-lite $0.30, audio included $2.50
gemini-2.5-pro $1.25, or $2.50 for prompts over 200k tokens $10.00, or $15.00 for prompts over 200k tokens
gemini-3.8-flash, through December 31, 2026 $0.75 $3.75
gemini-3.8-flash, from January 1, 2027 $1.50 $7.50

On the Flash side, text prices are identical and only audio input gets cheaper. The Pro side needs a second look. December falls inside the introductory pricing period for 3.8 Flash, so the bill drops sharply. From January, though, the input price is $1.50, higher than the $1.25 that 2.5 Pro charges. Input-heavy workloads can end up costing more in 2027 than they did on 2.5 Pro.

Here is the math, assuming token counts stay the same and every prompt is 200k tokens or less. These are example volumes, not figures from a real service. Caching, batch and search costs are left out.

Example monthly usage 2.5 Pro rates 3.8 Flash in December 2026 3.8 Flash from January 2027
100M input + 20M output tokens $325.00 $150.00 $300.00
100M input + 2M output tokens $145.00 $82.50 $165.00

The second row costs 13.8% more from January than it does at 2.5 Pro rates. It can also go the other way. As of November 12, 2026, Google has not published a separate 3.8 Flash price tier for prompts over 200k tokens. If many of your prompts run that long, even the January rates come out lower.

The assumption behind this math, that token counts stay the same, is not guaranteed either. 3.8 Flash can use more tokens on longer running and complex tasks, by design. That is why cost per finished task is a more accurate measure than the price list.

Search grounding is billed in a different unit

If you use Grounding with Google Search, which lets the model draw on Google Search results when it answers, this part can matter more than token prices. The 2.5 models are billed per prompt. Gemini 3 and newer models are billed for each search query the model decides to run, not for each request you send. Two search queries inside one request count as two.

Condition 2.5 Flash 2.5 Pro 3.5 Flash-Lite and 3.8 Flash
Free tier Free up to 500 requests per day (limit shared with Flash-Lite) Not available Not available
Free allowance on the paid tier 1,500 requests per day (limit shared with Flash-Lite) 1,500 requests per day 5,000 search requests per month (shared across all Gemini 3 and newer models)
Beyond the free allowance $35 per 1,000 grounded prompts $35 per 1,000 grounded prompts $14 per 1,000 search requests

On the paid tier, Gemini 3 and newer models also have a default limit of 1,500 search grounding requests per day per project. If your service uses search grounding with gemini-2.5-flash on the free tier, check this first. The free tier of both target models does not include the feature. Whether a routed request returns an error or answers without search is undocumented.

Why you should compare again when the model changes

The same task can give very different results from one model version to the next. In How is ChatGPT’s behavior changing over time?, the March 2023 and June 2023 versions of GPT-4 were given the same questions. On 1,000 questions asking whether a number is prime or composite, GPT-4’s accuracy fell from 84.0% to 51.1%, while GPT-3.5’s rose from 49.6% to 76.2% over the same period (section 3.1). A change can go either way, not only downhill. That comparison did not include Gemini and covers only some tasks. The takeaway still holds here: after a model changes, compare its behavior again on fixed inputs.

Further reading

Letting December 1 pass does not cut your requests off all at once. From that date, though, a model you did not choose is answering. Pick the model name yourself and run the comparison before then, and you will not have to hunt for the cause when results change.

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep reading

All posts