DEV Community

Cover image for Requested Model, Billed Model
Andre Burgstahler
Andre Burgstahler

Posted on Originally published at Medium

Requested Model, Billed Model

On 1 December Google answers gemini-2.5-pro with another model at another price. Log the model that ran, not the one you asked for.

This article was first published on Medium. The canonical URL is https://medium.com/@r3dtuxedo/requested-model-billed-model-c7cc73841e7d.

Abstract illustration: on a dark navy background, two off-white receipt slips stand side by side. The left slip has a teal header, the right slip an amber one. A thin glowing line connects a line on the left slip to a different line on the right slip, crossing over.
The name on the order and the name on the bill are not always the same.

TL;DR

  • Google's AI Studio changelog says that from 1 December 2026 every API request to gemini-2.5-pro is automatically routed to gemini-3.8-flash and billed at that model's rates. gemini-2.5-flash goes to gemini-3.5-flash-lite. Your code does not change. Your bill does.
  • The price change is not small and not one-directional. Gemini 2.5 Pro costs $1.25 in and $10 out per million tokens. Gemini 3.8 Flash costs $0.75 in and $3.75 out through 31 December, then $1.50 in and $7.50 out from 1 January. On a month of 10 million input and 2 million output tokens that is $32.50, then $15.00, then $30.00.
  • This keeps happening. Google has announced four reroutes of old model names since 8 October. Anthropic once let removed fast-mode requests run at standard speed, billed at standard rates. GitHub only recently split bring-your-own-key usage out of its Copilot totals.
  • The fix is small: every cost record needs a requested model column and a billed model column, a note on how complete the record is, and an alert when the two differ.

Most cost logs have one column called "model". It holds whatever name your code put in the request. That works until the provider decides the name means something else.

From 1 December, that is exactly what happens on Google's Gemini API. This article is about what changes, what it costs, and how to keep a receipt that tells you the truth. You do not need to use Gemini to need it: the same gap exists in every provider's data.

What changes on 1 December

The Google AI Studio release notes for 2 November carry two deprecation notices. Both say the model "is deprecated and is no longer available to select in Google AI Studio", and both name a date:

"Effective December 1, 2026, all API requests to gemini-2.5-pro will automatically route to gemini-3.8-flash and be billed at Gemini 3.8 Flash rates."

And the second, for Flash: requests to gemini-2.5-flash route to gemini-3.5-flash-lite, billed at that model's rates. Google's deprecations page lists the same mapping, and each model's pricing section carries a caution banner.

The notes also warn of "breaking API changes", including function calling and thought_signature validation, thinking_level replacing thinking_budget, and removed sampling parameters and prefilled model turns. So a request that worked on 2.5 Pro may fail or behave differently once it lands on 3.8 Flash. That is the technical risk. The money risk is below.

What it does to the bill

Here are the list prices from Google's pricing page, per million tokens, for prompts up to 200,000 tokens:

A bar chart of the cost of one month of use, 10 million input tokens and 2 million output tokens. Gemini 2.5 Pro at $1.25 in and $10 out: $32.50. The same requests routed to Gemini 3.8 Flash in December at $0.75 in and $3.75 out: $15.00. The same requests in January at $1.50 in and $7.50 out: $30.00. A second pair: Gemini 2.5 Flash and Gemini 3.5 Flash-Lite are both $0.30 in and $2.50 out: $8.00 each.
What the same month of requests costs under the old name and under the new route. Arithmetic from Google's list prices, read 28 Nov 2026, prompts up to 200k tokens. It ignores caching, and it assumes the new model writes the same number of tokens.

Three things stand out:

1. December is cheaper, January is not. The 3.8 Flash prices on the page are marked "$0.75 through December 31, 2026" for input and "$3.75 through December 31, 2026" for output, then "$1.50 starting January 1, 2027" and "$7.50". The cheap rate is a promotional window. A cost dashboard that shows a saving in December will show a smaller saving, or none, in January.

2. The reroute can raise your input price. From January, 3.8 Flash input ($1.50) costs more than 2.5 Pro input ($1.25). Output is cheaper ($7.50 against $10). Which effect wins depends on your mix. A request that sends a large prompt and gets a short answer pays more.

3. Flash to Flash-Lite changes the model, not the price. Both bill at $0.30 in and $2.50 out. Same price, different model: the quality and the behaviour can still change, and the price will not warn you.

