| name | anthropic |
| title | Anthropic API |
| category | AI APIs |
| description | Use to build with Claude through the Messages API, including streaming, system prompts, token controls, and schema-validated tool use. |
| tags | ["anthropic","claude","messages-api","streaming","tool-use"] |
| official_docs | https://platform.claude.com/docs |
| sources | ["https://platform.claude.com/docs/en/api/getting-started","https://platform.claude.com/docs/en/api/messages","https://platform.claude.com/docs/en/build-with-claude/streaming","https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview"] |
| last_verified | 2026-08-10T00:00:00.000Z |
Anthropic API - Skillship
Build Claude-powered applications with the stateless Messages API, typed content blocks, streaming,
token accounting, and tools that run either in your application or on Anthropic's infrastructure.
🧭 When to use this skill
- Use when: adding Claude for generation, analysis, coding, document work, or agentic tool use.
- Use when: you need long-form streaming and explicit client/server tool execution boundaries.
- Don't use for: deterministic transformations or rules that ordinary code can perform reliably.
⚡ Quickstart
1. Install
npm install @anthropic-ai/sdk
2. Configure (server only)
ANTHROPIC_API_KEY=sk-ant-...
ANTHROPIC_MODEL=claude-sonnet-5
The SDK reads ANTHROPIC_API_KEY and sends required API headers automatically.
3. Create a message
import "server-only";
import Anthropic from "@anthropic-ai/sdk";
const anthropic = new Anthropic();
const message = await anthropic.messages.create({
model: process.env.ANTHROPIC_MODEL ?? "claude-sonnet-5",
max_tokens: 1024,
system: "Answer accurately and say when you do not know.",
messages: [{ role: "user", content: "Explain vector databases in two sentences." }],
});
const text = message.content.find((block) => block. === );
(text?. === ) .(text.);