← All posts

Tutorials

The AI Helper now shows exactly how much of your prompt hits the cache

Up to v3.2.70 the context meter in the AI Helper estimated token usage by the rule "characters / 4". It worked, but it was off by 10–30% depending on the model and language. In v3.2.71–73 we switched to real numbers from the API — with an extra breakdown of how many tokens land in the cache (which costs ~10× less than fresh input).

What prompt cache is

All three of the big LLM APIs (Anthropic Claude, OpenAI GPT, Google Gemini) support caching long prompt prefixes. If you keep sending requests with the same start (the same system prompt + DOM snapshot + conversation history), the second and later calls don't pay for those tokens again — the provider recognizes the same prefix and charges you only the cache-hit price (~10% of full token price).

For the AI Helper, which works through a conversation step by step — the system prompt doesn't change, the DOM tree changes rarely, the history grows linearly — the cache typically catches 70–95% of the prompt. That's the difference between a dollar and ten cents per round.

What you now see in the AI Helper (v3.2.73)

Below the chat window, in the stats bar, there are three separate token indicators:

Sum of input + cached is the total length of your prompt for this turn — the equivalent of the old single "input". Disjoint — no double counting.

Where the numbers come from

Providers return usage in API response fields. Each has its own naming:

The AI Helper reads each provider's response and normalizes it into a uniform format (input / cached / output). The indicator updates immediately after the turn ends — no extra calls, no estimation.

What it gives you in practice

Three concrete things you didn't know before v3.2.73:

Why this matters

LLM APIs are cheaper than they were a year ago, but cents still add up under heavy use. We use the AI Helper to build complex CSS/JS rules across dozens of domains — each round is 5–20 thousand tokens. Without cache, that's dollars per month; with a 90% cache hit, tens of cents. Showing real numbers helps shape the workflow that way.

Provider notes

Cache is provider-specific — different TTL, different minimum prefix size, different prices. For orientation:

Values current at the time of writing (May 2026) — check live rates with your provider.

See also

Install JustZix — and use real numbers instead of estimates.

Rate this post

No ratings yet — be the first.

Try it yourself

Install JustZix and paste any snippet from this article. Two minutes from zero to a working rule across all your devices.

Get JustZix

Features · How it works · Examples · Use cases