How prompt caching works in the Claude API: cache_control breakpoints, automatic caching, the 5-minute and 1-hour cache lifetimes, pricing, prefix order, minimum sizes, reading cache usage fields and design patterns for big savings.
A complete beginner-to-production guide to the Claude API: getting an API key, installing the Python and TypeScript SDKs, the Messages API, system prompts, multi-turn chat, streaming, model choice, errors and best practices.