Pricing
Supercache uses separate read and write prices:
Apply these multipliers to the cached-input and input prices on the
Pricing page.
If regular cache and Supercache contain the same token, Sail uses the lower
Supercache read price.
Write a prefix
Setmetadata.supercache_write to "24h". This is the only accepted value.
Replace the placeholder below with at least 1,025 tokens of reusable content.
Read a prefix
Sail automatically uses the longest matching stored prefix. Replace the placeholder with the exact reusable content from the write request.Usage fields
Completed Responses include two decimal-string metadata fields:metadata.supercached_input_tokensis the number of tokens read from Supercache.metadata.supercache_write_input_tokensis the number of tokens written to Supercache.usage.input_tokens_details.cached_tokensincludes both regular cached input and Supercache reads.
usage.prompt_tokens_details.cached_tokens. It does not include the separate
Supercache read and write counts.