Context Compression Calculator
Find the session size at which summarising it starts to pay off.
Where the two costs cross
What the rates are made of
Questions about compressing a session
When does summarising a session save money?
Once the session passes the size named above, and not before that.
Why does session size decide it at all?
Because the summary is capped at a share of the window, so it costs the same at any session size while the session it replaces keeps getting dearer.
Why does the cap matter so much?
A wider cap means more summary tokens, and every one of them is new text billed at the full input price.
What does the token mix change?
It sets how much of your context is a cache hit, which sets how cheaply the kept session grows.
Why is the break-even cap so low on a coding session?
Because a coding session barely misses the cache, so the session you already hold is already the cheap option.
Where do the preset rates come from?
They are published list prices for one model from each major provider, and every price field is editable.