Home / Docs

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

The Anthropic API, documented for the AI Prime Tech 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.

What an Anthropic-Compatible API MeansAnthropic Python SDK: Install, base_url, Streaming, Async and Error Handling (2026)Buy Claude API Credits: Top-Up and Setup GuideThe Cheapest Way to Use the Claude APIClaude Server Error? Every Claude API Error Explained — 400, 429 Rate Limit, 500, 529 Overloaded, and How to Fix EachFree Claude API Key? What's Actually Free — Claude Free API, Trial Credits and the Cheapest Real Option (2026)Claude API Integration Guide: SDKs, REST & Production PatternsClaude Models Explained 2026 — Claude Model Comparison: Claude Opus vs Sonnet vs Haiku vs Fable, Anthropic Model Names & PricesClaude API Pricing ExplainedClaude API Gateway vs. Anthropic DirectClaude API vs Claude Pro/Max Subscription — Which to ChoosePaying for the Claude API with CryptoClaude API Access Without a WaitlistClaude Code Pricing Explained: API Costs, Plans & How to Cut ThemClaude Code API Key (2026) — ANTHROPIC_API_KEY: How to Get It, claude setup-token, OAuth Token vs Session KeyClaude Code API: How Keys, Base URLs & Billing Work (2026)How to Get Unlimited Claude Usage: Plans and LimitsHow to Get a Claude API Key: Console and Gateway SetupHow to Reduce Claude Token UsageOpenAI-Compatible Claude API: Use Claude with the OpenAI SDK (base_url, Streaming, Tools) (2026)Hermes Agent with Claude on Your Own API: Custom Provider config.yaml and Cost Controls (2026)Running Unlimited OpenClaw on ClaudeUnlimited Claude API: Coverage and Fair-Use LimitsUnlimited Claude API key: plans, setup and limits

All 45 Learn articles →