gemini-2.5-pro Now Answers as 3.8 Flash, With No Error: Check the Model That Replied
Since December 1, 2026, the Gemini API answers gemini-2.5-pro calls with gemini-3.8-flash, billed at its rates, and nothing errors. A pinned model ID no longer fixes the model; comparing the model each response reports with the one you asked for does.
On December 2, a builder posted on Google's developer forum that their Gemini 2.5 Pro calls had "started routing to Gemini 3.8 Flash." Their production pipeline ran on "over 80 pages of prompts" tuned for 2.5 Pro.
They had "just noticed" the switch, a day after it began.
Since December 1, 2026, the Gemini API sends every request for gemini-2.5-pro to gemini-3.8-flash. Requests for gemini-2.5-flash go to gemini-3.5-flash-lite. Google bills both at the new model's rates, as its changelog announced on November 2.
A plain request still succeeds with HTTP 200.
Each response carries a modelVersion field that names the model that produced it. When Google rerouted gemini-3.7-flash to gemini-3.8-flash in October, that field named the new model. If either old string sits in your code, an .env file, or an agent config, this is already happening to your app.
A retired model ID that keeps answering is more dangerous than one that throws an error. A request that keeps succeeding leaves your error logs empty. And pinning the exact string did not stop this one.
Instead, read on every response which model actually answered, and compare it with the one you asked for.
Claude's retired IDs return an error instead
On November 30, Anthropic retired Claude Sonnet 4.5, as claude-sonnet-4-5 and claude-sonnet-4-5-20250929. The notice reads: "All requests to this model on the Claude API will now return an error."
The same release notes removed fast mode for Claude Opus 4.8. Requests that send speed: "fast" to claude-opus-4-8 now fail too. Opus 4.8 itself stays available.
A retired Claude model fails in a way your monitoring already understands. Anthropic's deprecation page says the Messages API returns a 404 not_found_error. It also promises "at least 60 days' notice." The Sonnet 4.5 notice went out on September 30.
That error shows up in your error logs on the first failed request. The fix is a new model string.
A retired Claude ID fails with an error; a rerouted Gemini ID keeps answering, and the response's modelVersion field is where the change can show.The Gemini reroute returns HTTP 200 and an answer instead, so an error alert has nothing to catch.
Some rerouted requests break and some quietly change
The reroute is only silent for requests that the new models accept. Google's changelog lists breaking changes that come with them: "function calling and thought_signature validation, thinking_level replacing thinking_budget, and removed sampling parameters and prefilled model turns." Those changes split into two groups.
Two old habits now fail outright.
- A prefilled turn. Some code writes the first words of the model's reply itself, as a last
modelturn, to force a format. If the last turn in your request is amodelturn, the API returns a 400 error. - The
minimalthinking level. The thinking level sets how much the model reasons before it answers, and Gemini 3 models take a named level where 2.5 took a token budget. Ask Gemini 3.8 Flash forminimaland its migration guide says that "will return an error."
Function calls need a check too. The same guide asks that every FunctionResponse on generateContent include call_id and name. It also points to a workaround for Malformed_Function_Call errors.
Other habits are ignored without a word. The Gemini 3.6 guide says temperature, top_p and top_k "are deprecated and ignored." That guide's rules cover 3.5 Flash-Lite and every later release.
A request that set temperature to 0 for steady output still gets an answer. It just no longer gets the setting.
One default moves as well. Gemini 3.5 Flash-Lite, which now answers every gemini-2.5-flash call, defaults to minimal thinking. For agents with tool calls, the guide says to set "medium" or "high" "to prevent premature tool termination."
So a rerouted app can be broken on one path and changed on another, depending on what each request sends.
The bill went down for December, then input goes up
The price changed quietly too. For 2.5 Pro users, it moved in the pleasant direction first. The lower rate lasts 31 days.
Table: What a gemini-2.5-pro request costs, per 1M tokens (paid tier, prompts up to 200k tokens)
| Billed as | Input | Output | When |
|---|---|---|---|
| Gemini 2.5 Pro | $1.25 | $10.00 | until November 30, 2026 |
| Gemini 3.8 Flash, introductory | $0.75 | $3.75 | December 1 to 31, 2026 |
| Gemini 3.8 Flash, standard | $1.50 | $7.50 | from January 1, 2027 |
The rerouted call is 40% cheaper on input and 62.5% cheaper on output this month. From January 1, input costs 20% more than 2.5 Pro's and output 25% less. Sources: Gemini pricing, What's new in Gemini 3.8 Flash.
For gemini-2.5-flash users, the new target, Gemini 3.5 Flash-Lite, lists $0.30 input and $2.50 output per million tokens.
A lower bill makes the reroute look like the kinder design. The app stays up and costs less. An error at 2 a.m. takes a product offline. A reroute does not. Build to Launch's account of a live LLM outage tells what broke when one small app's provider went down mid-day and it switched to a backup model.
But the builder with over 80 pages of prompts tuned for 2.5 Pro lost two things along the way: the choice and the test.
A builder already on the same model shows what that test would look for. On December 1, a builder ran a Korean-English real-time translation app on Gemini 3.8 Flash. They logged waits of 3,679 ms to 23,564 ms for messages "often one or two sentences." Every one of them returned HTTP 200. Two more requests failed after about 25 seconds.
The poster asked whether the rerouted 2.5 Pro traffic was the cause. Nobody has confirmed it.
Their larger worry, after "months refining our prompts and translation rules," was that "rules that worked reliably with one model may become inconsistent or stop working as expected with another."
Keeping the uptime does not require staying blind. A check on the served model keeps every request running and tells you, the same day, that the model under them changed.
Pinning the exact ID did not protect anyone
Builders learned to pin model versions so the model could not change under them. gemini-2.5-pro was already a pinned, exact string. Google rerouted it anyway.
The vendor decides what a string means on a given date.
December 1 is the third date since October on which Google has done this.
The deprecations page shows gemini-3.7-flash routing to gemini-3.8-flash and gemini-3.5-flash routing to gemini-3.6-flash, both announced on October 8. Its note on them says "the endpoint is not shutting down and automatically routes API requests." gemini-embedding-2-preview has routed to gemini-embedding-2 since November 6.
A fourth date is set: gemini-omni-1.1-flash routes to gemini-omni-1.2-flash from December 3, 2026.
A check on the request cannot catch any of these, because the request never changed. The check has to read the response.
Does the response say which model answered?
On the Gemini API, it does.
The API reference defines modelVersion on every GenerateContentResponse as "the model version used to generate the response." The open question was whether the field reports the rerouted model or echoes the one you asked for.
The October reroute answered that.
A builder on Google's forum found that "every generateContent request to models/gemini-3.7-flash comes back with "modelVersion": "gemini-3.8-flash"". A reply on the thread confirmed it was "intended behavior."
Their test was one request with a grep:
curl -sS "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.7-flash:generateContent" \
-H "x-goog-api-key: $KEY" \
-H 'Content-Type: application/json' \
-X POST \
-d '{"contents":[{"parts":[{"text":"Reply with OK."}]}]}' \
| grep '"modelVersion"'
If December's reroute works the same way, running it against gemini-2.5-pro should print gemini-3.8-flash. No public report has shown that output yet.
The field has three known gaps, all outside the plain Gemini API call.
Vertex AI is Google Cloud's route to the same models. There, for the moving alias gemini-flash-latest, model_version returns the alias rather than the model behind it, according to python-genai issue 2271. Per firebase-js-sdk issue 10676, the Firebase JS SDK drops the field on the Gemini Developer API backend. It keeps "only candidates, promptFeedback and usageMetadata." And some non-Gemini models served through Vertex AI omit modelVersion entirely, per spring-ai issue 6665.
Check that your SDK passes the field through before you rely on it.
On the Claude API, the Messages response carries a model field. In Anthropic's own example, a request for claude-opus-4-5-20251101 returns "model": "claude-opus-4-5-20251101".
Claude retires with an error today. If that ever changes, the same comparison covers it.
Three changes that make the next reroute visible
The fix is small enough to do this week.
- Find every model string. Search the repository, including
.envfiles, agent configs and scheduled jobs, forgemini-2.5-pro,gemini-2.5-flash,claude-sonnet-4-5and anyspeed: "fast"sent toclaude-opus-4-8. Leavegemini-2.5-flash-litealone: Google says it "is not deprecated." - Move them into one file. One config module that maps each job to its model ID gives you one place to change on the next retirement date, and one list to read when Anthropic retires Claude Opus 4.5 on January 22, 2027.
- Compare requested with served on every response. Log a warning, or fail the call in an unattended pipeline, when the served name is not one you expect.
The sketch below handles step 3 by reading the two documented fields from the raw JSON. If you send an alias, the served name can differ from it, so the config lists every served name you have tested for each requested ID.
EXPECTED = {
# requested ID -> served names you have tested
"gemini-3.8-flash": {"gemini-3.8-flash"},
"claude-opus-4-5-20251101": {"claude-opus-4-5-20251101"},
}
def served_model(vendor: str, body: dict) -> str | None:
# Gemini: GenerateContentResponse.modelVersion; Claude: Message.model
return body.get("modelVersion") if vendor == "gemini" else body.get("model")
def check_model(vendor: str, requested: str, body: dict, log) -> None:
served = served_model(vendor, body)
if served is None:
log.warning("no model field from %s; check your SDK keeps it", vendor)
elif served not in EXPECTED.get(requested, {requested}):
log.warning("asked for %s, answered by %s", requested, served)
The same comparison has already caught a silent swap.
The Gemini CLI silently served gemini-3.5-flash when users asked for other Flash versions. A commenter on gemini-cli issue 28859 wrote that "the only way we caught it was comparing the requested model with the one stats.models reports and failing the call." The swap cost money as well. At the prices that commenter listed, gemini-3.5-flash cost $1.50 input and $9.00 output per million tokens, against $0.75 and $3.75 for the newer Flash models users had asked for.
The next reroute is gemini-omni-1.1-flash on December 3.
An app with the check logs it that morning. An app without it finds out when a user notices the answers changed.
FAQ
Is gemini-2.5-flash-lite affected?
No. The Gemini deprecations page says gemini-2.5-flash-lite "is not deprecated and remains available through the API until further notice." Only gemini-2.5-pro and gemini-2.5-flash route to new models from December 1, 2026.
Do the same dates apply to Claude on Amazon Bedrock or Google Cloud?
Not necessarily. Anthropic's deprecation page says Amazon Bedrock and Claude Models on Google Cloud (Google managed) "set their own retirement schedules," so a model's status and dates there can differ from the Claude API.
How do I find which Claude models my account still calls?
The deprecation page describes an audit. Open the Usage page in the Claude Console, click Export, and read the CSV, which breaks usage down by API key and model.
Does setting temperature still do anything on the rerouted Gemini models?
No. On Gemini 3.6 Flash, 3.5 Flash-Lite and later models, temperature, top_p and top_k "are deprecated and ignored," according to the Gemini 3.6 guide. The guide warns that future model generations will return an HTTP 400 error for them and suggests a system instruction with explicit rules instead.
Sources
- Google, Gemini API release notes
- Google, Gemini deprecations
- Google, Gemini Developer API pricing
- Google, What's new in Gemini 3.8 Flash
- Google, What's new in Gemini 3.6 Flash and 3.5 Flash-Lite
- Google, Gemini API reference: Generating content
- Anthropic, Claude Platform release notes
- Anthropic, Model deprecations
- Anthropic, Using the Messages API
- Google AI Developers Forum, Gemini-3.7-flash requests are answered as gemini-3.8-flash
- Google AI Developers Forum, Gemini 2.5 pro is routing to gemini flash 3.8
- Google AI Developers Forum, Severe Gemini 3.8 Flash API latency, 25-second timeouts
- GitHub, google-gemini/gemini-cli issue 28859
- GitHub, googleapis/python-genai issue 2271
- GitHub, firebase/firebase-js-sdk issue 10676
- GitHub, spring-projects/spring-ai issue 6665
- Build to Launch, When your AI API goes down: 6 backup lessons from a real LLM outage
Links
- Gemini API release notes (documentation)
- Gemini deprecations (documentation)
- Gemini Developer API pricing (documentation)
- What's new in Gemini 3.8 Flash (documentation)
- What's new in Gemini 3.6 Flash and 3.5 Flash-Lite (documentation)
- Gemini API reference: Generating content (documentation)
- Claude Platform release notes (documentation)
- Claude model deprecations (documentation)
- Using the Messages API (documentation)
- Google AI Developers Forum: Gemini-3.7-flash requests are answered as gemini-3.8-flash (documentation)
- Google AI Developers Forum: Gemini 2.5 pro is routing to gemini flash 3.8 (documentation)
- Google AI Developers Forum: Severe Gemini 3.8 Flash API latency, 25-second timeouts (documentation)
- google-gemini/gemini-cli issue 28859 (documentation)
- googleapis/python-genai issue 2271 (documentation)
- firebase/firebase-js-sdk issue 10676 (documentation)
- spring-projects/spring-ai issue 6665 (article)
- When Your AI API Goes Down: 6 Backup Lessons From a Real LLM Outage (article)
Every Friday: what builders launched this week, and one guide to help you ship yours.
More guides
The Claude Security GitHub Action Can Block Your Merge. Start It Where You Trust Everyone Who Can Push
The Claude Security GitHub Action can block a merge, but anyone who can push can steer its scan, edit its workflow and pass its check. Start it on a private repository with its own capped API key.
Parallel Claude Code Agents Cost Most Before You Know What You Want: $634 vs $81
Most of a parallel agent bill pays for agents building and rereading guesses while the direction is still open. Explore with one agent until you can write down what is wrong, then fan out against that note.
An AI Rewrite Passed 98% of Its Tests and Matched a Quarter of Real Requests: Verify Yours Against Recorded Inputs
Before a coding agent ports working code, record what the old code does on real inputs, lock that recording where the agent can't edit it, and call the port done only when the new code matches it. Anthropic's Rust rewrite shows why green tests are not enough.