Build applications with the Anthropic API (Claude models) in Python, TypeScript, or curl. Covers model IDs, pricing, streaming, prompt caching, tool use, structured outputs, batches, files, and agent design. Use when writing or debugging code that calls Claude via the anthropic SDK, @anthropic-ai/sdk, or raw HTTP; when choosing a model or estimating cost; when migrating to a newer model; or when a request returns 400 / refusal / truncated output. Also triggers on "which model should I use", "how much will this cost", "claude api", "anthropic sdk", "prompt caching", "model id".
2026-07-27