claude-api

claude api

affaan-m 232k ↓ 2.4k MIT updated 25d ago
Claude Code
View source ↗

What it does

  • Building applications that call the Claude API
  • Code imports anthropic (Python) or @anthropic-ai/sdk (TypeScript)
  • User asks about Claude API patterns, tool use, streaming, or vision
  • Implementing agent workflows with Claude Agent SDK
  • Optimizing API costs, token usage, or latency

Requirements & configuration

  • Optimizing API costs, token usage, or latency
  • Default to Sonnet 4 unless the task requires deep reasoning (Opus) or speed/cost optimization (Haiku). For production, prefer pinned snapshot IDs over aliases.

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

claude-api FAQ

What does the claude-api skill do?

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs. Building applications that call the Claude API Code imports anthropic (Python) or @anthropic-ai/sdk (TypeScript)

What does claude-api require?

Optimizing API costs, token usage, or latency Default to Sonnet 4 unless the task requires deep reasoning (Opus) or speed/cost optimization (Haiku). For production, prefer pinned snapshot IDs over aliases.

How do I install claude-api?

Run: npx -y skills add https://github.com/affaan-m/everything-claude-code --skill claude-api --agent claude-code — the source lives at github.com/affaan-m/everything-claude-code.

Maintain claude-api?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

[claude-api on getagentictools](https://getagentictools.com/skills/affaan-m-everything-claude-code-claude-api?ref=badge)
npx agentictools info skills/affaan-m-everything-claude-code-claude-api

The second line is the CLI lookup for this page — handy in READMEs and docs.