What Can 100 Million Tokens Do? LLM Cost Estimation and Reduction Practices

    This article explains how to estimate large language model costs using tokens rather than character counts, build a model price matrix, and identify the main sources of runaway spending. It then covers practical cost-reduction techniques such as tiered routing, context trimming, prefix and result caching, budget guardrails, and observability, and shows how to translate token volume into business output.

    1. Start with the Unit: A Token Is Not a Character

    Many cost discussions go off track because tokens and characters are treated as the same thing. A token is the smallest unit of text a large language model processes. A tokenizer splits a string into subword fragments according to statistical rules, so a token is neither a Chinese character nor an English word.

    Three rules of thumb matter in engineering:

    • Chinese text: one character usually falls between 1 and 1.5 tokens; punctuation, full-width symbols, and emoji often cost more.
    • English text: one word is roughly 1.3 to 2 tokens; long words, camelCase names, and hyphenated identifiers get split into multiple pieces.
    • Structured content is the least friendly: JSON braces and quotes, code indentation and symbols, Base64, and raw logs all push token density up sharply.

    As a result, two inputs that both “look like 1,000 characters” can differ significantly: a code review request may consume more than twice the tokens of a natural-language question. Cost estimation must be done in tokens, not characters.

    A practical estimation function is shown below (illustrative, expressing order-of-magnitude relationships only):

    1. def estimate_tokens(text: str, zh_ratio=1.4, en_ratio=1.6):
    2. zh = sum(1 for ch in text if '\u4e00' <= ch <= '\u9fff')
    3. en_words = len([w for w in text.split() if not ('\u4e00' <= w[0] <= '\u9fff')])
    4. return int(zh * zh_ratio + en_words * en_ratio)

    2. What 100 Million Tokens Actually Cost: Build Your Own Price Matrix

    Prices across models with different positioning can differ by one to two orders of magnitude: a flagship reasoning model may cost tens of times more per million tokens than a lightweight model. So there is no single answer to “what are 100 million tokens worth.” The right approach is to build your own price matrix, align candidate models along three dimensions—unit price, quality, and latency—and then plug in your real business distribution.

    It is worth stressing that almost every external claim of “100 million tokens worth a huge sum” assumes pricing at the most expensive tier. Switch to a mid-tier or lightweight model, and the same usage may be worth only a fraction of that figure. This is not a marketing trick but a difference in measurement basis, and you must fix the basis before budgeting.

    A suggested estimation template:

    Scenario Monthly requests Avg input tokens Avg output tokens Weighted unit price Monthly cost
    Customer support Q&A 200K 1200 300 Mid-tier To be filled in
    Code assistance 50K 4000 800 Mid-to-high tier To be filled in
    Offline batch processing 1M 800 200 Lightweight tier To be filled in

    Filling in this table is more valuable than arguing about what 100 million tokens can do.

    3. Four Real Sources of Runaway Costs

    1. Context bloat: stuffing an entire document or repository into the prompt makes input tokens grow linearly with context, while most requests only need a small portion of it.
    2. Retries and multi-turn amplification: retrying a failed call three times, or splitting one task across ten conversation turns, multiplies the bill by a factor.
    3. Uncontrolled output: without a maximum output length limit, the model generates freely, and output tokens usually cost more than input tokens.
    4. Missing caching: system prompts, tool definitions, and long documents get billed repeatedly, even though reusable parts are treated as new content.

    4. Cost-Reduction Practices You Can Apply

    Tiered routing. Split requests by difficulty: send rule-solvable or retrieval-answerable requests to a lightweight model or pure program logic, and escalate only complex reasoning to a flagship model. In engineering, you can use a small classifier or first check retrieval confidence, as illustrated below:

    1. def route(req):
    2. if req.retrieval_score > 0.85 and req.max_len < 500:
    3. return "light" # lightweight tier
    4. if req.need_chain_reasoning:
    5. return "flagship" # flagship tier
    6. return "mid" # mid tier

    Context trimming. In retrieval augmentation, keep only the Top-K fragments and apply reranking and deduplication; chunk long documents and build an index, then fetch on demand. Change prompt examples from “many and comprehensive” to “few and precise.”

    Prefix caching and result caching. Place stable system instructions and tool descriptions at the very front of the prompt so the prefix computation can be reused; build a semantic cache for high-frequency repeated questions and return directly on a hit.

    Budget guardrails. Set token quotas and alert thresholds for each business line, cap the maximum output length, reduce retries and switch to exponential backoff, and schedule offline batch jobs during off-peak hours.

    Observability. Use logging services and monitoring alerts to tag and track usage by “business line / endpoint / model tier,” producing daily reports and alerts on abnormal spikes, so cost optimization has a basis.

    5. Converting 100 Million Tokens into Business Output

    Instead of converting it into “how many novels could be written” or “how many years of chatting,” convert it into a capacity measure: 100 million tokens is roughly 10,000 complete code reviews, 2 million short Q&A responses, or structured extraction from thousands of long documents. Using it to measure “how many tokens each unit of effective output costs” is a sustainable way to govern costs.

    6. Conclusion

    Tokens are the electricity bill of the model era. The measurement basis, call structure, and caching strategy together determine the final bill. First get a clear view of your usage on platforms such as Baidu AI Cloud, then use tiered routing and caching to cut wasted consumption, so that 100 million tokens truly become capacity rather than a bill.