claude-api
Official sourceAuthoritative reference for the Claude API and Anthropic SDKs: model IDs, pricing, thinking/effort params, streaming, tool use, caching, managed agents, and model migration.
Source: Anthropic
At a glance
Verified source- Best for
- Developers integrating Claude into Python, TypeScript, Java, Go, Ruby, C#, or PHP apps
- Works with
- Claude.ai · Claude Code
- Outcome
- Choosing models, configuring adaptive thinking/effort, and avoiding deprecated params
- Source
- anthropics/skills
01 / Understand the skill
About claude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file).
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file…
Not a fit when
don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.
Read full description
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file).
02 / Confirm the fit
Use claude-api when you need to
- Developers integrating Claude into Python, TypeScript, Java, Go, Ruby, C#, or PHP apps
- Choosing models, configuring adaptive thinking/effort, and avoiding deprecated params
- Migrating existing Claude code to newer models or adding prompt caching/streaming
03 / See the workflow
How claude-api works
- 01Install: npx skills add https://github.com/anthropics/skills --skill claude-api
- 02Try: Add a streaming Claude tool-use loop to my TypeScript app using the official SDK.
- 03Get: Language-correct SDK code using current model IDs and recommended params.
Check before installing
Compatible platforms
Claude.ai · Claude Code
Best fit
Developers integrating Claude into Python, TypeScript, Java, Go, Ruby, C#, or PHP apps
Review the source instructions if the required output differs from the formats described above.
Install and use
Compatible with Claude.ai and Claude Code · Published by Anthropic
Ready to add claude-api?
Use the published instructions below, then provide the required input and describe the result you need.
General instructions · Claude.ai · Claude Code
npx skills add https://github.com/anthropics/skills --skill claude-api
Review the source repository and license before installing third-party skills.
Continue exploring
Similar skills
Read, edit, create, and fix Excel/CSV files — formulas, formatting, charts, and clean financial models with zero formula errors.
Generate distinctive, production-grade frontend UI that avoids generic AI aesthetics — pages, components, dashboards, and landing pages.
Build high-quality MCP (Model Context Protocol) servers in Python (FastMCP) or Node/TypeScript that let LLMs use external services through well-designed tools.
End-to-end workflow for authoring, testing, benchmarking, and optimizing agent skills, including eval runs, a review viewer, and a description-triggering optimizer.
