Practical 2026 reference for Anthropic API cost, pricing, and tier selection.
What is the Claude API Cookbook?
A free, independent reference covering Anthropic API pricing, prompt caching, the batch API, model tiers (Opus 4.7, Sonnet 4.6, Haiku 4.5), and tier-selection rules. 25 cross-linked pages and 4 free companion tools.
Is this affiliated with Anthropic?
No. This is an independent reference. Pricing reflects public Anthropic rates as of 2026-05; verify on anthropic.com/pricing before committing budget.
How do I estimate my Claude API bill?
Use the free Claude Cost Calculator at claude-cost-calc.vercel.app: enter monthly request volume, average input/output tokens, and a model — it returns a USD estimate including cache savings.
Which Claude model should I use?
Default to Sonnet 4.6 for most production workloads. Use Haiku 4.5 for high-volume classification or short responses. Reserve Opus 4.7 for long-context reasoning or agentic flows where a single mistake compounds.
Independent writers covering the Anthropic API, prompt engineering, and the indie web of small dev blogs: