Prompt Caching

Most of a story's prompt is the same from one reply to the next: the character, the mode, the summary, most of the history. Prompt caching marks those unchanged parts so your provider can bill them at its cache price, a fraction of normal input. On Claude models a cache read costs 10% or less of the usual price.

It's on by default, and it's a setting on your own-key presets for Anthropic, OpenRouter and OpenAI. Other providers either cache on their own or not at all; built-in presets don't have the setting.

Where to find it

Step by step

Check or change caching on a preset

  1. In the writing app, open Settings → LLM.
  2. Click Edit on an Anthropic, OpenRouter or OpenAI preset.
  3. Go to Advanced Settings and open Prompt Caching.
  4. Make sure Enable Prompt Caching is on.
  5. For Claude models, pick a Cache Duration:
    • 5 Minutes (cheaper writes) — best when you reply quickly.
    • 1 Hour (longer cache) — best for slower-paced stories.
  6. Click Save Changes.

A preset saved before caching was on by default may still show it off. If you didn't turn it off on purpose, switch it on.

See what a reply cached

  1. Open a reply's details (About this reply on the chat site, Info in the writing app).
  2. Each model call lists its tokens, for example "12,400 in · 380 out · 11,900 cache · 300 written".
    • cache — tokens read back from the cache, billed at the cheaper rate.
    • written — tokens written into the cache this turn, billed above the normal price.

The figures only show when the provider reported them.

What it costs

Price
Cache read A fraction of normal input: 10% or less on Claude, up to half price on some other models
Cache write, 5 minutes 1.25× normal input
Cache write, 1 hour 2× normal input
No caching 1×

Because a write costs more, caching pays off when later replies read back what earlier ones wrote. Regenerating a reply right away is where it pays off most. Cache Duration applies to Claude models, direct or through OpenRouter; other models keep their own cache lifetime.

What gets cached