How to reduce token usage: practical prompt optimization that saves money
Start by removing repeated instructions and examples that don't help the answer. Then measure input and output charges separately. 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.
By TechCompare · Updated
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
A 30% reduction in input tokens cuts the input charge by 30%, not necessarily the total request bill, since output tokens are charged separately. Moving instructions to a system prompt doesn't by itself remove tokens. Removing duplicated text can lower the input count, and a supported cache may discount an eligible repeated prefix after a hit. Keep instructions clear, 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 tool ➜LLM VRAM Calculator
Calculate the VRAM needed to run or fine-tune any LLM at any quantization.
Use tool ➜JSON Formatter
Validate, format, and minify JSON data with readable output and error detection.
Use tool ➜