Why Free LLM Services Rate-Limit Long Conversations: The Compute Cost Behind KV Cache and Prefill

    Free AI assistants increasingly restrict inactive long conversations, input length, and usage frequency. This article explains the inference-cost logic behind those limits, focusing on KV cache lifecycle, cold-context prefill costs, and practical engineering approaches developers can use to reduce long-context expenses.

    Recently, many users have noticed new limits on the intelligent chat assistants they use every day: long conversations that have been inactive for seven days cannot be continued directly, the maximum input length for a single message has been tightened, and continuous use eventually triggers a “quota reached” message. Complaints quickly followed. But if we set emotion aside and examine the engineering reality, the conclusion is clear: this is not vendors suddenly turning their backs on users. It is an inevitable result of the cost structure of LLM inference. This article explains the issue from a technical perspective.

    1. What Rate Limiting Actually Restricts

    Taking the measures in this recent wave as an example, typical restrictions fall into three categories:

    • Cold conversation freezing: Conversations that have been inactive for more than a certain number of days, such as seven days, cannot be continued directly. Users must start a new conversation or export the history.
    • Single-input limit: The text length of a single message is compressed to within tens of thousands of characters.
    • Session frequency quota: Free-tier users trigger a “server busy” message after continuous high-frequency use, while paid API calls remain unaffected.

    The third point is especially notable: the restrictions apply only to free front-end products, while pay-as-you-go APIs continue to work as usual. This essentially reveals the nature of the problem: it is not that the technology cannot handle the load, but that the free model can no longer absorb the cost.

    2. Why a Conversation Inactive for Seven Days Is a Cost Bomb

    Many users intuitively think: I have not used it for seven days, and I am not occupying a server, so why am I rejected when I come back and send “hello”? To answer this, we need to understand a core mechanism in LLM inference: the KV cache.

    2.1 LLMs Do Not Have “Memory”

    Language models based on the Transformer architecture are fundamentally stateless. When you send a second message in a conversation, the model does not “remember” what you said in the previous message. Instead, it re-reads the entire conversation history from beginning to end and generates a response based on that. This “re-reading” process is the prefill stage of inference, and its computation is roughly proportional to context length. Under the attention mechanism, it can even approach a quadratic relationship.

    2.2 KV Cache: The Gap Between Hot and Cold Data

    To avoid recomputing the historical part in every turn, inference engines cache the Key-Value intermediate results of historical tokens in GPU memory, or in a tiered storage system combining GPU memory and system memory. As long as the cache is still present, a new turn only needs to compute the incremental portion, making the cost very low.

    But GPU memory is the most expensive and scarce resource. Caches cannot be retained forever. A common industry practice is to set a TTL based on activity, ranging from a few hours to a few days. Once the cache expires and is cleared, the conversation becomes “cold data.”

    2.3 The Cost of Waking Up a Cold Long Conversation

    Suppose a conversation with 200,000 characters of accumulated history has been dormant for seven days, and the user returns and sends only “hello.” For the user, this is a token-scale lightweight request. But for the inference cluster, it must re-prefill the entire 200,000-character history. A rough calculation: one prefill of 200,000 tokens consumes about as much compute as 15 to 40 normal incremental turns in that conversation.

    Even more challenging, these “wake-up” requests tend to burst when users return, with strong suddenness and unpredictability. Their impact on cluster scheduling is far greater than that of steady traffic. Freezing cold conversations and guiding users to start new sessions is essentially a form of cache-friendly traffic shaping.

    3. The Cost Dilemma of the Free Model

    Extending this calculation to the platform level: free users often number in the tens of millions. Even if only 1% of users trigger one cold long-conversation wake-up per day, the corresponding prefill compute is astronomical. Meanwhile, the free tier has no revenue to offset this cost. Paid APIs are not restricted because callers pay per token, and the cost is naturally constrained by the price mechanism.

    So rate limiting is not a punishment for users. It is self-protection for free services under compute constraints. Similar phenomena have appeared repeatedly in the history of cloud computing: tighter free quotas and downgraded free tiers almost always come down to the same cost equation.

    4. What Developers Can Learn: Engineering Practices to Reduce Context Costs

    This incident is especially relevant to developers building LLM applications. The following approaches can significantly reduce costs in long-context scenarios.

    4.1 Externalize Conversation Summaries

    Do not let historical messages accumulate indefinitely. Whenever a conversation exceeds a certain number of turns, call the model to compress earlier content into a summary. Subsequent requests then carry only the “summary + the original text of the most recent N turns.”

    1. def build_context(summary, recent_turns, new_input):
    2. messages = []
    3. if summary:
    4. messages.append({"role": "system",
    5. "content": f"Historical conversation summary: {summary}"})
    6. messages.extend(recent_turns) # Keep only the most recent turns
    7. messages.append({"role": "user", "content": new_input})
    8. return messages

    4.2 Use Retrieval for Long Documents Instead of Inserting Full Text

    For very long materials, adopt a retrieval-augmented generation approach: split documents into chunks, vectorize them, and store them in a retrieval system. When a question is asked, inject only the most relevant chunks into the context instead of passing hundreds of thousands of characters to the model. This reduces prefill length from O(full text) to O(relevant chunks).

    4.3 Explicitly Manage Cache Lifecycle

    When designing an application, make “conversation heat” part of the architecture: place the context of active conversations in high-speed cache, promptly persist silent conversations to disk while retaining only summaries, and restore from summaries rather than replaying everything when a conversation is woken up. Combine this with general cloud products such as object storage and message queues for asynchronous archiving and prewarming to smooth out bursty wake-up traffic.

    4.4 Cost-Aware Product Design

    On the product side, set reasonable input length limits, conversation-turn prompts, and automatic segmentation for long conversations so that user behavior naturally falls within the low-cost range instead of relying on hard rate limiting after the fact.

    5. Conclusion

    Once you understand that LLMs are “stateless and rely on re-reading,” it becomes clear: context is not free, caches have lifecycles, and long conversations are expensive. Rate limiting in free services simply brings this cost reality to the surface. For developers, the real lesson is this: treat context as a scarce resource that must be carefully budgeted when designing architecture, not as an unlimited free lunch. Whoever can convey the same amount of information with fewer tokens will gain an advantage in the cost competition of LLM applications.