One Premise: Not All Requests Deserve a Flagship Model
We're a five-person team with three types of AI capabilities built into our product: customer service intent classification, product description rewriting, and complex reasoning Q&A for user questions. In our first month after launch, we took the easy way out and sent all requests to the same flagship model. When we checked the bill at the end of the month, we discovered that roughly 80% of our tokens were spent on low-difficulty tasks like "classification" and "rewriting."
This wasn't the model's fault—we simply hadn't done task tiering. With the same team and the same features, after adjusting our strategy, our monthly inference cost dropped to about 30% of the original, while users noticed virtually no difference. This article breaks down our cost accounting process and methodology.
Doing the Math: How Big Is the Unit Cost Difference
Let's start with a vendor-agnostic framework that looks only at orders of magnitude. Suppose the flagship model's inference price per million tokens is 1 unit; then low-cost models (slim or distilled versions in the same family) typically run one-tenth to one-third of that. Note that this ratio varies significantly between vendors, so always check the official pricing page before integrating—don't rely on secondhand information.
Here's a rough calculation (illustrative numbers, not real prices):
| Scenario | Daily Requests | Tokens per Request | Monthly Cost with Flagship (relative) | After Switching to Low-Cost Model |
|---|---|---|---|---|
| Intent classification | 20,000 | 800 | 100 | 10–30 |
| Copy rewriting | 5,000 | 1,500 | 30 | 3–9 |
| Complex reasoning Q&A | 800 | 3,000 | 100 | 100 (no switch) |
The conclusion is intuitive: the two lightweight tasks, which account for 94% of total requests, can see costs cut by 70–90%; while scenarios that genuinely require reasoning ability stay untouched. The key to saving money isn't "switching to a cheaper model" but "only switching where cheap is good enough."
How to Judge Whether "Cheap Is Good Enough"
We use three questions internally for tiering, without relying on any third-party leaderboards:
1. Is the output structured or open-ended? For tasks like classification, extraction, and tagging, the output space is small, and low-cost models' accuracy is usually already close to flagship levels; the gap only widens with open-ended generation (long-form content, complex reasoning).
2. How costly is a single mistake? A misrouted customer service classification can fall back to a scripted response; a legal or medical reasoning error could be an incident. For high-stakes scenarios, it's worth spending more.
3. Is there a cheap way to validate? If you can quickly verify output with rules or a small model (e.g., JSON format validation, confidence thresholds), then a low-cost model plus a validation layer is often more reliable than a naked flagship model.
By these criteria, the applicable boundaries for low-cost models like DeepSeek are actually quite clear:
| Dimension | Suited for Low-Cost Models | Recommend Flagship Models |
|---|---|---|
| Task type | Classification, rewriting, summarization, format conversion | Multi-step reasoning, code architecture design, complex writing |
| Output form | Short, structured | Long, open-ended |
| Cost per error | Low, with fallbacks available | High, hard to recover from |
| Request share | Large volume, high frequency | Small number of critical requests |
| Latency sensitivity | High (cheaper models are often faster too) | Longer wait times acceptable |
The Switching Cost Problem: Why You Need a Unified Gateway
After doing the math, what actually held us back wasn't "whether to switch models" but "how painful the switch would be." Our codebase was littered with SDK calls to various vendors—switching a model meant changing the call layer, authentication, parameter formats, and retesting everything. Our first switching attempt took three days just for the adaptation work.
Later, we consolidated all model calls into a unified gateway, and things changed completely:
- Switching models = changing one line of config. The model name serves as a routing parameter; business code stays untouched. Want to go from flagship to a low-cost version? Just change the config after tests pass—three days becomes thirty minutes.
- Route-based isolation for gradual rollouts. We first routed 10% of traffic to the low-cost model, compared output quality, then ramped up once satisfied. This kind of experiment is nearly impossible without a gateway.
- One billing dashboard shows the full picture. Previously, cost attribution meant manually piecing together bills from multiple vendors; with the gateway logging everything centrally, which feature spent how much was clear at a glance—giving task tiering a data foundation.
- Built-in fallback paths. When the low-cost model times out or gets rate-limited, traffic routes automatically to a backup model, invisible to users.
In other words, the money saved by task tiering is a one-time gain, while the unified gateway turns "consistently choosing the right model" into a low-cost operation—today a cheap model is good enough, tomorrow requirements escalate, and switching back doesn't hurt.
Before and After: What We Actually Saved
Changes from before and after the adjustment (our team's relative numbers, for reference only):
| Metric | Before (All Flagship) | After (Tiered Routing) |
|---|---|---|
| Monthly inference cost | 100 | ~30 |
| Classification task P95 latency | Baseline | Reduced by about half |
| Engineer hours to switch models | ~3 person-days | ~0.5 hours |
| Cost attribution effort | Half a day of manual reconciliation monthly | Real-time visibility |
An unexpected bonus: with lightweight tasks running on low-cost models, responses got faster, and the customer service classification experience actually improved—cheap and good UX aren't always at odds.
A Few Lessons Learned
- Re-review tiering regularly. Cheap models are getting better; tasks that require flagship today may be downgradable in six months. Conversely, if requirements change, don't be afraid to upgrade back.
- Keep quality monitoring in place. We do sampled manual reviews of low-cost model output—about 100 items per week. Extremely cheap, but it catches quality degradation.
- Don't skimp on prompts. After downgrading models, the impact of prompt quality on results gets amplified. It's worth putting serious effort into prompt tuning.
Final Thoughts
For independent developers and small teams, the right approach to cost optimization isn't hunting everywhere for cheap models—it's building the capability for "task tiering + switching at any time." The former saves you on unit price; the latter saves you engineering time on every re-selection—which is often the more expensive one.
If you want to start with model tiered routing, you can begin with a unified gateway—register and get started right away: https://api.thistoken.ai/register
---
Ready to try it yourself? Sign up at https://api.thistoken.ai/register to get your API key and start building.
Хотите попробовать Token.AI?
Создайте API Key уровня проекта, включите каналы в консоли и настройте маршрутизацию, бюджеты и журналы аудита.
注册 ThisToken.AI 并获取 API Key