# Prompt Caching is GA on DigitalOcean Serverless Inference: Up to 90% Off the Context Your Agents Resend

DevFeed: [Prompt Caching is GA on DigitalOcean Serverless Inference: Up to 90% Off the Context Your Agents Resend](<https://devfeed.tech/articles/prompt-caching-is-ga-on-digitalocean-serverless-inference-up-to-90-off-the-context-your-agents-resend-97779.md>)

Original publisher: [Read original article](<https://www.digitalocean.com/blog/now-available-prompt-caching>)

Author: DigitalOcean

Published: 2026-10-23T16:48:34Z

Content type: release

Language: en

Sources: [DigitalOcean](<https://devfeed.tech/sources/digitalocean.md>)

Topics: [prompt](<https://devfeed.tech/topics/prompt.md>), [AI Context Management](<https://devfeed.tech/topics/ai-context-management.md>), [session affinity](<https://devfeed.tech/topics/session-affinity.md>), [context window](<https://devfeed.tech/topics/context-window.md>), [Serverless](<https://devfeed.tech/topics/serverless.md>)

Tags: [affinity](<https://devfeed.tech/tags/affinity.md>), [agents](<https://devfeed.tech/tags/agents.md>), [caching](<https://devfeed.tech/tags/caching.md>), [digitalocean](<https://devfeed.tech/tags/digitalocean.md>), [product-updates](<https://devfeed.tech/tags/product-updates.md>), [prompt-caching](<https://devfeed.tech/tags/prompt-caching.md>), [router](<https://devfeed.tech/tags/router.md>), [routing](<https://devfeed.tech/tags/routing.md>), [serverless-inference](<https://devfeed.tech/tags/serverless-inference.md>)

## AI overview

DigitalOcean says prompt caching is generally available for supported models in its open model catalog, with no request-code changes required. Cached input costs up to 90% less, and time to first token drops by up to 80%, though savings depend on the model and require a cache hit. Cache affinity steers requests to replicas holding most of the prompt, then balances across the least busy warm replicas; it requires no session ID. The publisher reports 85-95% cache hit rates on flagship open models in October 2026 testing. The excerpt ends mid-sentence, so it does not provide the full explanation or qualification of the feature.

## Source excerpt

Prompt caching is now generally available on DigitalOcean Serverless Inference, across supported models in our open model catalog, with no changes to your request code required. Cached input is billed at up to 90% off and time to first token drops by up to 80%.* An agent never starts over. Each new call adds the result of its last tool call to the end of a context that already holds the system prompt, the tool definitions, every file it has read, and every earlier action and result. On DigitalOcean Serverless Inference, more than 90% of the input tokens that agents send are tokens the model has already processed. Prompt caching cuts the cost of those tokens by up to 90% depending on the model, but only when the request reaches the replica holding the cache. Without cache-aware routing, a repeat request lands wherever the load balancer sends it, and on the wrong replica you pay full price for tokens you already sent. DigitalOcean cache affinity routes each request to the replica that already holds most of its prompt. There's no session ID to manage: a conversation's second message already contains its first, so the router finds the match on its own. On our flagship open models, cache hit rates measured in our October 2026 testing ran between 85 and 95%. How cache affinity makes hit rates reliable Your cached context lives on one specific replica. If your next request lands somewhere else, that replica doesn't have your cache, and you pay full price even though your prompt repeats. Serverless traffic spreads across many replicas, so without something steering repeat requests back to the right one, hit rate is mostly a coin flip. During public preview, caching was on for everyone and the discount was real, but whether you hit the cache was mostly chance. Cache affinity fixes that. For every request, the router checks which replicas already hold most of a request's prompt, narrows to that warm set, and only then balances load across whichever of those is least busy. If