Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesClaude API from A to ZPrompt Caching
A user message with two content blocks, text and image, and the model’s replyClaude Code terminal: the claude -p command with Read and Edit allowedRetries after a 429 error: each pause is twice as long, then success
Course

Claude API from A to Z

Module 1 · Getting Started
01Your first API call02The Messages API structure03Choosing a model
Module 2 · Prompt Engineering for Claude
04Designing system prompts05The 1M context window06XML tags in prompts07Few-shot prompting
Module 3 · Tool Use
08Tool Use basics09Tool patterns10Multi-turn conversations11Computer Use and Browser Use
Module 4 · Production
12Streaming13Message Batches API14Prompt Caching15Vision16Production patterns
Claude API from A to Z · Lesson 14

Prompt Caching

cache_control: automatic mode and breakpoints, 5-minute and 1-hour TTL, when cache hits happen, diagnosing misses, cost math on Sonnet 5.5.

30 min readUpdated Dec 2, 20262 questions in quizReady prompt included
🔒

Full lesson access

Prompt Caching opens after free sign-up: 7 days of full access to every course, no card needed.

Start 7-day free trial
Then Pro: $9/mo or $79/yr

View plans →

One trial lesson is open without sign-up: what a large language model is →

In this lesson
The ideaMode 1: automaticMode 2: explicit cachecontrol breakpointWhen a hit happensDiagnosing missesCost mathPracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free