How to Reduce LLM API Costs Through Tiered Routing After Price Hikes
With recent price increases for flagship LLM APIs, relying on a single model for all tasks is no longer cost-effective. This article explores a three-tier model routing strategy to optimize costs, covering the use of low-cost models for bulk routine tasks, lightweight models for intermediate agent workflows, and reserving flagship models strictly for complex scenarios. It also highlights the importance of evaluating cache hit rates and off-peak scheduling before executing any migration plan.
What Price Hikes Changed: From “One Model for All” to “Tiered Routing”
For a long time, mainstream LLM API prices were low enough that many teams defaulted to a “single flagship model from start to finish” approach. Whether it was organizing documents, refactoring code, or handling complex multi-step agent tasks, everything was routed to the same model. This wasn’t a major issue during the low-price era, as the savings from optimized routing didn’t justify the engineering and maintenance costs of building the routing logic.
However, once flagship model prices increased, the economics fundamentally shifted. Using a common tiered pricing structure from a cloud platform as an example (for illustrative purposes):
- Lightweight models: During off-peak hours, input costs about $1.5 and output about $4.5 per million tokens; during peak hours, this doubles to $3 and $9.
- Flagship models: During off-peak hours, input is about $4.5 and output about $13.5; during peak hours, input is $9 and output is $27.
- Cached input remains extremely cheap, dropping to mere cents per million tokens.
These figures reveal two key facts: First, the price difference for the same model between off-peak and peak hours can reach 100%. Second, the output price gap between lightweight and flagship models widens significantly during peak hours. This means that if a task doesn’t require flagship-level intelligence, insisting on using the flagship model could cost several times more than a reasonable alternative.
Therefore, what price hikes truly changed is not “whether to use LLMs,” but rather that model routing has shifted from an “optional feature” to an “economic necessity.”
Core Strategy: The 3-Tier Routing Model
Instead of searching for a single, all-encompassing replacement for flagship models, I recommend dividing tasks into three tiers based on difficulty and characteristics:
Tier 1: Low-Cost Models for Bulk Routine Tasks
Suitable task types include:
- Document organization, summarization, and format conversion;
- Code commenting, simple refactoring, and writing scripts;
- Web demos and bulk information extraction;
- Simple, predictable Agent workflows.
Many low-cost models are available today, generally priced between $1–$3 for input and $2–$6 for output per million tokens. Some even support long context, multimodal input, tool calling, and structured output. While the capability ceiling of these models is indeed lower than that of flagship models, the judgment criteria should be total cost, not single-call accuracy:
If a task’s capability is 10% lower, as long as the total cost of retrying after a failure is still lower than the cost of a single successful call to a flagship model, it is more cost-effective in a production environment.
Let’s do the math: Assume a flagship model call costs $9, while a lightweight model call costs $1 but has a 10% lower success rate. The expected number of calls for the lightweight model is about 1.11, bringing the expected cost to about $1.11—still only about an eighth of the flagship model solution. You should only fall back to a higher-tier model when the failure rate increases significantly, or when retries cause high downstream debugging costs.
Tier 2: Lightweight Fast Models for Intermediate Agent Tasks
Medium-intensity coding tasks and multi-step tool calling are well-suited for lightweight flagship models positioned as “fast + cheap.” These models are often pushed to the market by major vendors at very low prices or with free quotas to build ecosystems, commonly taking forms like:
- Pay-as-you-go APIs with low unit pricing;
- Monthly token subscriptions for coding agents;
- Time-limited free open quotas.
The significance of this tier isn’t being “smarter than a flagship,” but rather that intermediate tasks shouldn’t default to calling the most expensive model. Previously, because flagships were cheap, optimizing them wasn’t a priority; post-hike, a simple routing decision can create a massive cost differential.
A practical routing logic example looks like this:
def route(task):if task.complexity == "high" or task.is_production_critical:return FLAGSHIP_MODELif task.requires_multi_step_agent:return LIGHT_FLAGSHIP_MODELreturn BUDGET_MODEL # Default to low-cost model for routine tasks
Complexity assessment can be based on heuristic rules (task description length, number of files involved, cross-module modifications), or by letting the low-cost model try first and automatically upgrading on failure—a “downgrade first, upgrade on failure” reverse routing approach.
Tier 3: Flagship Models Reserved for Truly Difficult Problems
Architecture design, complex debugging, high-difficulty reasoning, and critical production links carry high failure costs, making it reasonable to retain flagship models for these. The essence of tiering is concentrating the flagship model budget where it truly generates value.
Don’t Rush to Migrate: Leverage Caching and Off-Peak Scheduling First
Before swapping out models, two things are worth doing first, as they might keep your current solution cost-effective:
1. Cache Hit Rate. If you use AI programming tools like Harness with highly repetitive project contexts, your cache hit rate is likely high. The price of cached portions is usually one to two orders of magnitude lower than non-cached portions. Even if the flagship model price increases, the actual bill increase might be far smaller than the nominal price hike. Pull your recent monthly billing data, check the cache hit ratio, and then decide whether to migrate.
2. Off-Peak Scheduling. In most cloud providers’ tiered pricing, off-peak hours cost about half of peak hours. For tasks that don’t require real-time processing—like bulk document processing, data cleaning, and offline evaluation—scheduling them to run at night directly halves the cost. This is often easier to implement than折腾 a migration.
Implementation Checklist
- Inventory current calls: Categorize by task type and estimate token volume and cache hit rate for each category;
- Establish tiered routing: Route routine tasks to low-cost models, Agent tasks to lightweight models, and use flagship models only as a fallback;
- Design failure retry and upgrade mechanisms: Automatically fall back to higher-tier models upon low-cost model failures, and record success rates for each tier;
- Utilize time-based pricing differences: Schedule delay-tolerant tasks uniformly during off-peak hours;
- Continuously monitor billing: Break down costs by tier to verify the actual ROI of the routing strategy.
Conclusion
The value of the price hike event is a reminder: model selection itself is an engineering decision that can be optimized. Rather than looking for a single “alternative,” it’s better to establish a tiered routing system based on task difficulty—low-cost models for volume, lightweight models for intermediate difficulty, flagship models as a fallback—supplemented by cache optimization and off-peak scheduling. This combination can compress daily AI costs to a fraction of the original in most scenarios, while keeping quality loss within an acceptable range.