The same string in your code can mean three different prices in three months.

One more caveat. These are list prices for the same number of tokens. A different model can think for a different number of tokens, and Google bills thinking as output: the pricing page labels output as "including thinking tokens". So the real change in your bill can be larger or smaller than the arithmetic. Only the usage numbers from your own traffic can settle it.

This keeps happening

If the 1 December reroute were a one-off, you could handle it with a note in a calendar. It is not.

A timeline with four Google notices and two other examples. 8 Oct: gemini-3.7-flash routes to gemini-3.8-flash and gemini-3.5-flash routes to gemini-3.6-flash. 6 Nov: gemini-embedding-2-preview routes to gemini-embedding-2, same schema and pricing. 1 Dec: gemini-2.5-pro and gemini-2.5-flash reroute. 3 Dec: gemini-omni-1.1-flash routes to gemini-omni-1.2-flash. Below: Anthropic 29 June, Opus 4.6 fast-mode requests run at standard speed and standard price. GitHub 3 Nov, bring-your-own-key usage split from Copilot totals.
Names that stopped meaning what they said. Sources: Google AI Studio release notes; Anthropic release notes; GitHub changelog. Read 28 Nov 2026.

Look at the Google column. On 8 October gemini-3.7-flash was routed to gemini-3.8-flash and gemini-3.5-flash to gemini-3.6-flash. On 6 November the embedding preview model started routing to gemini-embedding-2, which Google says has "the same API schema, pricing, and embedding space", so no re-indexing. On 3 December gemini-omni-1.1-flash goes to gemini-omni-1.2-flash. Four notices in two months, each with a different effect on price and behaviour.

It is not only Google, and not only names:

  • Anthropic, speed. When Anthropic removed fast mode from Opus 4.6 on 29 June, requests with speed: "fast" no longer ran at fast speed or premium pricing: they "run at standard speed, are billed at standard rates, and do not return an error". The response's usage.speed field reports what was actually used. If your log recorded the speed you requested, it recorded a premium you were not charged.
  • GitHub, who is paying. GitHub's 3 November note on the Copilot usage API says bring-your-own-key usage "used to blend into Copilot-hosted totals, because local and custom models often share names with Copilot models". Same model name in the log, two different bills behind it.
  • GitHub, how long a name lasts. Copilot retires six model names on 14 December. The replacements are suggested, not identical.

So the question is not "which provider does this". It is "which of my records would notice".

Why one "model" column lies

Here is what a typical row looks like, and what it hides. The rows are illustrative, the right-hand column is from the sources linked in this article:

What the log says What could actually have happened
model = gemini-2.5-pro Served by gemini-3.8-flash, billed at its rates, from 1 December
model = claude-opus-4-6, speed = fast Ran at standard speed and billed at standard rates, per Anthropic's 29 June note
model = gpt-6.2-astra Probably right. Check model in the response and service_tier before you assume it
tokens = 1,240,000 (output) Includes thinking tokens, which you never saw on screen
user usage = 0 BYOK requests Local BYOK counts rely on client telemetry and "undercount when telemetry is disabled" (GitHub)

The last two rows are about something else, completeness. A record can name the right model and still be wrong about how much it covers. The receipt needs to say so.

What the receipt should say

The fix is a few extra fields, written at the moment each response comes back, not reconstructed later from a dashboard.

A sample cost receipt with five rows. Columns: time, requested model, billed model, match, input tokens, cached input, thinking tokens, visible output, and a completeness flag. Four rows match. One row requests gemini-2.5-pro and shows gemini-3.8-flash as billed, highlighted amber with the word MISMATCH. One row has the completeness flag set to usage missing, highlighted coral.
A cost receipt with two model columns. The amber row is the one a single "model" column would have hidden.

Each provider already returns the pieces. They are just easy to skip:

Provider Field that says what ran Fields for the usage Source
Google Gemini modelVersion: "the model version used to generate the response" usageMetadata: promptTokenCount, cachedContentTokenCount, candidatesTokenCount, thoughtsTokenCount; also serviceTier Generate content reference
Anthropic model in the response usage: input_tokens, cache_read_input_tokens, service_tier, speed Messages API reference
OpenAI model in the response, plus service_tier usage: cached_tokens, reasoning_tokens Responses API reference
GitHub Copilot is_custom_enterprise_model, used_local_byok, totals_by_model per-user and aggregate counts Usage metrics changelog

