Understanding Weekly LLM Usage: Token Accounting and Model Selection Practices

    Weekly model usage rankings reveal adoption patterns, but they do not directly measure model quality. This article explains how token usage is calculated, how to interpret usage metrics, how to compare cost and performance, and how to build an internal dashboard and evaluation process for reliable model selection.

    1. Start with the Weekly Usage Rankings

    Weekly usage rankings for large language model services reflect how extensively developers and businesses have used different models over a given period. They can help indicate market interest, but they should not be treated as a direct ranking of model capability.

    Usage is influenced by factors such as pricing, API usability, free quotas, supported use cases, and promotional campaigns. To turn this type of data into actionable conclusions, engineering teams should first understand the measurement unit, then interpret the metrics, and finally evaluate the results against their own business requirements.

    2. Understand the Measurement Unit: Tokens

    A token is a basic unit used to split text for model processing. Depending on the tokenizer, a token may represent a complete word, a character, or part of a word. Large language model services generally track input tokens and output tokens separately.

    The total consumption of a request can be expressed as:

    1. Total tokens = Input tokens + Output tokens

    Weekly usage is often reported as the total number of tokens consumed, calculated by adding the tokens from all requests made during the week.

    Two points require attention:

    1. The same text may produce different token counts when processed by different model tokenizers. Tokenization rules must therefore be aligned when comparing models.
    2. In long-context scenarios, input tokens often account for most of the usage. As a result, the statistics may favor tasks that read long documents rather than tasks that generate short answers.

    3. Three Considerations When Reading Usage Rankings

    1. Align the Measurement Definitions

    The reporting period, time zone, treatment of cached requests, and inclusion of free quotas can all affect the final numbers. Before comparing figures from different sources, confirm that these definitions are consistent.

    2. Consider the Baseline When Analyzing Week-over-Week Changes

    When a model had a very small usage baseline the previous week, even a limited absolute increase can result in a very high growth rate. Trend analysis should consider both absolute usage and the percentage change to avoid being misled by small-base effects.

    3. Usage Does Not Equal Quality

    Usage shows how much a model is being used, not whether it is being used effectively. To determine whether a model fits a specific business, test it with a representative evaluation set and measure accuracy, stability, response latency, and cost per unit of work.

    4. Key Dimensions for Model Selection

    Model selection should begin with business constraints. Common evaluation dimensions include the following:

    • Context window: This determines how much documentation, code, or conversation history a model can process in a single request. Long-document summarization and cross-file code analysis typically require a larger context window.
    • Modality support: Support for image, audio, and other input types determines whether the model can cover multimodal use cases.
    • Inference cost and latency: The actual cost and user experience depend on the unit price multiplied by average token consumption, as well as time to first token and overall throughput.
    • Architecture characteristics: A model based on a mixture-of-experts architecture may have a large total parameter count while activating only part of those parameters for each inference request. Computing cost therefore does not increase linearly with the total parameter count. Selection should consider the activated scale and server-side inference efficiency rather than total parameters alone.
    • Task fit: General conversation, code generation, structured information extraction, and retrieval-augmented question answering place different demands on a model. They should be evaluated separately.

    5. Build an Internal Usage and Cost Dashboard

    External rankings provide an industry-level perspective. Teams also need internal metrics to track their own consumption. The example below demonstrates the basic logic for aggregating weekly token usage, calculating week-over-week changes, and estimating cost. The data is illustrative, and the prices are placeholders that must be replaced with actual logs and billing rules.

    1. # Example: aggregate weekly token usage, calculate week-over-week change, and estimate cost
    2. # Prices are placeholders in yuan per million tokens. Replace them with actual billing rules.
    3. PRICE_PER_MILLION = {"model-a": 1.0, "model-b": 2.5}
    4. records = [
    5. {"model": "model-a", "week": "2026-W46", "input_tokens": 1200000, "output_tokens": 300000},
    6. {"model": "model-a", "week": "2026-W47", "input_tokens": 1500000, "output_tokens": 360000},
    7. {"model": "model-b", "week": "2026-W46", "input_tokens": 400000, "output_tokens": 90000},
    8. {"model": "model-b", "week": "2026-W47", "input_tokens": 300000, "output_tokens": 60000},
    9. ]
    10. def weekly_summary(records):
    11. summary = {}
    12. for r in records:
    13. key = (r["model"], r["week"])
    14. total = r["input_tokens"] + r["output_tokens"]
    15. summary[key] = summary.get(key, 0) + total
    16. return summary
    17. def week_over_week(summary, model, this_week, last_week):
    18. cur = summary.get((model, this_week), 0)
    19. prev = summary.get((model, last_week), 0)
    20. if prev == 0:
    21. return None # Do not calculate when the previous week has no data
    22. return (cur - prev) / prev * 100
    23. def estimate_cost(summary, model, week):
    24. tokens = summary.get((model, week), 0)
    25. return tokens / 1_000_000 * PRICE_PER_MILLION[model]
    26. if __name__ == "__main__":
    27. s = weekly_summary(records)
    28. for model in PRICE_PER_MILLION:
    29. change = week_over_week(s, model, "2026-W47", "2026-W46")
    30. cost = estimate_cost(s, model, "2026-W47")
    31. print(model, "week-over-week (%):", round(change, 2), "estimated weekly cost:", round(cost, 4))

    At a minimum, the dashboard should include four categories of metrics:

    • Total tokens by model and reporting period
    • Week-over-week changes
    • Unit cost per task
    • Failure rate and average latency

    These metrics should be correlated with business events, such as feature releases or traffic campaigns, so that changes in usage can be explained rather than merely observed.

    6. Validate Model Quality with an Evaluation Set

    An evaluation set provides the basis for model selection. A practical process includes the following steps:

    1. Sample real production logs to cover major task types and frequently occurring inputs.
    2. Divide the data into subsets by task type and define clear pass criteria for each category.
    3. Combine human annotation with automated scoring. Record accuracy, format compliance, and latency.
    4. Combine evaluation results with cost data and calculate the average cost per passing sample.
    5. Lock the model version for regression testing to prevent unnoticed quality drift caused by server-side updates.

    The evaluation set should be updated regularly because the distribution of business inputs changes as products evolve. If the evaluation set remains inconsistent with production data for an extended period, its conclusions become less useful.

    7. Engineering Recommendations for the Integration Layer

    Model selection decisions need to be reflected in the application architecture. Common approaches include:

    • Unified gateway: Add an adapter layer between business applications and model APIs to hide differences in request parameters. Business code can then depend on an internal protocol.
    • Multi-model routing: Route requests according to task complexity. Simple tasks can use lower-cost models, while complex tasks can be sent to more capable models.
    • Rate limiting and fallback: Automatically switch to an alternative model when a model experiences higher error rates or rate limits, and record each fallback event.
    • Logging and monitoring: Record the model identifier, input and output token counts, request duration, and error code for every call, and connect these records to alerting rules.

    Teams using large model services from Baidu AI Cloud may be able to use general capabilities such as invocation logs and monitoring alerts to obtain these metrics, reducing the amount of custom data collection required. Before integration, confirm the exact scope and pricing of each capability and rely on the official documentation.

    8. Common Mistakes

    • Selecting models solely from rankings: Rankings reflect usage popularity but do not show how well a model matches a specific task.
    • Ignoring output-token costs: Output tokens can have a significant impact on the total cost of generative tasks. Tracking only input tokens will underestimate expenses.
    • Allowing the evaluation set to diverge from production data: Passing sample tests does not guarantee stable performance under real-world traffic.
    • Failing to lock model versions: If model behavior changes after an update and the exact version cannot be identified, troubleshooting becomes much more difficult.

    Model selection is an ongoing process. Teams should track usage, cost, quality, and stability together so that every model change is supported by data.