Watch: estimate context growth
No sound. Each step is captioned on screen and also written out in the guide below.
AI Tools
Most agent APIs have no memory: every turn resends the whole conversation so far. See how many tokens that adds up to over a session, compare ways to trim it, and estimate cost with a rate you supply.
Describe a turn to see how context grows.
| Strategy | Total tokens sent | Tokens in the last turn | Saved |
|---|
| Turn | Tokens in that request |
|---|
No sound. Each step is captioned on screen and also written out in the guide below.
Paste real examples: a system prompt, a user message, a reply, a tool result.
How many turns, and how much history you'd keep.
See the total tokens sent, and what each turn costs by the end of a long session.
No prices are built into this page: you enter your own rate, so the numbers never go stale.
Rates differ by provider, model, and change over time, and this site doesn't call any API to look them up. Enter your own current rate, and the dollar figures stay accurate for as long as that rate is.
That every token except the newest turn's new content hits an exact cache match. Real prompt caching requires the repeated prefix to match exactly and expires after a few minutes of inactivity, so treat this as a best case, not a quote.
It depends on the task. A sliding window is simplest and fine when old turns stop mattering. A summary keeps the gist of earlier turns for a small, steady cost. Resending everything is simplest to build but gets expensive fast in a long session.
No. Counting tokens and running the simulation both happen in your browser.