#prompt caching
2 tutorials, projects and news items tagged prompt caching.
Claude API gets pricier after a pause, blame prompt caching
Pause for a few minutes on the Claude API and your next message can cost far more, because prompt caching defaults to 5 minutes. Here is how the costs add up, when to switch to the 1-hour cache, and a prompt that has your AI agent check your code.
Switch models mid-chat in Claude Code, and the next message costs far more
Each model keeps its own prompt cache, so switching with /model in a long session reprocesses the whole history at the full price. Boil the problem down to a short note and start a new session. A prompt is included.
