AI & Artificial Intelligence
Prompt cache keys: design reusable prefixes and user separation
A prompt cache key is an identifier an API provider may use to route or account for cache processing across repeated requests. **The key does not store prompt text or guarantee a cache hit when the content differs.** Cache reuse primarily depends on an eligible, identical prefix in the model request; a key's role varies by provider and model version. An application-owned hash of prompt text is also a different concept from an API cache key.