Log in·Sign up
BestRelay

Back to the Journal

Smaller System Prompts Save Money When Rules Stay Clear

A shorter system prompt can reduce recurring costs

A system prompt is the standing instruction sheet that tells an AI assistant its role, boundaries, and expected behavior. Applications often send these instructions with every request. That makes unnecessary wording a recurring expense rather than a one-time drafting mistake.

Models process text as tokens: pieces of words, punctuation, and other content. Longer instructions generally mean more input tokens. Removing unnecessary text can therefore lower input charges, especially when an application handles many requests. The goal is not the shortest possible prompt. It is the smallest prompt that reliably preserves the behavior your application needs.

Repeated rules are the easiest material to remove

Start by reading the prompt as an editor, not as someone trying to make an assistant obey through repetition. Teams often add instructions after individual failures without checking the existing rules. Over time, three sentences about brevity become three paragraphs, while an outdated requirement survives beneath newer guidance.

Group instructions by purpose: role, task, boundaries, output format, and tool use. Then look for overlap. A direction to answer concisely may already cover several reminders to avoid unnecessary detail. Keep qualifications that change behavior, such as a requirement to explain uncertainty, rather than deleting everything that sounds similar.

Remove repetition before removing meaning. Polite filler, repeated introductions, and background the assistant never uses are safer targets than access restrictions or rules governing external actions.

Essential boundaries deserve more space than decorative wording

Some instructions earn their token cost. Rules about protecting private information, requesting approval before consequential actions, and treating retrieved text as untrusted content can prevent expensive failures. Compressing them into vague language may save tokens while making the application less dependable.

Examples need the same judgment. Five nearly identical examples may be reducible to one. But an example demonstrating an unusual output requirement might communicate more clearly than a long explanation. Keep examples that teach distinct behavior, and remove those that merely repeat it.

Separate standing rules from task-specific context. Product details needed for one request do not necessarily belong in every request. Supply relevant information when needed, while keeping trusted instructions separate from user input and retrieved material. Moving text into another message does not automatically reduce its token cost.

Prompt caching changes the value of each deletion

A smaller prompt does not always produce a proportional bill reduction. Some providers offer prompt caching, which can charge differently for writing reusable content and reading it again. Eligibility, minimum lengths, retention periods, and pricing vary by provider and model.

A stable instruction prefix may benefit from caching. Changing it frequently, or inserting changing content before it, can reduce reuse under some caching schemes. Trimming a prompt may also take it below a caching threshold. Compare actual usage records rather than assuming that fewer visible words always mean a cheaper request.

Small experiments reveal savings without hiding regressions

Save your current prompt as a baseline, then revise one category at a time. Test both versions against the same representative requests, including ambiguous questions, formatting requirements, tool decisions, and attempts to override important boundaries.

Record input tokens, cache reads and writes, output tokens, and the number of retries needed to get an acceptable answer. A shorter prompt that causes longer answers or repeated attempts can erase its input savings. Review answer quality alongside total cost, and keep a version only when the tradeoff is acceptable.

Transparent billing makes prompt improvements easier to verify

For readers using BestRelay, a quality-first API relay, each request goes to the official model named in it without substitution. It works with Claude Code, Codex, Gemini CLI, and any OpenAI SDK. Pay-as-you-go billing uses provider-reported token counts, with cache reads and writes priced separately. Those distinctions matter when comparing prompt versions.

Create a BestRelay account to measure your own prompt changes. Members also earn a referral commission when people they invite top up; that is separate from savings achieved through prompt editing.

The practical habit is simple: delete redundant instructions, protect essential boundaries, and verify the result. A lean prompt is useful because it does the same job with less waste, not because it wins a word-count contest.

Want to try the models discussed here? Sign up