Skip to content
UtilPouch

Multi-turn chat and prompt caching simulator

Every turn resends the whole conversation, so long chats and agents cost far more than one request. See the monthly bill with and without prompt caching.

Your conversation

Processed on this device
Start from
tokens
1–50
tokens
tokens
/ month

New input is what each turn adds: the user’s message or a tool result.

Without caching

$0.00

With prompt caching

$0.00

Input tokens per session
Output tokens per session
Longest request with reply

Turn by turn, one session

TurnInput that turnTotal so farWith caching

Prices checked December 6, 2026. Sources: OpenAI, Anthropic, Google, DeepSeek. Confirm current rates before you budget.

How the turn-by-turn simulation works

  1. Context grows each turn

    Turn n sends the system prompt, every earlier message and reply, and the new message. Input per turn rises steadily, so total input grows roughly with the square of the turn count.

  2. Caching reprices the repeat

    With prompt caching, the part already sent is read from cache at a fraction of the input price. What is new since the last turn is written to cache once.

  3. Checked against the context window

    The longest request in the session is compared with the model’s context window, with a warning if the conversation would not fit.

Questions

Why do multi-turn conversations cost so much?

Chat APIs are stateless: every turn resends the full history. A 20-turn chat sends the system prompt 20 times and the first message 20 times, so input tokens grow much faster than the conversation itself.

How much does prompt caching save?

It depends on how much of each request repeats. For long chats with a large system prompt, savings of 50 to 80% on the total bill are common, because cached input costs 10% or less of the normal rate on most providers.

What does a cache write cost?

Some providers charge extra the first time content is cached (Anthropic charges 1.25× input for the default cache), others charge nothing extra. The simulator uses each model’s listed write price.

Does caching change the answers?

No. Caching only changes how the repeated prefix is billed and how fast it is processed. The model sees the same input either way.