Repeated conversation prefixes may hit the cache. Put stable instructions, tool definitions and unchanged history first, followed by new user input. Changing the prefix can prevent a hit.
Hits use the model cache-read rate. Anthropic cache writes use the cache-write rate and are deducted from ordinary input. OpenAI automatic prefix caching has no additional write surcharge. Inspect the request record in the console for actual usage and charges.
Discounts differ by model. See the four rates on each model page; cache hits are not guaranteed.