← anthropics/skills

/claude-api

安全與環境設定anthropics/skillsAI翻譯

Claude API/SDK 的完整參考:模型代號、價格、參數、串流、工具呼叫、快取

安裝次數
7.7 萬
專案星數
18.7 萬 ★
授權
未標示
專案更新
2026-10-28

什麼時候用

要寫串 Claude API 的程式。別憑記憶寫模型代號和價格,先讀這個

怎麼裝

npx skills add https://github.com/anthropics/skills --skill claude-api

安裝前請先看過原文內容。中文說明是 AI 翻譯,不保證安全。

原文

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