In a long chat or roleplay session, every new turn makes the model re-read the whole history. Ten thousand words in, you're paying to "read" those ten thousand words again — every single turn.

That's what prompt caching is for. When the beginning of your conversation stays the same, the provider can bill those repeated tokens at the cache price instead of the full input price. On the flash-class model I use most, that's $0.083 per million input tokens at full price versus $0.005 per million cached — a 16x difference.

How to check if you're paying full price

Open your usage bill and compare two numbers: total input tokens and cached input tokens. If your sessions are long but the cached number sits near zero, you're paying full price for words the model has already read dozens of times.

Why the cache keeps missing

  • You edited the system prompt or character card mid-chat. Any change near the start invalidates everything after it.
  • Long pauses. Caches expire; come back hours later and the first turn is full price again.
  • Switching models mid-session. A new model means a cold cache.

What actually helps

  • Freeze your system prompt and character card before a long session starts.
  • If you need to change the setup, change it between sessions, not during one.
  • Instead of editing the card to fix the story, summarize and start fresh — a cold cache on a short context is cheaper than a broken cache on a huge one.

What's your cache hit rate on a long session? Most people I ask have never looked at that line of the bill.

I run Lingyi, a small API relay (DeepSeek / GLM / Kimi, original and less-restricted versions, per-use billing you can audit line by line): https://ai.lingapp.io/?aff=vrDV — questions welcome.