LLM Token Cost Deep Dive: Optimizing AI Spend with Tiered Model Routing

    This article examines the nonlinear relationship between token consumption and billing weights across different LLM tiers. Using fitted estimates from real usage records, it quantifies credit consumption rates, simulates token throughput under common quotas, and proposes a tiered dispatch strategy—combined with caching and context compression—to help teams govern AI costs in Agent and large-scale semantic processing pipelines.

    Introduction: Cost Distortion and Strategy Gaps in Token-Based Billing

    Since large language models began moving into production environments, discussions around “cost per call” have remained a core engineering concern. Most development teams, when making initial technology choices, tend to focus on benchmark score differences between models while overlooking a key hidden variable: the nonlinear relationship between actual token consumption rates and billing weights. Put simply, different models have different input/output token ratios, cache hit rates, and credit consumption rates for the same task. As a result, models that look similar in a performance comparison table can produce bills that differ by two orders of magnitude.

    Based on recent fitting and back-calculation from actual SenseTime Token Plan usage records, we found that without cache hits, a reasoning-grade model’s output credit consumption rate reached 400,000 credits per million tokens, while a lightweight Flash model’s output rate was only 2,000 credits per million tokens—a 200x difference. This number far exceeds the commonly assumed “cost gap,” so it needs to be systematically analyzed from three dimensions: billing mechanisms, task characteristics, and scheduling strategy.

    1. Back-Calculation from Real Usage: How Large Are Token Consumption Rate Differences?

    1.1 Methodology: Back-Calculation Based on Real Usage Records

    Because the internal pricing tables of model services are not directly accessible, this analysis uses a practical indirect estimation path. The method aligns the total credit consumption of a Token Plan account over a period with the input and output token counts recorded in call logs. By building a linear regression model with total credit consumption as the dependent variable and input tokens, output tokens, and cached tokens as three independent variables, we can back-calculate the marginal consumption rate for each token type.

    For this test, we selected four representative models covering different positioning:

    • Reasoning-grade high-precision model: suitable for complex reasoning tasks, with the highest credit consumption rate;
    • General-purpose balanced model: a trade-off between cost and reasoning capability;
    • High-efficiency execution model: suitable for high-frequency tasks such as document extraction and format conversion, with very low cost;
    • Lightweight Flash model: optimized for simple tasks, focusing on throughput and cost-effectiveness.

    1.2 Back-Calculation Results: The Real Gap in Credit Consumption Rates

    According to the fitting results, the credit consumption rates are as follows (unit: credits per million tokens):

    • Reasoning-grade high-precision model: input 80,000; output 400,000;
    • General-purpose balanced model: input 32,000; output 112,000;
    • High-efficiency execution model: input 4,000; output 8,000;
    • Lightweight Flash model: input and output both 2,000.

    This directly reveals an important pattern: output tokens usually carry a much higher billing weight than input tokens. In the reasoning-grade model, the output token unit price is 5x that of input; in Flash-level models, the two tend to converge. This means that for applications centered on structured generation, model choice directly determines the cost magnitude—not call count alone.

    1.3 Cache Hits as a Cost Inflection Point

    In addition, measured data from the high-efficiency execution model shows that after a cache hit, token serving cost is about 80 credits per million tokens—only 2% of the regular input cost. This number has strong engineering significance: reasonable context reuse strategies (such as session-level caching, prefix caching, and reuse of similar templates) can effectively avoid the cost overhead caused by repeated computation.

    2. Cost Quantification Simulation: Token Throughput Estimates Based on Real Quotas

    2.1 Simulation Scenario Setup

    To translate the credit consumption rate data above into perceivable engineering metrics, we simulate using common Token Plan quotas. Assume a plan of 60,000 credits per 5 hours (a short-term high-concurrency scenario) and 600,000 credits per week (a steady periodic scenario), and estimate the total token volume each model can support under a typical Agent workflow token distribution assumption (80% input tokens + 20% output tokens, excluding cache hits for now).

    2.2 Results: Throughput Differences Under the Same Quota

    • Reasoning-grade high-precision model: approximately 417K tokens within 60,000 credits;
    • General-purpose balanced model: approximately 1.25M tokens;
    • High-efficiency execution model: approximately 12.5M tokens;
    • Lightweight Flash model: approximately 30M tokens.

    Note that these figures are static estimates under the assumption of a constant 4:1 input/output ratio. In real tasks, this ratio changes dynamically with the application scenario. Even so, it is enough to illustrate a widely overlooked issue: when a project team switches from a reasoning-grade model to an execution-grade model, token throughput can increase by about 30x. In scenarios with low latency requirements, such as batch processing, scheduled jobs, and data pipelines, this gap directly translates into actual reductions in GPU resources and overhead.

    3. Tiered Scheduling: A Cost Governance Framework from Model Selection to Agent Architecture

    Based on the measured data above, we propose a reusable development practice: a tiered token scheduling strategy. Its core idea can be summarized as: high-cost models do the “thinking,” low-cost models do the “work.”

    • Tier 1: Planning layer (reasoning-grade high-precision model)
      Uses include task decomposition, solution generation, code review, boundary-condition judgment, and final output validation. This layer has the fewest calls but requires strong model logic depth. It is suitable for a high-unit-price model, and cost can be controlled by keeping call frequency reasonable.

    • Tier 2: Reasoning layer (general-purpose balanced model)
      Uses include structured logical deduction, multi-step reasoning, and medium-complexity code generation. This layer has medium quality and cost and is suitable as a daily reasoning fallback model.

    • Tier 3: Execution layer (high-efficiency execution model)
      Uses include batch text processing, summary extraction, format cleaning, API response parsing, JSON splitting, and other repetitive labor-intensive tasks. This layer should account for more than 60% of system token consumption, while per-call overhead is very low.

    • Tier 4: Batch processing layer (lightweight Flash model)
      Suitable for large numbers of semantically similar and logically simple tasks, such as keyword extraction, label classification, and log attribution. It trades high throughput for excellent cost advantages.

    3.2 Scheduling Reference for Engineering Implementation

    In implementation, a simple “cost routing” mechanism can be set at the Agent call layer. The illustrative pseudocode is as follows:

    1. def dispatch_task(task):
    2. if task.cognitive_level == "planning" or task.requires_final_review:
    3. return call_high_precision_model(task, max_tokens=4096)
    4. elif task.complexity_score > 0.5:
    5. return call_balanced_model(task)
    6. elif task.batch_task_flag:
    7. return call_flash_model(task, cache=True)
    8. else:
    9. return call_execution_model(task)

    By dynamically adjusting the model allocation ratio for each layer through a configuration center, and having the monitoring module record the token consumption distribution of each layer, enterprises can form an internal model-cost SLA and closed-loop budget governance system.

    4. Caching and Context Compression: Two More Levers for Lowering Costs

    Beyond tiered model scheduling, another proven cost optimization path is context caching and context compression.

    In the back-calculation, we found that when a model enables context caching, the cost of cache-hit tokens is only 2% of the regular input cost. This conclusion means that building a high-hit-rate caching strategy should become core infrastructure for reuse across multiple tasks. For example, in Agent applications, system prompts, tool definitions, and historical conversation summaries can be fixed as a common prefix and reused in the same context on each call, significantly reducing repeated token costs.

    In addition, for long-text processing scenarios, it is recommended to perform context compression preprocessing before model calls, extracting key information into a structured summary before it enters the prompt template. This can effectively reduce the linear growth pressure of input tokens.

    5. Conclusion

    Model capability advances continue to expand what AI applications can achieve, but the extreme imbalance in cost distribution is often underestimated by teams. Through fitting and back-calculation based on measured data, we can understand the real structure of token consumption more clearly and comprehensively, and incorporate cost constraints, latency constraints, and performance goals into the decision model at the design stage. A tiered scheduling strategy is not a rejection of any model category; rather, it is a quantified implementation of the infrastructure engineering logic that “complex tasks are handled by strong models, and simple tasks are executed by lightweight models.”

    For teams building AI applications, Agent systems, or large-scale semantic processing pipelines, now is the right time to introduce cost routing and token budget governance. Only by connecting model performance with per-token productivity can users achieve sustainable optimal intelligence within a solid cost framework.