Why LLM Token Usage Grows So Fast and How to Reduce It

    This article explains where tokens are consumed in large language model interactions, including user input, model output, conversation history, system instructions, and external data such as files and tool results. It covers why a quota can run out before any real work begins, how to judge whether token usage is reasonable based on effective output rather than message count, and practical ways to reduce consumption. These include staged task planning, limiting context, compressing logs, setting output limits, writing phase summaries, and setting budgets for teams.

    When using large language models for programming, analysis, or content creation, many users run into the same problem. Simply describing a requirement, adding background, and discussing options, before any actual execution begins, can exhaust the session quota. On the surface, this looks like the model replying too much. From a technical standpoint, however, token consumption usually results from the combined effect of input, output, conversation history, and attached data.

    Therefore, the token consumption of a model or subscription plan should not be judged by how many words a single reply contains. It should be judged by how much effective work is completed per unit of task.

    1. Where Tokens Are Consumed

    A token is the basic unit that a large language model uses to process text. It does not strictly equal a Chinese character, an English word, or a character. Chinese text is usually split by character, word, or subword fragment, while English, numbers, code, punctuation, and special symbols may each occupy different numbers of tokens.

    A complete interaction typically consumes tokens in the following areas:

    1. Current user input

      This is the easiest part to understand. It includes requirement descriptions, questions, constraints, sample data, and the text representation of uploaded content.

    2. Model output

      The longer the reply, the more output tokens it consumes. Code, tables, log analysis, and detailed explanations usually use more quota than ordinary Q&A.

    3. Conversation history

      Many systems send earlier messages to the model with each request to keep the context coherent. Even if the user does not retype old content, the history may be counted again in every request.

    4. System instructions and task rules

      Applications may attach role settings, output formats, compliance rules, tool usage instructions, and business knowledge. Users may not see this content, but it usually takes up context space.

    5. External materials and tool results

      When the model reads files, search results, logs, database records, or tool return values, this data may be appended to the context. Unfiltered long documents and complete logs are especially likely to make token counts grow quickly.

    So, “I only asked a few questions, so why did my quota drop so much?” does not necessarily mean the model is malfunctioning. The request more likely contains a long hidden context or attached data.

    2. Why the Limit Is Reached Before Work Begins

    1. Requirement discussion itself becomes a costly task

    Complex development requests often need repeated clarification. For example, a seemingly simple request to “refactor the project” may later include the directory structure, dependencies, error logs, interface constraints, test requirements, and the deployment environment. Each round of conversation may carry all the earlier content, so the size of each request keeps expanding.

    If the history context is resent with every request, consumption is not simply “this round’s input plus this round’s output.” It may be close to:

    1. Cumulative consumption ≈ sum of input and output for each round + history context repeatedly carried

    The more rounds a conversation has, the more obvious this repeated cost becomes.

    2. The model’s replies are too detailed

    Detailed answers are not inherently bad. But if the model outputs long background explanations, complete code, and several alternative plans before the goal is confirmed, it creates a lot of wasted consumption.

    For example, if a user only wants to confirm a technical approach, but the model directly generates a full project skeleton, test files, and deployment instructions, the output may look thorough while doing little for the current stage.

    3. Code and logs have high token density

    Source code, stack traces, configuration files, and command output often contain many identifiers, indentation, symbols, and repeated structures. Compared with natural language, they fill up the context quickly.

    Pay particular attention to the following data:

    • Complete build logs;
    • Multiple repeated error stack traces;
    • Untrimmed configuration files;
    • Large dependency lists;
    • Entire project source code;
    • Auto-generated files;
    • Structured data with many repeated fields.

    4. The context window and the account quota are different concepts

    The “context window” describes how much content a single request can handle, while the “account quota” describes how much computing resource may be used within a given time period. The two should not be confused.

    Even if a single request does not exceed the context window, it may still trigger a quota limit for the time period. Conversely, even if the account still has quota left, an oversized single input may fail to process.

    Therefore, when evaluating the user experience, distinguish at least:

    • Maximum context for a single request;
    • Maximum output length for a single response;
    • Total quota over a period of time;
    • Differences in resource consumption across models or tasks;
    • Recovery period after hitting a limit;
    • Whether concurrency or rate limits apply.

    3. How to Judge Whether Token Usage Is Reasonable

    Quota should not be evaluated only by “how many messages you can send per day,” because messages differ greatly in complexity. A more reasonable method is to observe effective task output.

    The following metrics can be used:

    1. Cost per task

    Count the tokens used from requirement analysis until a verifiable result is obtained. A task may include several rounds of conversation, so a single message does not represent the true cost.

    2. Effective output ratio

    If the model generates a large amount of code, repeated explanations, or content off the requirement that cannot be used, the actual efficiency may be low even when token consumption is not high.

    This can be roughly understood as:

    1. Efficiency = adopted output / total output

    The lower the efficiency, the more the requirement breakdown, context organization, or interaction method needs to be optimized.

    3. Task completion time

    If quota consumption is low but you frequently wait for it to reset, overall efficiency can still be poor. A real evaluation should consider token cost, waiting time, number of revisions, and final quality together.

    4. Budget predictability

    A plan suitable for team use should let users estimate roughly how much quota a code review, documentation generation, or failure analysis will need. A completely unpredictable quota mechanism adds to development management overhead.

    4. Practical Ways to Reduce Token Consumption

    1. Stage the task before asking for detailed execution

    Do not ask the model to complete all the work at once. Split the task into four stages:

    1. Clarify the goal and constraints;
    2. Output options and risks;
    3. Implement the selected option;
    4. Test, fix, and summarize.

    In the first stage, ask the model only to confirm its understanding and list open questions, so it does not generate a lot of content too early.

    For example, you can use a prompt like this:

    1. Do not write code yet.
    2. Break the requirement into:
    3. 1. Confirmed goals;
    4. 2. Missing information;
    5. 3. Technical risks;
    6. 4. Recommended next step.
    7. Keep the response under 500 words.

    This helps converge the requirement at a lower cost.

    2. Provide only the context relevant to the current problem

    Do not upload the entire project by default. A more efficient approach is to first provide:

    • The relevant directory structure;
    • The file where the error occurs;
    • Key functions;
    • A trimmed error log;
    • The language and runtime environment in use;
    • Solutions already tried.

    Add more content only when the model actually needs it. Context should follow the “minimum sufficient principle”: enough to solve the problem, without carrying obviously irrelevant data.

    3. Compress repeated logs

    Before analyzing logs, remove timestamps, repeated stack traces, health check records, and unrelated debug output. Keep only:

    • The first complete error;
    • The relevant call chain;
    • Key context before and after the error;
    • How often the error occurs;
    • The conditions that trigger it.

    For repeated errors, express them as counts:

    1. Error A occurred 126 times with identical content.
    2. Error B occurred 3 times, differing only in variable values.

    This uses fewer tokens than pasting hundreds of log lines directly, and it makes it easier for the model to recognize patterns.

    4. Limit output scope and format

    If you only need a conclusion, do not ask for a long explanation. If you only need to modify one function, do not ask the model to output the whole file again.

    You can state these requirements explicitly:

    ```text
    Output only the functions that need changes.
    Keep the original interfaces.