Architecture and capabilities
The Claude API gives developers programmatic access to Claude's capabilities — the same intelligence behind claude.ai, accessible via HTTP requests from any language or platform. Building with the API means you can embed Claude's capabilities into your own products, automate workflows, and build entirely new applications.
The Claude API is a REST API hosted at api.anthropic.com. The primary endpoint for most new builds is the Messages API, which follows a request/response pattern:
Anthropic offers a versioned model family. Exact names and availability change, so production apps should read the current model list from Anthropic docs and pin deliberate versions:
Models are versioned. Pin to a specific model version in production for stability, and review release notes before upgrading.
The API is priced by token consumption — tokens in (input) and tokens out (output) are both charged, at different rates. Input tokens are generally cheaper than output tokens. Costs vary by model: Haiku is dramatically cheaper per token than Opus. For most applications, Sonnet offers the best cost/capability ratio.