10 min read

Same Model, 230x the Price: How Provider Routing Quietly Inflates Your Coding Agent Bill

Same Model, 230x the Price: How Provider Routing Quietly Inflates Your Coding Agent Bill

Written with AI assistance. Figures without a traceable source were cut before publishing.

The same piece is posted as a thread on GitHub — that copy has a reply box under it, and this one does not.

“Just pick a cheap model and move on.” That’s the standard advice for anyone building a coding agent on a budget, and it sounds reasonable until you look at what you actually paid, because on OpenRouter, selecting Alibaba as the inference provider for Qwen 3 Coder can push output cost to $60 per million tokens — for the same model that costs a fraction of that elsewhere. The model name on the invoice is identical. The bill is not. What actually sets your cost is two things you probably never looked at: which provider the aggregator routed you to, and how many tokens the tokenizer decided your prompt was worth.

Where the “just pick a cheap model” advice actually holds

I want to be fair to the advice, because it isn’t nonsense. It comes from a real place, and there’s a narrow set of conditions where picking by sticker price works exactly as advertised.

Start with a single provider and a short context, and the price table really does tell you what you’ll pay. In one OpenClaw test framework, DeepSeek V3.2 came in at $0.26 per million input tokens and $0.38 output, with a 163K context — the cheapest option in the comparison, and the one flagged for structured output. MiniMax M2.7 sat at $0.30 in and $1.20 out with a 204.8K context, aimed at coding, reasoning, multi-turn dialogue, and agent workflows, while Qwen3.5 Plus stretched to a 1M context with input between $0.12 and $0.57 and output between $0.69 and $3.44, which makes the two models differ sharply in both context window and pricing structure across the comparison.

Those numbers are worth something precisely because they came out of the same test harness. Same framework, same measurement method, same day — so the comparison is honest, and if you’re running short, frequent API calls against one provider and nobody is rerouting you behind the scenes, then yes, the cheap model on the price sheet is the cheap model on your bill.

There’s a second case where sticker price genuinely decides the winner — short-context, high-frequency traffic — because Claude Haiku 5.5 has a lower official short-context input price than GLM 5.3 Flash, and in testing it produced visibly faster generation. If your agent fires thousands of small calls a day, that’s the comparison that matters, and the price sheet gets it right.

So the advice holds under three conditions at once: one provider, short context, unchanged tokenizer. Step outside any one of them and the price sheet stops describing your bill. Most people building a coding agent today step outside all three on day one.

The step that breaks: provider routing on an aggregator

Here’s the part the price sheet never shows you, which is that on an aggregator like OpenRouter, one model name sits in front of several inference providers, and the unit price is decided by whichever one you get routed to. The model didn’t change. The endpoint did.

The concrete fix circulating in July 2025 was blunt: go into OpenRouter and remove Alibaba as an inference provider for Qwen 3 Coder, because output could hit $60 per million tokens. A second record from the same period repeats the warning almost word for word — same model, same provider, same $60 output ceiling. Two independent posts landing on the same number is the kind of thing you should take seriously.

It’s not a rounding error; it’s a different pricing universe behind the same label.

And routing doesn’t only move price. It moves quality at the same time, which is what makes the choice genuinely hard. Kimi K2 was reported to produce better code and features than Qwen 3 Coder at roughly half the cost. Cheaper and better sounds like a free lunch — until you put it in an editor. In VSCode, Kimi K2 had a tool-calling problem: it would promise to make a call and then not make it, the same failure mode people had already seen with Gemini 2.5 Pro. Qwen 3 Coder’s tool calling, by contrast, was described as close to flawless. So the expensive route was also the one that could actually finish the job inside an agent loop.

If you’re optimizing purely on output price, you can save money and lose the task.

Context length is the second place the bill moves without the model changing. GLM 5.3 Flash uses flat token pricing, which means it avoids the long-context premium that kicks in on Haiku — so above 100K tokens of input, the cost advantage flips to GLM. Within a single model you can see the same instability: Qwen3.5 Plus’s output price ranges from $0.69 to $3.44 per million tokens, a fivefold spread inside one name.

The third lever is the tokenizer, and it’s the sneakiest because it never touches the advertised price. Opus 4.7 is listed at $5.00 per million input tokens, but a 35% tokenizer increase pushes the effective rate to about $6.75. That extra 35% doesn’t appear as a line item. It just shows up as more tokens counted against you, and unless you’re comparing usage numbers rather than price sheets, you’ll never see it happen.

What the bill looks like once you count all three

Stack provider routing, context pricing, and tokenizer inflation together and the monthly gap stops looking like a price difference and starts looking like a different product category.

