Claude API Reference skill
Current Claude API and SDK facts: models, pricing, tools, caching and agents.
Official Anthropicby AnthropicChecked November 18, 2026
Install Claude API Reference free
Leave your email and the install steps open right here: one prompt to paste into your AI tool. Works for all 151 skills.
Anthropic's own reference skill for code that calls the Claude API: current model IDs and prices, SDK code for seven programming languages plus curl, caching and agent patterns, so Claude stops answering from stale memory. Claude Code already includes a claude-api skill among its bundled skills (type /claude-api), so install this copy for Codex, Cursor, the Claude app or another agent. In one logged sample run on November 8, 2026 (Claude Opus 5.5, not our full hands-on test), the first prompt below produced an email-sorting script and a monthly cost estimate for 10,000 emails, about $52 on Opus 5.5 and $1.30 on Haiku 5.5, that matches Anthropic's price list; we did not run the script.
Who is Claude API Reference for?
- Developers adding Claude to an app or script
- Founders pricing an AI feature before building it
- Teams moving code to a newer Claude model
What's inside Claude API Reference
Claude API is a 616-line SKILL.md that routes Claude to 95 more files, mostly Markdown guides. The code it writes calls Anthropic's API, so running that code needs an Anthropic account and credentials.
When it switches on
It switches on whenever a request names Claude, Anthropic or a Claude model, asks about model prices or limits, or is an AI feature with no provider named. It steps aside for OpenAI, Gemini, Llama, Mistral, Cohere or Ollama work.
What the instructions cover
- A model table dated 2026-10-06 with IDs, context size and prices, defaulting to claude-opus-5-5
- Choosing between one API call, a tool-using workflow, your own agent loop or Managed Agents (agents Anthropic hosts)
- Code guides for Python, TypeScript, Java, Go, Ruby, C#, PHP and plain curl
- Quick references for thinking and effort settings, prompt caching, tool use, batches and file uploads
- Shortcut commands such as /claude-api migrate, cost-optimize, build-eval and prompt-audit
What it needs
- An Anthropic API key (ANTHROPIC_API_KEY) or a login through the ant CLI
- Anthropic's official SDK for your programming language
| File | What it is |
|---|---|
SKILL.md | 616 lines: defaults, the model table, quick references and a reading guide |
python/ | 7 guides for the Python SDK; typescript/, java/, go/, ruby/, csharp/ and php/ follow the same layout |
curl/ | 2 guides for raw HTTP calls |
shared/ | 54 shared files, including a 2,420-line model migration guide and 13 Managed Agents starter templates |
Watch out: The cost-cutting and eval commands make real model calls that cost money, so the skill tells Claude to get your approval before running them. New code defaults to claude-opus-5-5, and the skill tells Claude never to switch to a cheaper model on its own, so name Sonnet or Haiku when cost matters.
How to use Claude API Reference: which prompts work?
Write a Python script that sorts my support emails into 5 categories with the Claude API, and estimate the monthly cost for 10,000 emailsWhich Claude model should I use for a high-volume classifier, and what will it cost?Add prompt caching to my Claude API calls and show what it saves per requestHow do you install Claude API Reference?
Skills follow the open Agent Skills standard, so this one is not tied to one company. Pick the AI tool you use. Not sure? The first tab covers most of them in one step. New to this? Our guide on how to install Claude skills walks through it, and Anthropic's plugin guide covers the Claude app.
Install this skill for me so it works in every project: run `npx skills add https://github.com/anthropics/skills/tree/main/skills/claude-api -g -y` in my terminal. If Node.js is missing, tell me how to install it first. When it's done, confirm the skill is installed and tell me how to start using it.Or do it yourself:
One command installs the skill: it finds the AI tools on your computer and asks which ones should get it.
npx skills add https://github.com/anthropics/skills/tree/main/skills/claude-api -gYou need Node.js installed (free, from nodejs.org). The -g flag makes the skill available in every project.
Good to know: Updated frequently as the API changes.
Unlock the install steps
Free. Leave your email once to open the install steps for all 151 skills, and get the best new skills each month.
How did we check Claude API Reference?
On October 26, 2026 we read all 96 files in the skill's folder, starting with its 616-line SKILL.md. The section on what's inside comes from those files. Its license is Apache-2.0. Its files were last changed in October 2026. We have not run it on a test task yet.
Want one we ran on a real task? See the skills we tested in AI agents, ranked by score.
New to skills and plugins? Skills and MCP is a lesson in our Claude Code course, which is in early access and open for pre-order.