Gemini 2.5 Pro Deprecation: What December 1 Auto-Routing Means for Your API (2026)

On November 2, 2026, Google's Gemini API release notes added two deprecation notices that are easy to miss. Gemini 2.5 Pro and Gemini 2.5 Flash are no longer selectable in Google AI Studio. Starting December 1, 2026, any API request still sending those model strings gets routed to a newer model. Pro traffic lands on Gemini 3.8 Flash. Flash traffic lands on Gemini 3.5 Flash-Lite. Your code doesn't change, and that's exactly why this one deserves a look before the date hits.

Key takeaways
  • Google deprecated gemini-2.5-pro and gemini-2.5-flash on November 2, 2026. Effective December 1, 2026, requests to those model strings route automatically to gemini-3.8-flash and gemini-3.5-flash-lite.
  • Gemini 3.8 Flash lists at $0.75 per 1M input tokens and $3.75 per 1M output tokens through December 31, 2026, rising to $1.50 and $7.50 on January 1, 2027.
  • Gemini 3.5 Flash-Lite lists at $0.30 per 1M input tokens and $2.50 per 1M output tokens, with a 1,048,576-token input window and a 65,536-token output limit.
  • Gemini 2.5 Pro lists at $1.25 per 1M input tokens and $10.00 per 1M output tokens for prompts up to 200,000 tokens, so the routed traffic gets cheaper on paper.
  • Routed requests can still break on API changes, including thinking_level replacing thinking_budget, removed sampling parameters, and no prefilled model turns.

What Google actually changed

Google's pattern here is the same for both models. The old model string keeps working until the cutover, but the model is already off the AI Studio picker. On December 1, the API stops serving it and forwards the request to the replacement. You get billed at the replacement's rates and run against its behavior. The deprecation page also limits access to the 2.5 models to accounts that have used them in the past, so a fresh key may not reach them at all.

The silent part is what matters. Nothing in your repo flags the change. Your logs still show the old model name, and your dashboards keep working until a response shape or parameter starts failing.

Pricing before and after the routing

These are the Paid Tier list prices in USD per 1 million tokens, pulled from Google's pricing page on November 9, 2026.

ModelInput per 1M tokensOutput per 1M tokensStatus
gemini-2.5-pro$1.25 (prompts up to 200K), $2.50 (above 200K)$10.00 (up to 200K), $15.00 (above 200K)Deprecated. Routes to gemini-3.8-flash on December 1, 2026
gemini-2.5-flash$0.30 text, image, video. $1.00 audio$2.50Deprecated. Routes to gemini-3.5-flash-lite on December 1, 2026
gemini-3.8-flash$0.75 through December 31, 2026. $1.50 from January 1, 2027$3.75 through December 31, 2026. $7.50 from January 1, 2027Routing target for 2.5 Pro
gemini-3.5-flash-lite$0.30 text, image, video, audio$2.50Routing target for 2.5 Flash

Take a workload of 1 million input tokens and 200,000 output tokens per month, split across requests that each stay under 200,000 input tokens. On 2.5 Pro, that comes to about $3.25. On Gemini 3.8 Flash in 2026, it comes to about $1.50. From January 1, 2027, the same workload on 3.8 Flash costs about $3.00. The routing looks like a discount for Pro users, but the discount has an expiry date, and the model is a different class of product. Treat it as a new model that needs its own evals, not a drop-in replacement.

For Flash users the math is almost flat. Text workloads on 2.5 Flash and 3.5 Flash-Lite both come to about $0.80 for that same 1M input and 200K output mix. Audio-heavy workloads get cheaper, because 2.5 Flash charged $1.00 per 1M audio input tokens and 3.5 Flash-Lite lists audio at $0.30.

What breaks, even when the price is fine

The release notes call out several breaking API changes for the move to the newer Gemini models. These are the ones most likely to show up in production code:

Routed traffic doesn't get a compatibility shim. A request that worked on 2.5 Pro can return a 400 on 3.8 Flash, and that's the failure mode to test for now.

Pin the model and test it now

The safest move is to stop relying on the redirect. Put the model name in config, point it at the replacement, and run your eval set before December 1. This curl call shows the raw request shape with a pinned model:

curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.8-flash:generateContent" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [
      {"parts": [{"text": "Summarize this changelog in three bullets: ..."}]}
    ]
  }'

In Python, read the model from an environment variable so you can switch between the old and new strings without a deploy. The usage fields show what each request costs:

import os
import requests

