# claude-api

> Claude/Codex skill by [@anthropics](https://omgskills.com/library/anthropics/index.md) · 183k stars · Updated 2026-10-09

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).

Tags: agent-skills

## Install

```sh
git clone https://github.com/anthropics/skills /tmp/skills && ln -s /tmp/skills/skills/claude-api ~/.claude/skills/claude-api
```

## From README

Building LLM-Powered Applications with Claude This skill helps you build LLM-powered applications with Claude. Choose the right surface based on your needs, detect the project language, then read the relevant language-specific documentation. Before You Start Scan the target file (or, if no target file, the prompt and project) for non-Anthropic provider markers - import openai, from openai, langchainopenai, OpenAI(, gpt-4, gpt-5, file names like agent-openai.py or -generic.py, or any explicit instruction to keep the code provider-neutral. If you find any, stop and tell the user that this skill produces Claude/Anthropic SDK code; ask whether they want to switch the file to Claude or want a non-Claude implementation. Do not edit a non-Anthropic file with Anthropic SDK calls.

## Links

- HTML page: https://omgskills.com/library/anthropics/skills/claude-api/
- GitHub: https://github.com/anthropics/skills
- Author: [@anthropics](https://omgskills.com/library/anthropics/index.md)

## More from this repo

- [pptx](https://omgskills.com/library/anthropics/skills/pptx/index.md) — Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both.
   - [@anthropics](https://omgskills.com/library/anthropics/index.md) · 194k stars
- [academy-guide](https://omgskills.com/library/anthropics/skills/academy-guide/index.md) — Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it...
   - [@anthropics](https://omgskills.com/library/anthropics/index.md) · 183k stars
- [algorithmic-art](https://omgskills.com/library/anthropics/skills/algorithmic-art/index.md) — Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration.
   - [@anthropics](https://omgskills.com/library/anthropics/index.md) · 183k stars
