invokeable()
← directory / providers / anthropic

Anthropic API

first-party
23
models served
ANTHROPIC_API_KEY
auth
api.anthropic.com
base url

provider docs →

01Request template

Every model below is invoked with this shape — swap in the provider model ID from the table.

shell · template
curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "{{MODEL_ID}}",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello, world"}]
  }'

02Models served · newest first

ModelProvider model IDIn $/MOut $/MContext
Claude Opus 5Anthropic claude-opus-5 1M
Claude Sonnet 5Anthropic claude-sonnet-5 1M
Claude Fable 5Anthropic claude-fable-5 1M
Claude Mythos 5Anthropic claude-mythos-5 1M
Claude Opus 4.8Anthropic claude-opus-4-8 1M
Claude Opus 4.7Anthropic claude-opus-4-7 5.00 25.00 1M
Claude Sonnet 4.6Anthropic claude-sonnet-4-6 3.00 15.00 1M
Claude Opus 4.6Anthropic claude-opus-4-6 5.00 25.00 1M
Claude Opus 4.5Anthropic claude-opus-4-5 5.00 25.00 200K
Claude Haiku 4.5Anthropic claude-haiku-4-5 1.00 5.00 200K
Claude Sonnet 4.5Anthropic claude-sonnet-4-5 3.00 15.00 200K
Claude Opus 4.1Anthropic claude-opus-4-1 15.00 75.00 200K
Claude Opus 4Anthropic claude-opus-4-20250514 200K
Claude Opus 4 (latest)Anthropic claude-opus-4-0 200K
Claude Sonnet 4Anthropic claude-sonnet-4-20250514 200K
Claude Sonnet 4Anthropic claude-sonnet-4-20250514 3.00 15.00 200K
Claude Sonnet 4 (latest)Anthropic claude-sonnet-4-0 200K
Claude 3.7 SonnetAnthropic claude-3-7-sonnet-20250219 3.00 15.00 200K
Claude Sonnet 3.7Anthropic claude-3-7-sonnet-20250219 200K
Claude 3.5 HaikuAnthropic claude-3-5-haiku-20241022 0.80 4.00 200K
Claude Haiku 3.5Anthropic claude-3-5-haiku-20241022 200K
Claude Sonnet 3.5 v2Anthropic claude-3-5-sonnet-20241022 200K
Claude Haiku 3Anthropic claude-3-haiku-20240307 200K

Dimmed prices are canonical — this provider's own quote isn't captured yet.