Tiered Scheduling and Budget Planning for Multi-Model LLM Inference Costs
This article presents a practical cost model and tiered scheduling approach for multi-model LLM inference. It separates input, output, and cache-hit costs; estimates capacity using example point prices; maps planning, complex reasoning, main execution, and bulk tasks to different model tiers; and describes routing, caching, batching, prompt compression, monitoring, and budget calibration.
In multi-model inference scenarios, cost differences are often not linear but can span orders of magnitude. If every task is sent to a high-capability model, the budget will be quickly consumed by a large volume of simple requests such as planning, review, summarization, and classification. If all tasks are pushed down to low-cost models, there may be shortcomings in complex reasoning, long-context understanding, and final quality control. A more reasonable approach is to first build an explainable cost model, then perform tiered scheduling based on task value and quality requirements, and finally use monitoring data for continuous calibration.
1. Cost Model: Calculate Input, Output, and Cache Separately
For inference services billed by tokens or points, the pricing usually includes at least an input unit price and an output unit price. Some scenarios also have a cache-hit unit price. The unit task cost can be abstracted as:
C = N_in/1M × p_in + N_out/1M × p_out + N_cache/1M × p_cache + C_retry
Here, N_in, N_out, and N_cache are the numbers of input, output, and cache-hit tokens, respectively; p_in, p_out, and p_cache are the corresponding costs per million tokens; and C_retry is the additional overhead caused by retries, failures, and context expansion. If the cache hit rate is h, the effective input cost can be written as:
p_in_eff = (1-h) × p_in + h × p_cache
This means caching is not a nice-to-have; it directly affects the cost of the main execution tier. When the cache hit rate rises from 0 to a high level, input cost may fall to a small fraction of the normal input cost. However, if the hit rate is unstable, budget estimates must retain a safety margin.
2. Example Parameters and Capacity Estimation
To illustrate the method, the following example point prices per million tokens show the differences. These values are for method illustration only and do not represent official prices from any vendor:
| Model tier | Input price | Output price | Cache-hit price |
|---|---|---|---|
| High-end model | 80000 | 400000 | — |
| Mid-tier model | 32000 | 112000 | — |
| Low-cost model | 4000 | 8000 | 80 |
| Ultra-low-cost model | 2000 | 2000 | — |
Under the assumptions of 80% input share, 20% output share, and no cache for now, the blended cost per million tokens is:
c_mix = 0.8 × p_in + 0.2 × p_out
If a quota window contains Q points, the approximate token volume that can be processed is:
T = Q / c_mix × 1M
For example, with Q=60000 points, the high-end model can process about 417,000 tokens, the mid-tier model about 1.25 million, the low-cost model about 12.5 million, and the ultra-low-cost model about 30 million. The output cost of the high-end model can be about 200 times that of the ultra-low-cost model. This ratio determines the scheduling strategy: high-cost models should handle few but critical requests, while low-cost models should handle many standard requests.
3. Tiered Scheduling: Assign Different Work to Different Models
It is recommended to divide tasks into four tiers:
- Planning and review tier: use the high-end model. It handles requirement decomposition, solution planning, complex code review, and final quality gates. Request volume is low, but the cost of errors is high, making this suitable for a high-cost model.
- Complex reasoning tier: use the mid-tier model. It handles multi-step reasoning, long-document understanding, complex question answering, and medium-difficulty generation. Cost is controllable, and quality is close to that of the high-end model.
- Main execution tier: use the low-cost model. It handles routine generation, code completion, structured extraction, customer service replies, and batch rewriting. Request volume is high, so cache and prompt length need to be optimized.
- Bulk simple task tier: use the ultra-low-cost model. It handles classification, tagging, deduplication, summarization, format conversion, and offline batch processing. It is not latency-sensitive and can be queued for execution.
The routing layer should dynamically select models based on task type, context length, output length, SLA, budget balance, and quality feedback. Illustrative pseudocode is as follows:
function route(task):if task.type in ["plan", "final_review", "high_risk"]:return high_modelif task.complexity == "high" or task.context_tokens > threshold:return mid_modelif task.type in ["bulk_classify", "offline_clean", "simple_extract"]:return ultra_low_modelreturn low_modelfunction estimate_cost(task, model):input_cost = task.input_tokens / 1M * model.p_inoutput_cost = task.output_tokens / 1M * model.p_outcache_cost = task.cache_tokens / 1M * model.p_cachereturn input_cost + output_cost + cache_costfunction dispatch(task):model = route(task)if estimate_cost(task, model) > task.budget:model = downgrade(model)return call(model, task)
4. Caching, Batching, and Prompt Compression
For the main execution tier using low-cost models, three things should be prioritized. First, stabilize prefixes and system prompts to improve the cache hit rate. Second, place offline-capable tasks into a batch queue to shift peak load. Third, compress context to keep only the necessary history and retrieved snippets. After a cache hit, input cost may account for only a small fraction of the normal input cost, but the hit rate and invalidation reasons must be monitored. Batching can improve throughput, but a maximum wait time and a retry limit must be set to avoid long-tail tasks draining the window budget.
5. Monitoring and Continuous Calibration
After launch, monitor per-task cost, blended cost per million tokens, cache hit rate, output length distribution, retry rate, downgrade rate, quality sample pass rate, and budget burn rate. Use billing records to fit a linear model for input and output prices. If the goodness of fit is high and residuals are small, the cost model is explainable. If deviations grow, check for context expansion, cache invalidation, retry storms, or routing misclassification. Budget alerts should be set on both 5-hour and weekly windows to prevent short bursts from exhausting the quota.
6. Boundaries and Conclusion
Tiered scheduling is not simply “expensive models think and cheap models work.” It is cost engineering with quality gates as a prerequisite: high-cost models handle planning and final review, mid-tier models handle complex reasoning, low-cost models handle main execution, and ultra-low-cost models handle bulk simple tasks. All example parameters are only for illustrating the method. Actual unit prices, cache rules, and quota policies may change, and actual bills and monitoring data should be used as the basis. Through cost formulas, capacity estimation, routing strategies, and continuous calibration, teams can establish a measurable and adjustable balance among quality, latency, and budget.
