permission_error

HTTP 403 Account Issue Not Retryable

Your API key is valid, but the account doesn't have permission to use this model, feature, or resource. Typically a plan or access tier issue.

What the error looks like

{
  "type": "error",
  "error": {
    "type": "permission_error",
    "message": "Your API key does not have permission to use the specified resource."
  }
}

Common causes

  • Using a model not available on your current plan (e.g., claude-opus-4-7 on free tier)
  • Accessing a feature in early access / beta that requires allowlisting
  • Workspace-level model restrictions set by an admin
  • Using a model ID string that requires a higher tier (check exact model name)
  • Key belongs to a sub-workspace without full permissions

Model availability by tier

Model Free Build Scale
claude-haiku-4-5 โœ“ โœ“ โœ“
claude-sonnet-4-6 Limited โœ“ โœ“
claude-opus-4-7 โœ— Varies โœ“
Check your exact plan at console.anthropic.com โ€” availability varies and Anthropic updates tiers periodically.

Fix: Check which models you can access

import anthropic

client = anthropic.Anthropic()

# Use a model that's available on your plan
# Start with claude-haiku if access is uncertain:
try:
    response = client.messages.create(
        model="claude-sonnet-4-6",
        max_tokens=10,
        messages=[{"role": "user", "content": "hi"}]
    )
    print("Sonnet: accessible")
except anthropic.PermissionDeniedError:
    print("Sonnet: not on your plan")
    # Fallback to haiku
    response = client.messages.create(
        model="claude-haiku-4-5-20251001",
        max_tokens=10,
        messages=[{"role": "user", "content": "hi"}]
    )

FAQ

How do I get access to a model I can't use?
Advance your tier by spending more (tier 1โ†’2 at $5 spent, 2โ†’3 at $100 spent, etc.) or contact Anthropic sales for direct access arrangements.
permission_error vs authentication_error โ€” what's the difference?
authentication_error (401) = your key is wrong/missing. permission_error (403) = key is valid but your account lacks access to this resource. Two separate things.