Prompt caching is a technique in large language model APIs that stores the part of a prompt repeated across requests, such as system instructions, long documents or earlier conversation history, so later requests can reuse it. Because the model does not reprocess that content from scratch, it lowers the cost of input tokens and reduces response latency. Google's Gemini API calls the same feature context caching.
AI companies including Anthropic, OpenAI and Google offer it as an API feature. Cached content expires after a period without use, after which it must be processed again. It is widely used by chatbots and coding agents that carry on long conversations.