Anthropic models compatibility

✅ Supported Frameworks:

Add Anthropic API keys

There are 2 ways to add your Anthropic credentials to your requests:

Via UI

1

Go to the Providers page

2

Add your Anthropic credentials.

Dashboard Page

Add it in code

Add customer_credentials parameter in your request body to use your own Anthropic credits.
{
  // Rest of the request body
  "customer_credentials": {
    "anthropic": {
      "api_key": "YOUR_ANTHROPIC_API_KEY",
    }
  }
}

Override credentials for a particular model (optional)

One-off credential overrides. Instead of using what is uploaded for each provider, this targets credentials for individual models.
{
  // Rest of the request body
  "customer_credentials": {
    "anthropic": {
      "api_key": "YOUR_ANTHROPIC_API_KEY"
    }
  },
  "credential_override": {
    "claude-3-5-sonnet-20240620":{ // override for a specific model.
      "api_key": "ANOTHER_ANTHROPIC_API_KEY"
    }
  }
}

Full request example