One user’s estimate for three agents doing email, calendar, and research work: DeepSeek v4 Flash at roughly $3–5 per month, against Opus 4.7 at roughly $200–260 per month. That’s not a marginal difference. That’s two orders of magnitude, and the same user’s assessment of the quality gap between them was that it was small. The same report also notes that Opus 4.7’s effective input price rose from $5.00 to about $6.75 per million tokens once a 35% tokenizer increase is factored in, which pushes the expensive side of that comparison even further out. You can argue about how much you trust a single user’s monthly estimate, but the direction is hard to dismiss: the expensive configuration wasn’t buying a proportionally better result.

Cheap models also don’t automatically lose on agent work — but you have to be precise about which agent work. In automation-heavy tasks, GLM 5.3 Flash outperformed Claude Haiku 5.5, which was the standout result in that benchmark set. Read that carefully: it’s a benchmark conclusion, not a production bill. Benchmarks tell you what a model can do under test conditions; they don’t tell you what your invoice will look like after a month of real traffic. Both facts can be true at once, and conflating them is how people end up surprised at the end of the month.

Then there’s a fourth category that has nothing to do with unit price and everything to do with whether the model is usable at all: quota policy and bans. Zhipu was reported to be banning agent users on GLM-5.1 coding plans, which affects real-world availability regardless of what the price sheet says. I’d flag this one as a single-source signal at 3★ strength — treat it as something to verify rather than a settled fact.

But the category matters: a model you can’t call is infinitely expensive per successful task.

How to read a model card when the model name isn’t the price

If the model name doesn’t determine your bill, then the model name shouldn’t be the first field you check. Here’s the order I’d use instead.

Start with the provider list, not the model. On an aggregator, one model has multiple endpoints at different prices, and the output side is where the damage shows up — that $60 per million figure is an output price, not an input one. The concrete action is small and specific: open the model page, look at who’s serving it, and remove the provider you don’t want paying.

That single change is the difference between a reasonable month and a shocking one.

Second field: context length and pricing model. Flat versus tiered pricing flips the winner above 100K tokens. If your prompts are long, GLM 5.3 Flash’s flat pricing is the structure you want; if your calls are short and frequent, Haiku 5.5’s short-context price is the one to beat.

Same decision, opposite answers, depending on a number most people never check.

Third field: the tokenizer. The only reliable way to compare here is to run the same prompt through both models and compare the usage token counts they return — not the advertised rates. Opus 4.7’s $5.00 to $6.75 jump is the whole lesson in one line: a 35% tokenizer increase is a 35% price increase that never appears on the price sheet.

Fourth field: availability. Quota policy, ban history, rate limits — none of it shows up in a price table, all of it shows up in your bill. The Zhipu ban report is the example to keep in mind, with the caveat that it’s single-source and needs checking. A rate limit at the wrong moment doesn’t cost you tokens; it costs you the task.

The uncomfortable conclusion: the aggregator’s convenience is the price

The aggregator’s pitch is that it saves you the integration work. That’s true. What it also does is take the routing decision out of your hands and hand you the bill at the end of the month, after the choices have already been made for you. The same Qwen 3 Coder can cost $60 per million output tokens or far less depending on which provider you land on — and that spread reflects routing, not capability.

Direct connections trade that convenience for determinism. You manage multiple keys, quotas, and rate limits yourself, but the unit price is the one you signed up for. What direct connection does not fix is the tokenizer: Opus 4.7’s 35% inflation exists whether you go through an aggregator or straight to the source. Direct solves “who am I routed to.” It does not solve “how are my tokens counted.” Those are two separate problems, and most cost discussions collapse them into one.

So the first column of your selection checklist shouldn’t be the model name. It should be three things: provider, context pricing model, and tokenizer. Short and frequent calls point you at official short-context pricing like Haiku 5.5. Long prompts point you at flat pricing like GLM 5.3 Flash. Cost-sensitive high-frequency agents point you at the measured monthly bill, where DeepSeek v4 Flash reportedly lands around $3–5 a month for a three-agent setup. And if you’re on an aggregator, check your provider list before you check your model list — because the $60 output line is sitting there waiting for anyone who doesn’t.

Also readable on Telegraph.


Read next

All 84 write-ups

The 32 figures in this piece — each with the sentence it came from — are in the figures table, alongside 1028 more, as JSON and CSV.

Topics: Token Optimization · Cost Savings · AI Agents


Part of llm-api-pricing — field notes on AI coding agents.

Did this save you an afternoon? A star on the repository is the whole ask — it is what puts these in front of the next person looking; the data is CC BY and does not require starring.

One thing this piece could not settle: which provider OpenRouter actually routed you to on your last Qwen 3 Coder call — reply with the provider name if you know it, or reply saying “no idea. The reply box is on the thread copy of this piece.

Want a figure that is not in here yet? Say which metric, which provider, which unit — in one line. One required field, and the page you came from is already filled in. Got a better number? Open an issue — that form knows which write-up you came from too; corrections and counter-data are the point.