Glossary term
What is Prompt caching?
Reusing the repeated start of a prompt so later requests read it at a lower price.
Definition
Prompt caching stores the repeated beginning of a prompt, such as a long system message, a document or tool definitions, after the first request. Later requests that start with the same text read it from the cache, which is faster and billed at a lower cached-input price than sending it fresh.
Why it matters
Agents and chat apps resend the same long prefix on every turn. Caching it can cut both cost and time to first token sharply, as long as the repeated part stays at the very start and unchanged.
How it works on OceanToken
On OceanToken, GPT, DeepSeek, Qwen and GLM models cache on their own. Claude caches when you mark the repeated part with cache_control. Cache hits show in each response's usage and in the console's Logs.