Prompt Caching
Automatic cache pricing for repeated input, server-side reuse thresholds, and how to maximize savings
Talos automatically detects repeated prompt prefixes and bills them at a 90% discount. Caching requires no code changes and works on both API surfaces.
Two things behave differently and are worth separating: what you pay, and what our servers recompute.
Pricing
When a message you send byte-for-byte matches a prefix you sent within the last 5 minutes, those tokens are billed as cache read instead of input. New prefixes are registered automatically. Cache state is isolated per organization; your prompts never prime another customer's cache.
| Token class | Price / 1M tokens | |
|---|---|---|
| Input | €0.50 | |
| Cache read | €0.05 | 90% off |
| Cache write | €0.50 | no premium |
Cache writes cost the same as regular input. There is no penalty for a cache miss.
This applies to any repeated message, however short, and is independent of the server-side thresholds below.
Server-side reuse
Our current serving stack reuses computation only for long shared prefixes. As a rule of thumb: reuse begins once the stable part of your prompt (system prompt, reference documents, conversation history) exceeds roughly 4,500 tokens. The most recent few thousand tokens of a prefix are always processed fresh. Reuse also depends on how recently the prefix was last used; under load, idle prefixes are evicted first.
Below the threshold, repeated prompts do not start faster. Above it, repeat requests typically reach the first token sooner, and the effect grows with prefix length. We do not guarantee specific latencies.
This is temporary. The coarse threshold is a property of our current serving stack. We are replacing that layer; reuse will become finer-grained with no changes on your side.
Your bill is unaffected by these thresholds. Repeated input is credited at cache-read rates whatever its length. Server-side reuse controls compute on our end only. It never changes what you pay.
Maximizing savings
- Order your prompt stable-first: system prompt and reference documents before variable user content.
- Keep prefixes byte-stable. A timestamp or request ID inside the system prompt breaks every hit.
- Resend conversation history verbatim. Rewriting or truncating earlier turns invalidates the prefix.
- Stay inside the 5-minute window for session-style workloads.
- For agents: a long stable system prefix above the reuse threshold also earns faster repeat turns.
Visibility
- Messages API (
/v1/messages): each response reportscache_read_input_tokensandcache_creation_input_tokensinusage. Explicitcache_controlbreakpoints are honored; without them, caching still runs automatically. - Chat Completions API (
/v1/chat/completions): the discount applies automatically. Totals appear in the Console usage dashboard.