Notice what the first column does not promise. Google's reference says modelVersion is the version that generated the response. I could not run a request, because I have no Gemini API key on hand, so I do not know exactly what string comes back for a rerouted call. Do not write a rule that assumes it is the new model's name. Log it raw, run one request on 1 December, and see.

A guard that works with any of these is short. It records both names, and it raises a flag when they differ:

def receipt(requested, response):
    served = response.get("modelVersion") or response.get("model") or "unknown"
    return {
        "requested": requested,
        "billed": served,
        "match": served.startswith(requested),
        "complete": "usage" in response or "usageMetadata" in response,
    }
Enter fullscreen mode Exit fullscreen mode

Treat match as a prompt to look, not as proof. Version suffixes and dated snapshots make a plain startswith too strict for some providers and too loose for others. The point is that a reroute shows up as a line in a report on the day it starts, instead of as a surprise in an invoice.

A completeness flag, because records have holes

Two more habits come from the same GitHub notes.

Record what you could not see. A record with no usage block, or a user with telemetry switched off, is not a zero. GitHub's 5 November note says its metrics API now flags client_telemetry_present and users below the minimum version, because those users "still count as active, but their reports lack detail such as lines of code, feature breakdowns, and model breakdowns". Give your own receipts a complete field and report the share that are not.

Split thinking from visible output. Output tokens include the model's thinking. Google's page labels output price as "including thinking tokens", and OpenAI reports reasoning_tokens separately inside usage. Record both numbers. Then a model swap that quietly makes the model think twice as long shows up as a change in thinking tokens, not just a higher total.

A pinned name has an end date

If you pin a model name in a tool or a policy, the name has a lifetime. GitHub's Copilot changelog says six models are deprecated across all Copilot experiences on 14 December 2026:

Model Deprecation date Suggested alternative
Claude Fable 5 2026-12-14 Claude Fable 5.2
Claude Haiku 4.5 2026-12-14 Claude Haiku 5.5
Gemini 3.8 Flash 2026-12-14 Gemini 4 Hydrogen
Gemini 4 Argon 2026-12-14 Gemini 4 Carbon
Grok 4.6 2026-12-14 Grok 4.7
Kimi K3 2026-12-14 To be announced

Two details matter for cost and policy. On Copilot Business and Enterprise, the suggested alternatives are "automatically enabled" under default model enablement unless an administrator has turned the global default off. And the replacement can come with different terms: Claude Fable 5.2 in Copilot has its policy off by default, and enabling it "constitutes acknowledgment" that Anthropic retains data, including prompts and outputs, to operate safety classifiers. (GitHub says there is a time-bound zero-data-retention exemption for eligible enterprises through the end of the calendar year.)

That is the same lesson from the other side. A model name is a request. What you get, what it costs and what happens to your data can all move while the name stays put.

What to do before and after 1 December

  1. Search for the old names. Run rg -n 'gemini-2.5-(pro|flash)' . across code, config, CI and notebooks. Anything you find is going to be rerouted.
  2. Decide on purpose. For each hit, either move to the named replacement now and test it, or accept the reroute and plan for the January price. Do not leave it to chance.
  3. Add the second column. Log requested and billed for every call, plus complete. If you only change one thing this week, change this.
  4. Test one request on 1 December. Send a single gemini-2.5-pro request, and save the raw response. See what modelVersion says and what the usage block looks like.
  5. Alert on a mismatch. One line in a daily report is enough: count of rows where requested and billed differ.
  6. Put January in the calendar. The 3.8 Flash promotional rates end on 31 December.
  7. Check your pins. If you use GitHub Copilot, list the models your teams selected by name and compare with the 14 December table.

What I could not verify

  • What modelVersion returns after the reroute. I had no way to send a request. The reference describes the field only in general terms.
  • Whether thinking length differs. The dollar figures assume the same token counts. A different model will not write exactly the same amount.
  • Prices above 200,000 tokens. I used the short-context rates. Gemini 2.5 Pro has a higher tier above 200,000 tokens ($2.50 in, $15 out), and I did not compare it with a long-context tier on 3.8 Flash.
  • Other providers' reroutes. I checked Google, Anthropic and GitHub. I did not audit OpenAI's or others' notices.
  • The idea itself. "Log what was requested and what ran" is a habit I recommend, not a measured result. I have no data on how many teams already do it.

Sources

Top comments (0)