MODEL = os.environ.get("GEMINI_MODEL", "gemini-3.8-flash")
API_URL = f"https://generativelanguage.googleapis.com/v1beta/models/{MODEL}:generateContent"


def ask(prompt: str) -> str:
    resp = requests.post(
        API_URL,
        headers={
            "x-goog-api-key": os.environ["GEMINI_API_KEY"],
            "Content-Type": "application/json",
        },
        json={"contents": [{"parts": [{"text": prompt}]}]},
        timeout=60,
    )
    resp.raise_for_status()
    data = resp.json()

    usage = data.get("usageMetadata", {})
    print("prompt tokens:", usage.get("promptTokenCount"),
          "output tokens:", usage.get("candidatesTokenCount"))

    return data["candidates"][0]["content"]["parts"][0]["text"]


if __name__ == "__main__":
    print(ask("Explain prompt caching in two sentences."))

The Node.js version is the same idea. It fails loudly on a non-2xx status, which is what you want during a migration test:

const MODEL = process.env.GEMINI_MODEL ?? "gemini-3.8-flash";
const URL = `https://generativelanguage.googleapis.com/v1beta/models/${MODEL}:generateContent`;

export async function ask(prompt) {
  const res = await fetch(URL, {
    method: "POST",
    headers: {
      "x-goog-api-key": process.env.GEMINI_API_KEY,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ contents: [{ parts: [{ text: prompt }] }] }),
  });

  if (!res.ok) {
    throw new Error(`Gemini ${res.status}: ${await res.text()}`);
  }

  const data = await res.json();
  return data.candidates[0].content.parts[0].text;
}

If you already send requests through an OpenAI-compatible gateway such as KissAPI, the model name is usually one config value. That makes the cutover a single line change, and it lets you run 3.8 Flash beside your current route for a few days before anything moves.

Migration checklist

  1. Search your repos, env files, and cron jobs for gemini-2.5-pro and gemini-2.5-flash.
  2. Replace each string with an explicit replacement model in config, and keep the old value behind an environment override for rollback.
  3. Remove thinking_budget, sampling parameters, and any prefilled assistant turns from the request builder.
  4. Run your eval set and compare answers on real prompts. Don't judge the swap by the price table alone.
  5. Set a calendar reminder for January 1, 2027, when 3.8 Flash's list price doubles.

Model comparison for the replacement choice

Gemini 3.8 Flash and 3.5 Flash-Lite are the official targets, but if you're choosing between them and other routes, these are the numbers that matter.

ModelInput / output per 1M tokensContext windowBest fitKey limitation
Gemini 3.8 Flash$0.75 / $3.75 through Dec 31, 2026. $1.50 / $7.50 from Jan 1, 20271,048,576 input, 65,536 outputLong-horizon coding and agent workflowsList price doubles on January 1, 2027
Gemini 3.5 Flash-Lite$0.30 / $2.501,048,576 input, 65,536 outputHigh-volume agentic tasks, translation, simple data processingGoogle positions it for simpler work than the Flash tier
Claude Sonnet 5.5$2 / $101M tokensCoding and agent workloads on the Claude APIAbout 2.7x the input price of Gemini 3.8 Flash at today's rate
GPT-6.1 Terra$1 / $51,050,000 tokensLower-cost OpenAI option for agent loopsTool calling requires the Responses API

My take: for most teams moving off 2.5 Flash, 3.5 Flash-Lite is the low-risk swap because the price is nearly identical. For 2.5 Pro users, 3.8 Flash is probably the right target, but the January 2027 price change should be in the budget from day one. Don't assume the November numbers hold.

Frequently asked questions

Does Google automatically switch Gemini 2.5 Pro API calls on December 1, 2026?

Yes. Google's deprecation notice says that after December 1, 2026, all API requests to gemini-2.5-pro route automatically to gemini-3.8-flash and are billed at Gemini 3.8 Flash rates.

How much does Gemini 3.8 Flash cost per million tokens?

Gemini 3.8 Flash lists at $0.75 per 1M input tokens and $3.75 per 1M output tokens through December 31, 2026. From January 1, 2027, the list price rises to $1.50 input and $7.50 output per 1M tokens.

What replaces Gemini 2.5 Flash after December 1, 2026?

Requests to gemini-2.5-flash route automatically to gemini-3.5-flash-lite, which lists at $0.30 per 1M input tokens and $2.50 per 1M output tokens, with a 1,048,576-token input window.

Test the Replacement Before the Redirect Hits

Create a free account at api.kissapi.ai/register and run your eval set against the new model string while the old one still works.

Start Free