API is usually used for Agent SDK shaped workloads, where 1h TTL would result in higher costs on average, so we stick to 5m to be safe. Interactive usage defaults to 1h because that is cheaper for people on average. This works for most people, but it is not perfect, so you can
Commentary explains cache TTL tradeoffs for agent SDK and interactive workloads
By
–