LLM Context Caching and Rate Limiting: Why Free Chat Services Throttle Long Conversations
This article explains why free LLM chat services limit inactive sessions, input length, and call frequency. It breaks down how stateless models re-read context, how prefix caching (KV reuse) reduces cost, and the linear cost model behind throttling. It also covers common rate-limiting dimensions and practical tips for users and platform teams to keep context cheap and stable.
1. The Symptom: Free Chat Services Start Rationing Capacity
A cloud provider recently added resource constraints to the free tier of its LLM chat service: historical sessions inactive beyond a certain period are no longer guaranteed to resume, single input length is capped at tens of thousands of characters, and the number of calls per unit of time is limited. Paid API channels are not affected by these policies.
Many users react with the same intuition: I said nothing for seven days and used no resources, so why am I blocked the moment I say one thing? To answer that, you need to separate “having a conversation” from the actual compute and storage behavior on the model side.
2. Root Cause: Models Have No Long-Term Memory, So Context Must Be Re-Read
A large language model is a stateless function: each generation depends only on the context window carried by that request. “Remembering the earlier conversation” really means stitching the history back into the input and computing it again.
In engineering practice, this is addressed with prefix caching (also called context caching or KV reuse): the intermediate results of a prefix are kept resident in GPU or host memory, and later requests that hit the cache skip the repeated computation. Its key properties are:
- A hit requires the prefix to match exactly; changing any early character invalidates everything after it.
- The cache is a volatile resource, subject to capacity, eviction policy, and idle reclamation. Being cleared after hours or days is common.
- Within the hit window, cost is extremely low; on a miss, the full context must be recomputed.
This creates an amplification effect: a 200,000-character session untouched for seven days, woken by a single “hello,” forces the server to re-read the entire history. The compute cost can be equivalent to a dozen or more normal turns in that session. The “15 to 40-plus turns” figure in the original text is an intuitive expression of this magnitude. The free tier has no budget constraint, so it is the most likely to be broken by these long-tail requests.
3. The Cost Model: Converting “One Sentence” Into a Compute Bill
Let the context length be L (tokens), the new tokens per turn be Δ, and the cache hit rate be h. The actual compute per turn is approximately:
cost ≈ (1 - h) * L + Δ
When h drops to zero, cost grows linearly with L. In multi-turn conversations L keeps accumulating, producing a “the more you chat, the more expensive it gets” curve. This is also why providers prioritize governing the combination of “long session plus low activity” rather than simply limiting by user count.
4. Common Dimensions of Rate-Limiting Policies
- Input length caps: bound L to prevent an extreme long document from saturating capacity in one shot.
- Session activity reclamation: clear prefix caches that have been idle for a long time and free up high-value memory.
- Frequency and concurrency quotas: smooth out peaks and prevent sudden wake-ups from causing an avalanche.
- Tiered guarantees: best-effort service on the free tier, with SLAs on paid channels.
To be clear, these are common industry resource-governance practices, not a setting unique to any single product.
5. User-Side Practices: Make Context Cheap and Stable
- One task, one session: start a new session when the topic changes, so unrelated history does not inflate L.
- Summarize in segments: compress long material into key points before bringing it into the conversation.
- Keep a stable prefix: put the unchanging system setup first and variable content last to improve cache hits.
- Batch your questions: merge scattered small questions to reduce repeated reads caused by extra turns.
- Archive promptly: export important conclusions to local storage or object storage to reduce reliance on long sessions.
[Fixed system prompt + long-term rules] -> stable prefix, better hit rate[Task summary] -> controls length[Current question] -> variable part goes last
6. Platform-Side Practices: Cache-Friendly Design and Observability
- Caching policy: define idle-reclamation thresholds and eviction rules, and offer an optional persistence option for high-value sessions.
- Tiered entry points: apply length and frequency constraints on the free tier, and provide quotas and priority on the paid tier.
- Observability: use logging services and monitoring alerts to track hit rate, time to first token, and rejection rate.
- Elastic capacity: scale horizontally on a container platform, use a message queue to shave peaks, and use object storage for archived data.
In related practice, Baidu AI Cloud typically combines these capabilities into a “cache governance + tiered quotas + full-chain observability” approach that developers can adapt in their own systems.
7. Conclusion
The controversy over rate limiting is essentially a structural conflict between free resources and the cost of long context. Once you understand the volatility of prefix caching and its linear cost, practices like session splitting, summary compression, and stable prefixes make the impact nearly invisible for ordinary users, while heavy users can push cost into a manageable range. Platforms, in turn, need to do better on transparent messaging and tiered guarantees to reduce misunderstandings.
