Why Does Pure Writing Consume Far More Tokens Than Expected
This article explains why writing-only tasks burn through token quotas much faster than expected. It breaks down the two-part billing model (input plus output, with output priced higher), shows how stateless APIs replay conversation history so input tokens grow roughly quadratically across turns, and describes how prompt caching turns repeated prefixes into a steep discount as long as the prefix stays byte-for-byte identical. It closes with a practical cost-control checklist covering model tiers, stable prefixes, fresh sessions for revisions, off-peak batch jobs, observability, and architecture-level limits.
1. Start With the Billing Model: Your Bill Is the Sum of Two Parts
Many developers are surprised the first time they see an AI writing bill: only a few thousand words were produced, yet the quota deducted is an order of magnitude larger. The reason is not mysterious — LLM calls are billed in tokens, and the cost of a single request has two components:
Cost per request = input tokens × input rate + output tokens × output rate
The input (the prompt) is what you and the system send to the model; the output (the completion) is what the model generates. A common industry pattern is that the output rate is significantly higher than the input rate, typically 2 to 6 times higher. This means that for the same thousand words, putting them in the “answer” costs far more than putting them in the “question.”
Converting between tokens and word counts does not need to be precise: in Chinese, one character roughly maps to 1 or 2 tokens, while English and code are usually cheaper. For capacity estimation, treat the word count of a draft as the rough order of magnitude of tokens — the error won’t affect your decision.
Two more dimensions commonly appear in industry pricing structures:
- Model tiers: a lightweight tier and a flagship tier coexist. The lightweight tier handles everyday writing, the flagship tier handles complex reasoning, and their rates can differ by several times.
- Time-of-day tiers: weekday daytime is peak pricing, nights and weekends are off-peak, and off-peak is often half of peak.
Stack these three layers (input/output, model tier, time tier) together and you can explain why the bill is so sensitive to how you write.
2. Reason One: All Output Lands in the Most Expensive Tier
Ask the model to write 3,000 words and those 3,000 words count 100% as output, billed at the output rate. Writing tasks are characterized by short input and long output, which puts the cost exactly at the steepest point of the pricing curve. By comparison, tasks like summarization, classification, and extraction have long inputs and short outputs, so their cost per unit of output is much lower.
The conclusion is straightforward: purely generative tasks inherently cost more than comprehension tasks. You are not being overcharged; the task shape determines it.
3. Reason Two, and the Big One: History Is Replayed Over and Over
This is the main driver of bill inflation. LLM APIs are stateless: the model itself does not remember what was said in the previous turn. What we call a “continuous conversation” is the caller re-assembling all prior messages into the input and sending them again on every request.
Turn 1 input: STurn 2 input: S + A1Turn 3 input: S + A1 + A2...Turn N input: S + A1 + ... + A(N-1)Cumulative input ≈ N×S + the average accumulation term of N(N-1)/2
In other words, input tokens grow roughly quadratically with the number of turns. By the time you reach chapter five, the previous four chapters plus the outline and world-building notes are all being read again. Revising the same draft five times means paying for every prior version on each pass.
This gets more extreme in AI coding tools / agent loops: every step a tool takes (read a file, search, run a command, generate again) carries the full history, so a knowledge base of hundreds of thousands of words is effectively re-read at every step. “Agents burn tokens fast” is essentially the number of loop iterations multiplied by the context length.
4. The Key Buffer: Context Caching Turns Repeated Content Into a Discount
The reason the bill hasn’t become unusable is that the industry commonly offers a prompt cache mechanism: compared with the previous turn, the unchanged prefix hits the cache, and cached tokens are billed at a steep discount.
An illustrative price structure common in the industry (not a specific vendor’s quote):
Uncached (new) input: 1.00 CNY / million tokensCache-hit input: 0.02 CNY / million tokens ← about 1/50Output: 4.00 CNY / million tokens
So when you keep revising the same draft within the same session, the only part you pay full price for is the small newly added segment.
But caching has one hard requirement: the prefix must match byte for byte. Once the position, order, or formatting of the content at the beginning changes, the whole prefix can no longer align, hundreds of thousands of words get recomputed as cache misses, and the bill collapses instantly. Common triggers include: re-concatenating the file list every turn, injecting timestamps or random IDs at the top, unstable tool return structures, and a system prompt that gets dynamically rewritten.
The troubleshooting method is simple: look at the ratio of cache hits to misses on the bill. A high hit rate means costs are under control; a hit rate that suddenly drops to near zero means the prefix has been disrupted.
5. Cost Governance Checklist
- Use tiers: send everyday drafts to the lightweight tier and reserve the flagship tier for hard tasks like architecture design and difficult debugging.
- Keep the prefix stable: put the system prompt, settings, and outline at the very beginning of the session and never change them, maximizing cache hits.
- Open a new session for revisions: paste only the segment that needs changing instead of carrying the whole draft plus its history.
- Plan before expanding: have the model propose the revision approach first, confirm it, then let it write the prose, avoiding a full-chapter rewrite.
- Run batches off-peak: move heavy work like batch generation and batch refactoring to off-peak nights and weekends; the same work can differ by a factor of two on the bill.
- Observability: log input/output tokens per turn, cache hit rate, and cumulative cost; set threshold alerts and automatically break the loop on anomalies.
- Architecture level: use retrieval to fetch fragments on demand instead of stuffing everything in, summarize and compress long documents in segments, and cap the agent’s maximum steps and context size.
6. Conclusion
Fast token consumption is not the model “stealing money”; it is the inevitable result of three things stacking up: stateless APIs + expensive output + history replay. Understand these three, then pair them with cache-friendly calling habits and tiered, off-peak scheduling, and the cost of pure writing scenarios can usually be compressed to a fraction of the original. If you need platform-side support, general cloud capabilities such as monitoring, alerting, and logging services can bring token costs into your regular observability system, so every unit of budget goes toward new output.
