Anthropic
first_party
Getting credentials
api-key
api_key via header (header x-api-key)
Key prefix: sk-ant-api
Environment: ANTHROPIC_API_KEY
Extra headers: anthropic-version: 2023-06-01
Console → Settings → API Keys. Keys are org-scoped; optional expiry (3h to never).
oauth
oauth via header (header x-api-key)
Extra headers: anthropic-beta: oauth-2025-04-20 anthropic-version: 2023-06-01
Flow: authorization_code_pkce
Scopes: org:create_api_key user:profile user:inference
Token transport: header
Run Claude Code and sign in with a Claude subscription; OAuth tokens are sent via x-api-key (not Bearer).
Endpoints
| ID | URL | Protocol | Auth |
|---|---|---|---|
| v1-messages | https://api.anthropic.com/v1/messages | anthropic-messages | any |
| v1-messages-batches | https://api.anthropic.com/v1/messages/batches | anthropic-messages | any |
API surfaces
textstreamingbatchcount_tokensprompt_cachingfiles
Quirks
- Thinking is incompatible with temperature/top_p/top_k, forced tool use, and prefill; changing thinking params invalidates prompt caches; thinking signatures must be replayed unmodified in tool-use turns. (docs)
Models offered
| Model | Wire ID | Endpoint | Status | Reasoning |
|---|---|---|---|---|
| anthropic/claude-fable-5 | claude-fable-5 | v1-messages | ga | adaptive · default adaptive · mandatory · returns thinking_blocks · round-trips signature |
| anthropic/claude-haiku-4-5 | claude-haiku-4-5 | v1-messages | ga | budget · default on · returns thinking_blocks · round-trips signature |
| anthropic/claude-opus-5 | claude-opus-5 | v1-messages | ga | adaptive · default adaptive · returns thinking_blocks · round-trips signature |
| anthropic/claude-sonnet-5 | claude-sonnet-5 | v1-messages | ga | adaptive · default adaptive · returns thinking_blocks · round-trips signature |