Home / Docs

Anthropic API docs: the Anthropic API documentation for the Claude API gateway

The Anthropic API, documented for the Claude API gateway: the same Messages API and model ids, one base URL and one key — from a first curl to production hardening. Every current Claude model is served.

curl https://claudeapikey.dev/v1/messages   -H "x-api-key: $ANTHROPIC_API_KEY"   -H "anthropic-version: 2023-06-01"   -H "content-type: application/json"   -d '{"model": "claude-sonnet-5", "max_tokens": 1024,
       "messages": [{"role": "user", "content": "Hello, Claude"}]}'

Get started in four steps

  1. Create an account and generate an API key in the dashboard.
  2. Set ANTHROPIC_BASE_URL to the gateway host and ANTHROPIC_API_KEY to your key — the SDK appends /v1/messages itself.
  3. Send a request in the Anthropic format (/v1/messages) or the OpenAI format (/v1/chat/completions).
  4. Pick a model id from GET /v1/models; switch models by changing one string.

Getting started

API reference

Integration guides

Working with the API

SDKs

Billing

Resources

Learn

Buyer-focused explainers that sit alongside the technical docs.

All 44 Learn articles →