Context Window Timeline Viewer

Visualize how context fills up over a long multi-turn conversation

See a turn-by-turn bar chart of context consumption in a long chat, showing when you cross 50%, 75% and 100% of the model's window and where token costs start to spike. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

Why does each turn cost more in a long chat?

Most chat APIs resend the entire conversation history as input every turn. As history grows, input tokens — and therefore cost — grow with it, even if your new message is short. Cost per turn rises roughly linearly with conversation length.

Context window timeline viewer

In a long multi-turn chat, context accumulates: most APIs resend the whole history every turn. This viewer plots a bar per turn so you can see exactly when the conversation crosses 50%, 75% and 100% of the model’s context window — and where the per-turn cost starts climbing because you are resending an ever-larger history.

Who needs this

Any developer or builder running multi-turn chat in production: chatbots, coding assistants, customer-support agents, document Q&A loops, and agentic task runners where the model calls tools over many rounds. Without visualising context growth it is easy to hit the limit mid-conversation and have the API reject the request, or to accumulate surprise costs because early turns now weigh heavily on every subsequent call.

How it works

Each turn adds the tokens from your new message plus the assistant’s reply to a running total. The tool charts that cumulative total against the window limit:

context_after_turn(n) = Σ (user_tokens + reply_tokens) for turns 1..n
input_cost_per_turn(n) ≈ context_before_turn(n) × input_price

Because the full history is re-sent as input each turn, input cost grows linearly with conversation length — the tenth turn can cost several times the first even if your messages stay the same size. The timeline marks the turn where you first cross each threshold so you know when to act.

Worked example

Suppose a model has a 128,000-token context window. A user sends roughly 150 tokens per message and the model replies with roughly 300 tokens per turn — so each turn adds 450 tokens.

TurnCumulative tokens% of window
14500.35%
5022,50017.6%
10045,00035.2%
20090,00070.3%
284127,800~100%

The cost of turn 284 is over 100 times the cost of turn 1 for input tokens alone — even though the user’s message is the same length both times. That cost spike, and the impending context overflow, is exactly what the timeline makes visible.

Strategies once you see the curve

  • Summarize at 75%. When the bar chart crosses the 75% marker, roll old turns into a compact system-level summary and restart history from there. Your next turn’s input cost drops sharply.
  • Sliding window. Keep only the last N turns plus a running summary for predictable per-turn cost ceilings.
  • Retrieval augmentation. For document Q&A or code search, store the material outside the context and inject only the relevant retrieved chunks per turn, so the window never fills with static content.
  • Bigger window ≠ cheaper. A model with a 200K window still charges per input token. The window just postpones the overflow — the cost curve is the same shape.