Test an AI provider API key without storing it.
| Field | Type | Required | Description |
|---|---|---|---|
provider | string | Yes | Provider name (anthropic) |
provider_api_key | string | Yes | The API key to test |
provider_base_url | string | No | Custom base URL (for proxies or self-hosted) |
| Code | Description |
|---|---|
200 | Test completed (check valid field for result) |
400 | Invalid request (missing fields, unsupported provider) |
| Provider | Value |
|---|---|
| Anthropic | anthropic |