Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

TIL the prompt cache lasts 1 hour. I thought it was reduced to 5 minutes.


It depends. If you have a Claude Code subscription then it defaults to an hour, if you use Claude via an API or third party then it defaults to 5 minutes. You can opt-in to the 1 hour TTL but it obviously costs more.

> 5-minute cache write tokens are 1.25 times the base input tokens price > 1-hour cache write tokens are 2 times the base input tokens price

https://code.claude.com/docs/en/prompt-caching#on-a-claude-s...

https://platform.claude.com/docs/en/build-with-claude/prompt...


I think it depends on your subscription? I just have the 20$ and the cache is only 5 minutes. I’ve got the timer in my status line via ccstatusline and unless it is wrong, it says 5 minutes.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: