Long-Conversation Free Quota Adjustments: Balancing Cost and User Experience

    This article explains why long, multi-turn conversations cost more to run than short ones, covering KV cache memory growth and repeated input billing. It then outlines how free quotas are designed, including metering units, context limits, and truncation strategies such as sliding windows, summary compression, and hierarchical memory.

    1. Background: Why Long Conversations Cost More

    Providers have adjusted free quotas for long conversations several times recently. The discussion centers on scenarios such as role-play and fan fiction. These scenarios share three traits: many turns, long context, and users who depend heavily on continuity. As a result, users are the most sensitive to quota changes. To judge whether an adjustment is reasonable, we first need to understand the cost structure of long conversations.

    1.1 Context Length and GPU Memory Usage

    During inference, generative models cache the key and value vectors of the attention layers at every layer. This cache is called the KV cache. Its GPU memory usage can be estimated with the following approximate formula:

    GPU memory ≈ 2 × number of layers × number of attention heads × head dimension × sequence length × batch size × bytes per element

    Consider these example parameters: 32 layers, 32 attention heads, a head dimension of 128, half precision (2 bytes per element), a context of 32,768 tokens, and a batch size of 1. Substituting these values gives a cache of about 16 GiB per session. Doubling the context length roughly doubles the cache size per session. Actual figures depend on the model architecture and optimization techniques, but the direction of growth is certain.

    1.2 Repeated Billing in Multi-Turn Conversations

    Most chat APIs are stateless, so the client must resend the full history on every turn. If each turn adds about t tokens, the cumulative input after n turns is:

    t + 2t + … + nt = t · n(n+1)/2

    The cumulative input grows roughly quadratically with the number of turns. Assuming each turn adds the same t, a 50-turn session accumulates about 85 times the input of a 5-turn session, even though it has only 10 times as many turns. This is the main reason long conversations receive close cost scrutiny.

    2. Design Variables of Free Quotas

    Free quotas are usually determined by three variables: the metering unit, the context limit, and resource priority.

    2.1 Choosing a Metering Unit

    Metering method Advantages Disadvantages Suitable scenarios
    By request count Intuitive and easy to understand Does not reflect differences in request size Short Q&A, lightweight tools
    By token count Closely tied to actual cost Hard for users to estimate usage General conversation, API calls
    By session duration or turn count Easy to explain to users Short but heavy requests may be underestimated Long-form creative applications
    By concurrency and time period Smooths peak load Complex rules, unstable experience Resource scheduling during peak hours

    In practice, these methods are often combined. Internally, token count serves as the ledger, which keeps cost accounting accurate. Externally, usage is shown as an easy-to-understand daily available quota, which reduces the effort users need to estimate their consumption.

    2.2 Context Limits and Truncation Strategies

    The context limit determines the maximum cache overhead of a single session. There are three common approaches:

    1. Sliding window: Keep only the most recent N turns and discard older content. This is simple to implement, but over long use it loses early settings and key plot points.
    2. Summary compression: Periodically use the model to compress the history into a summary and replace the original messages. This preserves the main thread, but the summary itself consumes compute and may omit details.
    3. Hierarchical memory: Store character settings, long-term facts, and recent dialogue separately, and inject only the relevant parts on each turn. This has the highest engineering complexity, but it balances information retention and cost control well.

    Creative applications usually need hierarchical memory, while Q&A applications tend to use sliding windows. The choice among these approaches depends on the application.