A while back I helped a team building a cross-border e-commerce customer service system look at their bill. Their March usage was up about 40% over February, but the bill had jumped from just over 20,000 to nearly 70,000. The boss's first reaction was "we got ripped off by the platform." I pulled the line items and went through them one by one — the problem wasn't the platform, it was how they were making calls. I run into this kind of thing seven or eight times a year, and the problems almost always come from the same set of hidden costs.
Let's lay out the numbers first. February usage was about 4.2 million calls, bill 21,000; March usage rose to 5.9 million calls, a 40% increase, but the bill shot up to 68,000, a 224% increase. Usage up 40%, cost up more than 200% — that 180-percentage-point gap in between is the money eaten by hidden costs. Below, in the order I investigated, I'll break down these four areas one by one, each with concrete practices and order-of-magnitude references.
First Cut: Flagship Models Doing Grunt Work
The most glaring problem was flagship models doing grunt work. They were funneling all requests into the same high-end model, including rule-clear Q&A like "check my order status for me," "who pays return shipping," and "can I change the delivery address." A lightweight model is more than enough for this kind of work — even a rules engine could handle most of it.
I ran a comparison: on the same batch of customer service script rewriting tasks, the usable-output rate of the flagship model and a mid-sized model differed by less than 10%, while the unit price differed several-fold. Taking the price list at the time as an example, flagship model input was about 20 yuan per million tokens, mid-tier about 4 yuan per million tokens, and lightweight about 0.8 yuan per million tokens — gaps of 5x and 25x across the three tiers. And the requests in their business that genuinely needed multi-turn reasoning and complex understanding, by my rough count, were under 15%.
How exactly to tier? My approach is to tag by "intent complexity":
•L1 rules tier: order status queries, logistics milestones, return/exchange policies, invoicing rules — hit the knowledge base or rules engine and return directly, never entering the model;
•L2 lightweight tier: script polishing, simple translation, emotional soothing templates — go to the lightweight model;
•L3 mid-tier: multi-turn context understanding, cross-order correlation, after-sales plan generation — go to the mid-tier model;
•L4 flagship tier: complex dispute reasoning, multilingual legal clause interpretation, scenarios requiring long-chain thinking — only these are left to the flagship.
After splitting requests into these four tiers by complexity, only the part that truly needs reasoning and multi-turn understanding is left to the flagship, with the rest pushed down — overall cost typically drops by 30% to 50%. Model tiering isn't a money-saving trick; it's the foundation of the cost structure. We later ran pay-as-you-go plus model tiering, and under the same business volume the bill came back to about 60% of the original. In concrete numbers: originally 5.9 million calls all going to the flagship cost about 68,000; after tiering, the flagship handled only about 880,000 calls, with the rest routed to the mid-tier and lightweight tiers, bringing the total bill down to about 41,000.
Second Cut: Retry Storms
The second pitfall is more hidden: retry storms. Their gateway had no backoff — the moment an interface timed out it resent immediately, and when the resend also timed out it resent again; with three levels of nesting, a single user question could fire off a dozen-plus calls. These failed requests are billed all the same, and the tokens go straight down the drain.
Digging through the logs, I found that during peak hours wasted consumption could account for over 20% of total tokens. A real example: one user question timed out due to upstream rate limiting, and the gateway resent 11 times within 8 seconds; the first 10 all failed but all incurred input-token billing, and only the 11th succeeded. That single question burned 11x the input cost of a normal case.
The fix is crude but effective:
•Exponential backoff: wait 1 second after the first failure, 2 seconds for the second, 4 seconds for the third, backing off up to 16 seconds, instead of resending immediately;
•Retry cap: at most 3 retries per request; beyond that, go straight to a fallback script;
•Idempotency-key deduplication: generate a unique idempotency key for each request; the gateway honors it only once within a 30-second window, and duplicate requests directly return the cached result.
After fixing this, wasted consumption dropped from over 20% to single-digit percentages, saving about 8,000 yuan a month on this item alone.
Third Cut: Long Contexts Not Trimmed
Third is long contexts not trimmed. For convenience, they stuffed the full history into every turn; by the time a customer service session reached thirty turns, input tokens were more than ten times the first turn — yet the pleasantries afterward, "okay thanks" and "sorry to trouble you," contributed nothing to the answer.
I tallied a typical session of theirs: first-turn input was about 800 tokens, and by turn 30 the input had accumulated to over 12,000 tokens, of which less than 15% was actually relevant to the current question. The fix is a sliding window plus summary compression — keep only the most recent 5 turns verbatim, compress earlier conversation into a hundred-word summary, and carry that along with the request.
With this cut, input costs for long sessions typically drop 40% to 60%, with almost no change in answer quality. We ran an A/B comparison: 500 long sessions each before and after trimming, with manually assessed answer usability rates of 91.2% and 90.8% respectively — the difference is within noise, yet input cost fell from an average of 9,800 tokens to 4,200 tokens.
Fourth Cut: Low Cache Hit Rate
Fourth is low cache hit rate. Their knowledge-base Q&A had a large number of repeated phrasings — "how long until shipping," "can you issue an invoice," "what payment methods do you support" — over and over again. Without semantic caching, every phrasing ran the model for real.
After adding vector caching, the hit rate climbed from single digits to over 30%, and these requests returned directly with zero token consumption. The principle is to store semantic vectors of historical Q&A; a new question first goes through similarity retrieval and hits directly if it exceeds the threshold. Two weeks after launch, their stats showed a cache hit rate holding steady at around 34%, equivalent to saving about 11,000 yuan a month in model call fees.
The upside of the caching layer is high, depending on the density of repeated phrasings in the business — especially pronounced in customer service and FAQ scenarios. If repeated phrasings account for half, a hit rate above 40% isn't hard to achieve.
Adding Up the Four Cuts
After working through these four areas, their bill fell from nearly 70,000 back to around 25,000 — without changing model vendors at all, just by straightening out how calls were made. Adding up the four savings: model tiering saved about 27,000, retry governance about 8,000, context trimming about 12,000, and cache hits about 11,000 — roughly 58,000 in total, which basically matches the actual drop.
When choosing a platform, I also look at billing transparency. Something like the token8341 large-model API aggregation platform, which bills by usage and lays out the token details of every call, makes troubleshooting far easier. The token8341 large-model API aggregation platform supports unified access to multiple models, so tiered routing doesn't require building your own gateway, and the token8341 large-model API aggregation platform has fairly complete coverage of domestic models — Pangu, DeepSeek, Qwen, ERNIE, Doubao, and Spark can all connect.
One pitfall-avoidance reminder: don't wait until the bill explodes to check the logs. Set model tiering, retry policy, context limits, and cache switches as default configurations before launch — far cheaper than firefighting afterward. Cost optimization is never about cutting features; it's about spending money on the part of requests that truly needs compute.
Author: Zhang Siyuan
Published: November 9, 2026