
Claude API Pricing: Every Model Token Cost Explained
Claude API pricing per million tokens: Opus 4.8, Sonnet and Haiku rates, batch's 50% cut, prompt caching, and worked cost examples.
Category

Claude API pricing per million tokens: Opus 4.8, Sonnet and Haiku rates, batch's 50% cut, prompt caching, and worked cost examples.

Claude API error 500 from api.anthropic.com: what api_error and 529 mean, exponential backoff with jitter, retry caps and request_id logging.

How to use Claude API from scratch: get an API key, learn the Messages request, and make your first call in curl and Python — with model and cost basics.

Claude API stream idle timeout means the SSE stream went quiet. Raise client timeouts, stop proxy buffering, keep-alive and retry with backoff.

Claude prompt caching stores a stable prompt prefix so cached reads bill at ~10% of input price — how cache_control works, the TTLs, and the gotchas.

Claude tool use (function calling) lets Claude call tools you define via a JSON schema. The tool_use and tool_result loop, a worked example, and how it ties to MCP.