The prompt is a subscription
Every call sends the system prompt again. A 2,000-token instruction block is not paid once at design time; it is paid on every request, multiplied by the monthly call count and the input price. That is why a prompt that looks harmless in a demo can become the largest line on a production bill.
The same logic applies to tool definitions, policy text, style guides and few-shot examples. If they repeat on every call, they are part of the input volume. Treating them as free because they were written once is the most common estimation error in this category.
A 2,000-token prompt at 10,000 calls
The table holds calls (10,000 per month), output (300 tokens per call) and the three models fixed, and changes only the prompt size. Each cell is the monthly total at recorded list prices, so the difference between columns is the prompt tax.
| Model | 500-token prompt | 2,000-token prompt | 8,000-token prompt |
|---|---|---|---|
| GLM 5.3 Flash | $0.4225 | $0.9565 | $3.09 |
| DeepSeek V4.1 Flash | $1.96 | $2.72 | $5.78 |
| Qwen3.8 27B | $6.18 | $7.08 | $10.68 |
Output is 300 tokens per call; cache is not applied in this table.
Why the tax hides on a price sheet
A price sheet lists a rate per million tokens. It does not know how many tokens your prompt has. Two teams can look at the same input price and get very different bills because one sends a 500-token instruction and the other sends an 8,000-token policy, examples and schema.
The hidden multiplier is the prompt size times the call count. At ten thousand calls, every extra thousand prompt tokens adds ten million input tokens per month. That is the number to put next to the unit price when comparing options, because it is the part of the bill the model choice does not change.
What caching changes
Caching discounts the repeated prompt, so it attacks exactly this line. The table applies three hit rates to a 2,000-token prompt on GLM 5.3 Flash, whose recorded prices are $0.0356 input and $0.03 cached input per 1M tokens.
Caching does not remove the prompt; it changes the price of the repeated part. If the prompt is stable and the provider publishes a cache price, the saving can be large. If the prompt changes per user or per request, the measured hit rate will be low and the table will overstate the benefit.
| Cache hit rate | Monthly total | Saving vs no cache |
|---|---|---|
| 0% | $0.9565 | $0 |
| 50% | $0.9005 | $0.056 |
| 80% | $0.8669 | $0.0896 |
Cache-write costs are not published and are excluded; the true saving is lower.
Trimming few-shot examples
Few-shot examples are often the largest removable block. Teams add examples to fix one failure, then keep adding until the prompt is several thousand tokens. Each example is paid on every call, long after the failure was fixed.
A useful audit is to remove examples one at a time and re-run the evaluation. If quality holds, the tokens are pure cost. If quality drops, the example is earning its place. The point is to make the trade-off explicit rather than letting the prompt grow by accretion.
Compressing retrieved context
Retrieved context is a different kind of prompt growth: it changes per request and may not be cacheable. Summarising or re-ranking chunks before they enter the prompt can cut tokens without changing the model, often more than a per-token price difference.
The cost of compression is engineering and possible quality loss. Measure both. A retrieval step that halves prompt tokens while preserving answer quality is a larger and more durable saving than switching to a model with a slightly lower input price.
A trimming checklist
Work from the largest block down, and measure after each change. The checklist below is ordered by typical impact, not by implementation difficulty.
- Measure the prompt size from real requests, not from the source file.
- Separate the stable prefix from the per-request text.
- Remove few-shot examples that no longer change evaluation results.
- Compress retrieved chunks before they reach the prompt.
- Enable caching only where the prefix is stable and priced.
- Re-run the estimate after each change and record the new token count.
A worked trimming decision
Take an 8,000-token prompt on GLM 5.3 Flash at 10,000 calls per month. Cutting it to 2,000 tokens saves $2.14 per month at the same call count and output length. That is the value of the trimming work, stated in the same unit as the invoice.
The table splits the cut into three steps so the saving can be sequenced. Removing the first two thousand tokens is worth more than the next two, because each step removes the same number of tokens and therefore the same fraction of the remaining prompt. A team that can only do one step still gets a measurable result.
| Trim step | Prompt after | Monthly saving |
|---|---|---|
| 8,000 → 6,000 | 6,000 | $0.712 |
| 6,000 → 4,000 | 4,000 | $0.712 |
| 4,000 → 2,000 | 2,000 | $0.712 |
Calculated on GLM 5.3 Flash at 10,000 calls and 300 output tokens per call.
Prefixes, templates and per-request text
Not all prompt tokens behave the same way. A stable prefix is identical on every call and can be cached. A template changes only in a few slots but keeps most of its text, so it may still cache if the provider matches a prefix. Per-request text, such as the user question or freshly retrieved chunks, changes every time and is the hardest part to discount.
Sort the prompt into those three buckets before optimising. Trimming a stable prefix reduces both the standard bill and the cacheable share in a predictable way. Trimming per-request text reduces the part that was never cacheable. Mixing the two in one vague instruction to shorten the prompt makes it hard to know which lever worked.
Tool definitions are prompt tokens too
Tool and function definitions are sent with the request and billed as input. A large tool catalogue can quietly add thousands of tokens to every call, even when the model uses only one tool. Teams often audit the visible prose and forget the schema behind it.
The same test applies: remove or shorten a definition, then re-run the evaluation. If the model still selects the right tool, the definition was larger than it needed to be. A compact schema is a cost saving that does not depend on switching models or changing the provider.
Measure before you trim
Take ten real requests and count the tokens in each section: instruction, tool schema, few-shot examples, retrieved context and user turn. Do this with the provider's tokenizer or its usage report, not with the source file, because the template may add separators or repeat a block. The section totals tell you where the prompt tax actually lives.
Then trim the largest section first and re-measure. A change that removes two thousand tokens should show up as a smaller input count on the next request; if it does not, the block was not where you thought it was. Measuring after each step also prevents a team from removing a small example while the large schema stays untouched.
A monthly prompt budget
A prompt budget is a target token count, not a target dollar amount. Pick a ceiling for the stable prefix and a ceiling for per-request context, then alert when either is exceeded. Token budgets are easier to review than bills because they point at the prompt rather than at the model price.
The dollar estimate still matters, but it changes with the model and the cache rate. The token budget is the part the team controls directly. Keep both: the token budget for engineering, the monthly estimate for finance, and a note explaining how one maps to the other.
What this does not model
Cache writes, storage duration and minimum cacheable lengths are not in the records. The table uses published input prices only and labels the saving as an estimate. A provider may charge for the first write or require a minimum prefix, which would raise the true cost above this estimate.
Answer quality, latency and rate limits are not measured here either. A shorter prompt is only a win if the product still works. The arithmetic tells you what the prompt costs; the evaluation tells you what you can safely remove.
Takeaways
- A repeated system prompt is billed on every call, not once.
- Prompt size × call count is the hidden multiplier behind the unit price.
- Caching attacks the repeated prefix; it does nothing for unique context.
- Trim few-shot examples and retrieved chunks before changing models.
FAQ
- How many tokens is my system prompt?
- Measure a real request with the provider's tokenizer or usage report. Four characters per token is a starting estimate, not a measurement; code, JSON and non-English text change the ratio.
- Does caching make a long prompt free?
- No. It discounts the repeated share at the published cached-input price. Unique context, changing greetings and cache-write costs still appear on the bill.
- Should I shorten the prompt or switch models first?
- Shorten first when the prompt is the larger line, because the saving applies to every model you might choose. Switch only when the remaining unit-price difference is large after trimming.
- Can I cache few-shot examples?
- Only if they sit in a stable prefix and the provider publishes a cached-input price. Examples that change per request or sit after a changing block will not produce hits. Measure the rate instead of assuming it.
- Why is output included in every total?
- Because a bill includes both sides. Holding output fixed at 300 tokens per call lets the table isolate the prompt tax while still showing a realistic monthly total.