Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Teaches Python and TypeScript patterns for the Anthropic Claude API, covering messages, streaming, tool use, vision, batches, and Agent SDK.
Use this skill ↓50% 50%0 ptsof checks passed
Scored 50% with the skill and 50% without it.
3 of 3 safety checks passed
Not used yet
Build applications with the Anthropic Claude API and SDKs.
anthropic (Python) or @anthropic-ai/sdk (TypeScript)| Model | ID | Best For |
|---|---|---|
| Opus 4.1 | claude-opus-4-1 | Complex reasoning, architecture, research |
| Sonnet 4 | claude-sonnet-4-0 | Balanced coding, most development tasks |
| Haiku 3.5 | claude-3-5-haiku-latest | Fast responses, high-volume, cost-sensitive |
Default to Sonnet 4 unless the task requires deep reasoning (Opus) or speed/cost optimization (Haiku). For production, prefer pinned snapshot IDs over aliases.
pip install anthropic
import anthropic
client = anthropic.Anthropic() # reads ANTHROPIC_API_KEY from env
message = client.messages.create(
model="claude-sonnet-4-0",
max_tokens=1024,
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.