Your Long AI Chats Are the Expensive Ones — I Measured It
Short questions never seem to dent your AI allowance. Then you spend an afternoon iterating on code with a model — and the allowance evaporates. OpenAI's help center now says the quiet part out loud: starting in December
Short questions never seem to dent your AI allowance. Then you spend an afternoon iterating on code with a model — and the allowance evaporates. OpenAI's help center now says the quiet part out loud: starting in December, Plus, Pro, and Business plans share one allowance across ChatGPT and Codex, and usage is "measured in tokens".
That framing makes history management the main lever, so I measured it: three synthetic workloads, four history strategies, and one question — how fast does the input side grow, and what does each strategy trade away?
One boundary first: this experiment measures the input volume sent to a model. It does not measure how fast any subscription allowance drains. Those are different claims, and I keep them separate throughout.
What a token is
A token is the small unit a model reads and writes — roughly 1-2 Japanese characters, or part of an English word. If usage is token-denominated, what matters is not the characters you type but the total text the model reads per exchange.
What a long chat actually sends
Most chat UIs re-send the whole conversation with every new message. Turn 1 sends one question. Turn 10 sends questions 1-10 and answers 1-9. Turn 40 sends all of it again.
So each turn reads more than the last, and the cumulative total grows faster than a simple sum. That is the mechanical reason long sessions feel expensive.
The experiment
Three synthetic workloads (no personal data): A, ten turns of short Q&A; B, forty turns of a coding consult with growing constraints; C, twenty agent-style steps with tool results. I replayed each one under four history strategies:
full: re-send the entire conversation every turn
rolling-every: compress old turns into a summary, rebuilt every time messages fall out of the window
rolling-6: same, rebuilt only every 6 dropped messages
split: cut the session at fixed intervals, carrying only a handoff (goal, constraints, decisions)
Token counts came from two real tokenizers (GPT-2 and Qwen2.5 BPE), counting [role] text concatenations — an approximation of chat templates, stated up front. Every workload had planted must-keep facts (goal, constraints, decisions, numbers, open items), and I checked how many survived in the final context.
Results: the 40-turn coding consult
| strategy | cumulative input | net (incl. overhead) | vs full | facts kept |
|---|---|---|---|---|
| full | 133,352 | 133,352 | baseline | 10/10 |
| rolling-every | 58,597 | 98,616 | -26.0% | 10/10 |
| rolling-6 | 57,975 | 73,564 | -44.8% | 10/10 |
| split | 58,759 | 58,759 | -55.9% | 6/10 |
"net" includes the cost of producing summaries — reading the source text and writing the replacement. The cumulative curve for full looks like this:
•
••
••
••
••
••
••
0 133,352 tok
The last turn alone reads 6,350 tokens — the cumulative total is 21x that. Nothing is being remembered; every turn pays for everything before it.
The cheapest strategy failed the quality check
split won on tokens and lost on substance. Its handoff could not fit everything, and four of ten planted facts disappeared from the final context:
the original goal (an inventory-CLI design consult)
the "Python 3.11 only" environment constraint
the "standard library only" dependency rule
the decision "switch IDs to serial numbers"
Answer the final question with those gone and the design is simply wrong — the model never sees the constraints it is breaking.
One honest caveat: "facts kept 10/10" measures presence in the final context, not answer correctness. A model can hold ten facts and still answer badly.
Rebuild frequency is a cost knob
Rolling summaries kept all 10 facts — but their cost depends almost entirely on how often you rebuild:
rebuilt every time: net 98,616 (-26.0%)
rebuilt every 6 dropped messages: net 73,564 (-44.8%)
Every rebuild re-reads source text and re-writes the summary. Rebuild rarely and the summary goes stale between rebuilds; rebuild constantly and you pay a fresh read+write each time. Frequency is the trade-off, not a detail.
Short chats: summarizing made it worse
On workload A (ten short turns), rolling-every came out 7.8% more expensive than full history:
| strategy | cumulative input | net | vs full | facts kept |
|---|---|---|---|---|
| full | 7,167 | 7,167 | baseline | 6/6 |
| rolling-every | 6,621 | 7,728 | +7.8% | 4/6 |
| split | 5,214 | 5,214 | -27.2% | 1/6 |
With a short conversation there is almost nothing to save, and the summary-writing overhead dominates. Adding a compression layer to short chats is a net loss.
Does the tokenizer change the ranking?
No — that was the stability check. Qwen2.5 BPE counts the same workloads at roughly 0.6x of GPT-2's numbers, and the ordering held: full 80,832 → rolling-every -33.9% → rolling-6 -49.1% → split -56.1%. Absolute token counts are tokenizer-specific; the relative story is not.
What I'd change in daily use
Short question-answer sessions: no compression layer. It costs more than it saves.
Long ongoing work (code iteration, long drafting): full history is the expensive mode; periodic summaries are where the savings are.
Splitting a session: never just cut the transcript — restate the goal, the hard constraints, and the decisions as an explicit handoff.
These come from three synthetic workloads; they are a starting point, not a law.
Limitations
Three synthetic workloads do not represent real conversation distributions.
Token counts are
[role] textconcatenations, not real chat templates.The summarizer is a deterministic extractive stub, not an LLM — a real model would retain different things.
Prompt caching and pricing tiers are ignored entirely.
Nothing here measures how fast any subscription allowance actually drains.
The reproduction scripts (workload generator, tokenizer harness, per-turn JSON output) are straightforward enough that the whole pipeline runs offline in seconds.
Over to you
The official docs say usage is measured in tokens — so history management is the main lever we actually control.
So, which camp are you in for long AI work: keep the conversation intact and pay the re-send, or summarize and switch sessions along the way? And if you have ever watched an allowance vanish mid-task, I'd like to hear what the session looked like.
This is a personal experiment - no affiliation with any provider. If you spot a mistake, I'd love to hear it.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.