Anthropic / Claude API
Set up API access for Claude and other Anthropic models.
getapi anthropic
Prerequisites
- An Anthropic account
Credentials
| Variable | Description | Sensitive |
|---|---|---|
ANTHROPIC_API_KEY |
API key for authenticating requests to the Anthropic API | Secret |
Setup Steps
- 1 Info
- 2 Open URL
- 3 Choice
- 4 Open URL
- 5 Confirm
- 7 Info
- 8 Input
- 9 Validate
Things to Know
- API keys are shown only once when created. If you lose it, you'll need to create a new one.
- The Anthropic API requires an 'anthropic-version' header (e.g., '2023-06-01'). Most client libraries handle this automatically.
- New accounts start with lower rate limits (Tier 1). Limits increase automatically as you spend more.
- Set a monthly spending limit in the Console to avoid unexpected charges.
- Claude models have different pricing tiers. Claude Haiku is the cheapest; Claude Opus is the most capable and most expensive.
- The API uses 'x-api-key' header for authentication, not the more common 'Authorization: Bearer' pattern.