Runs in your browser@dyorbuddy

Cache planner

Paste the part of your prompt that repeats: tools and system prompt. See whether each provider will cache it, where the breakpoints go, which lines break the cache, and what it saves.

Token counts are estimates (about 4 characters per token for prose, 3 for JSON). Exact counts need each provider's tokenizer.

Best saving per month
…

Anthropic

    Rules: official docs

    OpenAI

      Rules: Azure OpenAI docs (mirror of OpenAI)

      Google

        Rules: official docs

        DeepSeek

          Rules: official docs
          How it is computed
          • Without cache: every input token at the input price. With cache: the repeated part at the cache-read price, plus cache writes where the provider charges for them, plus new input and output at normal prices.
          • Anthropic: 5-minute writes cost 1.25× input, 1-hour writes 2×. If requests come further apart than the cache lives, every request pays the write again.
          • OpenAI rules come from Azure's copy of the OpenAI guide (checked 2026-12-05); the OpenAI site was not reachable for checking. Prices for all providers: models.dev, last change 2026-12-06.
          • Hits are assumed when requests arrive within the cache lifetime. Google and DeepSeek describe their caches as best effort, so real savings can be lower.