Claude API
8 cheat sheets.
Claude Tool Use (Function Calling)
Define tools, handle tool calls, run agentic loops, use parallel tools, and manage errors with the Claude API.
Claude API
Complete TypeScript SDK reference for the Anthropic Claude API — install, messages.create, streaming, tool use, vision, types, and Node/Deno/Bun integration.
Claude API
Streaming responses from the Anthropic API — server-sent events, event types, async iteration in Python and TypeScript, partial tool input, error handling, and retry strategies.
Claude API
Complete Python SDK reference for the Anthropic Claude API — messages, streaming, vision, extended thinking, prompt caching, batch processing, and token counting.
Claude API
Anthropic prompt caching — `cache_control`, 5-minute TTL, 1-hour beta, cache breakpoints, cost math, multi-turn caching patterns, and recipes for system prompts, tools, and documents.
Claude API
The Anthropic Claude API — Python and TypeScript SDKs, streaming, tool use, batches, prompt caching, files, vision, and agentic loops.
Claude API
The Anthropic Files API — upload PDFs, images, and text once and reference them by `file_id` across multiple messages, with citations, lifecycle management, and Workbench integration.
Claude API
The Anthropic Message Batches API — create, poll, retrieve, and stream results at 50% off list price for asynchronous bulk processing of thousands of Claude requests.