Multi-Model Token Consumption Benchmarking and Cost Optimization Methodology

    This article explains why per-million-token pricing alone is a poor basis for choosing an LLM, and shows how to reverse-engineer actual token consumption rates from usage logs through linear fitting. Using one person's measured data across four model tiers, it compares relative input, output, and cache-hit costs, estimates usable token volume under a fixed quota, and proposes a layered multi-model routing strategy. It also covers cache and context design techniques, a reproducible logging schema, and the principle of letting high-cost models make decisions while low-cost models handle high-frequency execution.

    1. Why “price per million tokens” is not enough

    In LLM applications, cost is not determined by the model’s list price alone. It also depends heavily on the input-to-output ratio, context length, cache hit rate, task type, and call frequency.

    Many teams focus only on a model’s “input price” or “blended price” during selection, yet real usage often diverges significantly:

    • Code generation tasks usually require long contexts, so input tokens dominate.
    • Content creation and structured output tend to produce many output tokens.
    • Multi-turn conversations resubmit prior context repeatedly.
    • Agent tasks repeatedly read the system prompt, tool definitions, and intermediate state.
    • The same model can consume very different amounts depending on whether the cache is hit or missed.

    So the metric that actually matters is not the standalone input or output price, but rather:

    Under a specific task structure and call ratio, how many effective tokens a given quota can actually support.

    This article abstracts the raw records into four model tiers:

    • High-cost planning model: suited to complex planning, architecture design, and final review.
    • Mid-cost reasoning model: suited to problems with long chains of logic.
    • Low-cost execution model: suited to bulk generation, code rewriting, and routine tasks.
    • Ultra-low-cost lightweight model: suited to simple operations such as classification, extraction, and format conversion.

    The model names and prices here reflect a single personal measurement and should not be treated as any vendor’s official billing standard.

    2. Reverse-engineering token consumption rates from usage logs

    The credit consumption of a single call can be approximated as:

    1. total consumption = input tokens × input unit price
    2. + output tokens × output unit price
    3. + cached tokens × cache unit price
    4. + other fixed overhead

    Ignoring other overhead, if you have several call records, you can estimate the input and output unit consumption rates through linear fitting.

    For example, given the following data for a model:

    1. input token counts: x1, x2, x3...
    2. output token counts: y1, y2, y3...
    3. actual credit consumption: z1, z2, z3...

    You can fit the following formula:

    1. z = a × x + b × y + c

    where:

    • a is the credit consumption rate per input token;
    • b is the credit consumption rate per output token;
    • c is a possible fixed per-call cost or error term.

    If the coefficient of determination after fitting is close to 1 and the residuals are very small, it indicates that the model’s credit consumption has a strong linear relationship with input and output token counts within this sample.

    Note that a coefficient of determination of 1 does not mean you have derived the official billing rules. It only means:

    1. The current sample is well explained by the formula;
    2. The billing behavior within the sample is fairly stable;
    3. Under similar call conditions, the formula may have some predictive value.

    If the sample is small, or if all calls have similar input-to-output ratios, you may also get a case of “good fit but poor generalization.” Therefore, it is best to cover the following scenarios:

    • Short input, short output;
    • Long input, short output;
    • Short input, long output;
    • Multi-turn context;
    • Cache hit;
    • Cache miss;
    • Different task types and different time periods.

    3. Relative consumption differences from one measurement

    Reverse-engineered from personal usage records, the four model tiers show roughly the following relative consumption levels:

    Model tier Input consumption / million tokens Output consumption / million tokens Cache-hit consumption
    High-cost planning ~80,000 credits ~400,000 credits Not measured separately
    Mid-cost reasoning ~32,000 credits ~112,000 credits Not measured separately
    Low-cost execution ~4,000 credits ~8,000 credits ~80 credits
    Ultra-low-cost lightweight ~2,000 credits ~2,000 credits Not measured separately

    From these results, the gap between models is not fixed.

    3.1 The output cost gap is usually more pronounced

    The high-cost planning model consumes about 400,000 credits per million output tokens, while the ultra-low-cost lightweight model consumes about 2,000 credits per million tokens — a difference of roughly 200×.

    This means that using a high-cost model for large-volume text generation, code comments, data cleaning, or format conversion will drive costs up quickly. Especially in automated tasks, output tokens are often more numerous than in manual interaction; a single call looks negligible, but the accumulated cost can become the main expense.

    3.2 Input cost cannot be ignored either

    Although input is usually cheaper than output, long-context scenarios cause input cost to accumulate continuously. For example:

    • Carrying the full project description every time;
    • Repeatedly sending conversation history;
    • Repeatedly attaching tool definitions;
    • Passing large amounts of retrieval results into the model verbatim;
    • Continuously appending intermediate results in an Agent loop.

    Without context compression and caching strategies, input tokens may become the main component of overall cost.

    3.3 Cache hits change the cost structure

    After a cache hit, the low-cost execution model consumes about 80 credits per million tokens — roughly 2% of the normal input cost.

    This mechanism is especially valuable for:

    • Fixed system prompts;
    • Stable role settings;
    • Unchanged tool descriptions;
    • Recurring project conventions;
    • Large numbers of similar requests;
    • Shared context in multi-turn tasks.

    But a cache does not mean “all repeated content is automatically free or extremely cheap.” The actual effect usually depends on cache granularity, validity period, whether the prefix is identical, whether request parameters change, and other factors. So in engineering practice, you need to confirm through logs whether the cache is actually being hit.

    4. Estimating usable token volume under a unified quota

    For easier comparison, assume the following quota:

    • Every 5 hours: 60,000 credits;
    • Every week: 600,000 credits;
    • Input accounts for 80% of total tokens;
    • Output accounts for 20% of total tokens;
    • Cache hits are not considered for now.

    Under these assumptions, you can use a weighted average consumption rate to compute the total token volume:

    1. average consumption rate = input unit price × 80% + output unit price × 20%
    2. usable token volume = total credit quota ÷ average consumption rate

    Estimating from the measured data above:

    Model tier Approx. tokens processable within 5 hours
    High-cost planning ~417,000 tokens
    Mid-cost reasoning ~1,250,000 tokens
    Low-cost execution ~12,500,000 tokens
    Ultra-low-cost lightweight ~30,000,000 tokens

    These numbers are not a ranking of model capability, but a comparison of “processing scale under the same credits.”

    For example, the high-cost planning model is suited to handling complex problems in a single pass, but not to shouldering large amounts of mechanical work; the ultra-low-cost lightweight model has a low unit cost, but is not necessarily suited to complex reasoning, long-chain planning, or high-risk code changes.

    5. A more sensible multi-model task division

    A cost-effective approach is usually not “pick only the strongest model,” but to build layered routing.

    5.1 High-cost planning model: responsible for thinking it through

    Suited to:

    • Requirement breakdown;
    • Technical architecture design;
    • Comparing complex options;
    • Risk identification;
    • Final result review;
    • Key modifications to high-value code;
    • Root-cause analysis of complex failures.

    The call frequency of this tier should be controlled. You can first let a lightweight model organize the input, then hand the compressed problem to the high-cost model, reducing wasted context.

    5.2 Mid-cost reasoning model: responsible for complex logic

    Suited to:

    • Multi-step reasoning;
    • Business rule analysis;
    • Test case design;
    • Medium-complexity code generation;
    • Consistency checks between documentation and implementation;
    • Structured data analysis.

    It usually serves as a balance layer between the high-cost and low-cost models: more capable than a lightweight model on complex tasks, while costing less than the high-cost planning model.

    5.3 Low-cost execution model: responsible for mainline production

    Suited to:

    • Code completion;
    • Function rewriting;
    • Unit test generation;
    • Text summarization;
    • Document formatting;
    • Routine Q&A;
    • Batch classification and field extraction;
    • Concrete implementation under an already-defined plan.

    For tasks whose planning is complete, the execution phase can be handed to the low-cost model, significantly reducing overall consumption.

    5.4 Ultra-low-cost lightweight model: responsible for large-scale simple tasks

    Suited to:

    • Intent recognition;
    • Label classification;
    • Content deduplication;
    • Field extraction;
    • Format conversion;
    • Simple translation;
    • Initial screening of sensitive content;
    • Task routing.

    The advantage of this tier lies in throughput and price, not in the upper limit of handling complex problems.

    6. Cache and context design are key to cost reduction

    Model cost optimization cannot rely on model selection alone; you also need to optimize the request structure.

    6.1 Put fixed content first

    Place stable system rules, output formats, and tool descriptions at the front of the request, and keep the text as identical as possible, which favors cache hits.

    6.2 Put dynamic content last

    Place the user’s question, real-time data, and temporary variables at the end of the context. This avoids losing the reuse value of large shared content whenever you change a small piece.

    6.3 Compress conversation history

    Do not accumulate the full history indefinitely. You can periodically compress the history into:

    1. Task goal:
    2. Confirmed facts:
    3. Completed actions:
    4. Unresolved issues:
    5. Constraints:
    6. Next steps:

    This preserves key information while reducing input tokens.

    6.4 Control the scale of retrieval results

    A retrieval system should not send all candidate documents to the model verbatim, but should pass them through:

    1. Initial recall;
    2. Deduplication;
    3. Relevance ranking;
    4. Snippet extraction;
    5. Summary compression;
    6. Final assembly.

    The more precise the retrieved content, the lower the input cost, and the more stable the model’s answer quality usually is.

    7. Build a reproducible logging table for measurements

    It is recommended to record the following fields for each request:

    1. Timestamp
    2. Model tier
    3. Task category
    4. Input tokens
    5. Output tokens
    6. Cached tokens
    7. Actual credit consumption
    8. Cache hit (yes/no)
    9. Response latency
    10. Result quality score

    You can then compute:

    • Input consumption per million tokens;
    • Output consumption per million tokens;
    • Cache discount ratio;
    • Average cost per task category;
    • Actual cost per successful task;
    • Rework rate across different models.

    Pay particular attention to “cost per effective result,” because a cheap model that frequently needs retries may not end up cheaper.

    1. cost per effective result
    2. = total call cost ÷ number of effective results that passed on the first try

    This is closer to real business cost than simply comparing token unit prices.

    8. Conclusion: high-cost models make judgments, low-cost models do the execution

    From this set of personal measurements, a general principle emerges:

    Let high-cost models handle high-value decisions, and let low-cost models handle high-frequency execution tasks.

    A possible flow is:

    1. User request
    2. ↓
    3. Lightweight model: classify, extract, organize
    4. ↓
    5. Reasoning model: analyze options, add constraints
    6. ↓
    7. Planning model: key decisions, risk review
    8. ↓
    9. Execution model: bulk generation, modification, and delivery
    10. ↓
    11. Lightweight model: format check, initial result screening
    12. ↓
    13. Planning model: final acceptance

    This layered approach balances quality, cost, and throughput at the same time.

    Finally, note that the credit consumption rates in this article are reverse-engineered from a personal sample. They are not an official price list and do not represent all accounts, all time periods, or all call scenarios. Quota rules, caching strategies, model versions, and billing methods may all change. Before actual deployment, continuously calibrate with your own task data, and evaluate comprehensively using input-to-output ratio, cache hit rate, rework rate, and final quality — rather than looking only at the surface unit price.