Hybrid LLM Routing: Optimizing Costs with Measured Token Usage

    Measured token usage can reveal how model selection affects the capacity of credit-based LLM plans. This article explains how usage records were used to estimate credit consumption across four model tiers, compares their capacity under fixed quotas, and outlines a hybrid routing architecture that reserves expensive models for planning while assigning routine execution to lower-cost alternatives.

    Introduction

    Deploying large language models (LLMs) in production creates a familiar trade-off: stronger reasoning capabilities often come with higher token costs, while inexpensive, lightweight models may struggle with complex logic or produce unreliable results. Credit-based token plans add another operational challenge: developers must understand how quickly different models consume credits and design routing policies that balance cost and capability.

    Using records from a real deployment, this article examines how linear regression can estimate credit consumption across model tiers. Those estimates then inform a hybrid routing strategy: use expensive models to plan and lower-cost models to execute.

    1. Estimating Token Costs from Measured Usage

    To evaluate the cost of different LLMs, we analyzed usage under a cloud provider’s credit-based token plan. After accounting for systematic measurement errors, we extracted application call records and fitted a multiple linear regression model.

    The independent variables were input tokens, output tokens, and cache-hit tokens. The dependent variable was the number of credits consumed.

    The reported fit was exceptionally close: R² = 1.0, with residuals approaching zero. Within the observed records, this indicated that a linear equation could accurately reproduce the platform’s billing behavior.

    The fitted results were grouped into four model tiers, with substantial differences in credit consumption:

    1. Heavyweight planning models: Representative of leading large-parameter models, these had high input costs and particularly expensive output tokens. Their output credit consumption was approximately 200 times that of lightweight models.
    2. Complex reasoning models: Representative of extensively optimized mid-sized models, their input and output credit consumption was approximately one-half to one-third that of heavyweight models. They were suited to tasks requiring more involved logical reasoning.
    3. Cost-efficient execution models: Representative of speed-optimized Flash-class models, their consumption was a small fraction of heavyweight model costs. Notably, cache-hit input tokens cost only about 2% of the normal input rate.
    4. Lightweight processing models: Representative of very small or distilled Lite-class models, these had very low input and output costs, making them well suited to straightforward batch workloads.

    These tiers describe the models evaluated in the usage records, rather than universal pricing or capability categories.

    2. How Cost Differences Affect Capacity Under Fixed Quotas

    What do these differences mean for application capacity?

    Assume a plan provides 60,000 credits per five-hour window and 600,000 credits per week. Also assume a typical workload consists of 80% input tokens and 20% output tokens, excluding cache savings for this comparison.

    Using the estimated consumption rates, the same five-hour quota would support the following approximate volumes:

    Model tier Tokens supported per five-hour window
    Heavyweight planning 417,000
    Complex reasoning 1.25 million
    Cost-efficient execution 12.5 million
    Lightweight processing 30 million

    Using a heavyweight model for every request would quickly exhaust the quota and limit interaction volume. Complex reasoning models offer more room, but capacity remains constrained.

    Cost-efficient execution models increase the quota-supported volume to approximately 12.5 million tokens, providing substantially more headroom for routine application requests. Lightweight models raise that figure to around 30 million tokens, making them attractive for simple workloads such as classification and data cleaning.

    These figures describe token capacity under the credit quota, not measured serving throughput or concurrency.

    The gap between approximately 417,000 and 30 million tokens exceeds 70 times. Under a fixed budget, matching tasks to suitable models can therefore have a decisive effect on the volume of work an application can support.

    3. A Hybrid Architecture: Expensive Planning, Low-Cost Execution

    Based on these cost and capability differences, we designed and implemented a multi-model routing architecture. Its central principle is to concentrate expensive inference on tasks where it adds the most value, while delegating routine execution to cheaper models.

    3.1 Intent Recognition and Request Routing

    When a request reaches the application gateway, a lightweight model or rule-based router first identifies its intent.

    The router assigns the request to a model execution queue based on:

    • Task complexity
    • Tolerance for hallucinations
    • Response-latency requirements

    This routing layer should remain lightweight. Spending substantial credits merely to decide which model to call would undermine the purpose of the architecture.

    3.2 Model Responsibilities

    Heavyweight Planning Models: The Planning Layer

    Reserve heavyweight models for global task planning, complex code generation, critical business-logic review, and final output generation where needed.

    Use strict prompt instructions to constrain output length and keep credit consumption manageable.

    Complex Reasoning Models: The Reasoning Layer

    Assign these models tasks such as multi-step reasoning, mathematical calculations, and analysis of logical relationships in long documents.

    They provide a middle ground when a task requires substantial reasoning but does not justify the broad capabilities and cost of the heavyweight tier.

    Cost-Efficient Execution Models: The Primary Execution Layer

    Use these models for most routine work, including:

    • Structured information extraction
    • Conversation continuation
    • Tool-call parameter generation

    Their combination of speed and lower cost makes them the main execution tier for maintaining application capacity.

    Lightweight Processing Models: The Batch Layer

    Assign lightweight models straightforward, high-volume tasks such as:

    • Log-text classification
    • Large-scale data labeling
    • Basic sentiment analysis

    Their low unit cost makes them suitable for large offline inference jobs scheduled overnight or during off-peak periods.

    3.3 Caching and Cloud-Native Integration

    In the measured results, cache-hit input tokens for the cost-efficient execution tier consumed only 2% of the credits charged for ordinary input tokens. This makes caching an important part of the cost strategy.

    The architecture can incorporate message queues and vector databases, using feature hashes to organize frequently accessed prompts and historical context. Repeated or similar requests can then be checked against the cache layer.

    Application-level cache matching and provider-side cached-token billing should be treated separately: the measured 2% rate applies to input tokens recognized as cache hits by the provider, not automatically to every similar request found by the application.

    Logging, monitoring, and alerting support the operational side of this architecture. Track credit consumption rates for each model tier in real time so that the routing service can respond before quotas are exhausted.

    For example, if a model category consumes 30,000 credits within a five-hour window, the scheduler can trigger a fallback policy and route some noncritical requests to lightweight models. This helps preserve service availability rather than allowing a single tier to consume the entire quota.

    4. Conclusions and Outlook

    The consumption rates discussed here were inferred from personal usage measurements. They are not an official pricing schedule for any platform. Provider billing rules and model capabilities can change, so these observations should not be treated as permanent rates.

    The broader engineering principle is more durable: route by capability requirements and allocate expensive inference selectively.

    Measured usage provides a basis for quantifying model costs. A hybrid architecture can then reserve heavyweight models for planning and demanding tasks, use lower-cost models for routine execution, and apply caching where supported. Monitoring and quota-aware fallback policies help keep that architecture operational under fixed limits.

    For teams moving from an LLM demo to production, cost and capability need to be managed together. Data-driven model selection and tiered routing provide a practical way to balance output quality, application capacity, and commercial viability.