Practical prompt changes that cut token usage and cost
By TechCompare · Updated · How we check
Start by removing repeated instructions and examples that don't help the answer. A provider's prompt cache can discount eligible reused input, but a cache hit and the provider's current rates determine the savings.
Prompt optimization aims to get the same or better results with fewer input tokens. A 30% reduction in input tokens cuts the input charge by 30% at the same rate, but it doesn't reduce output-token charges. The total bill falls by a different amount depending on the request's input and output costs.
How this is calculated
Remove truly repeated text and shorten examples that don't change the result. System or developer messages can organize persistent instructions, but moving text there doesn't remove its tokens from the request.
Supported prompt caching may lower the price of eligible repeated input after a cache hit. For structured output, use the model's native JSON mode or structured output feature rather than lengthy formatting instructions. For multi-turn conversations, trim history only when earlier context isn't needed.
Verdict
Remove repeated text and long examples first, then measure input and output charges separately, because cutting input tokens only lowers the input part of the bill. Moving instructions to a system prompt doesn't by itself remove tokens, but removing duplicated text does, and a supported cache may discount an eligible repeated prefix after a hit.
Use structured output when it fits, and trim only history that the task no longer needs.
More Tokens scenarios
Related guides
Frequently asked questions
Does prompt length actually affect my API bill?
How do I cut tokens without losing output quality?
What is prompt caching and how much does it save?
Related tools
LLM API Pricing Calculator
Compare API costs across major models (OpenAI, Anthropic, Google) with prompt caching.
Use toolLLM VRAM Calculator
Calculate the VRAM needed to run or fine-tune any LLM at any quantization.
Use toolJSON Formatter
Validate, format, and minify JSON. Browse it as a tree, run JSONPath queries, compare two documents, or validate against a JSON Schema.
Use tool