Overview
Returns a list of models compatible with the Anthropic API. This interface is used to obtain information about models compatible with the Anthropic API that are currently available.
API details
Constraints
- The caller needs to have an API Key. For more information, see Manage AI API Keys.
Request path
GET {BASE_URL}/api/anthropic/v1/models
Request header
Name |
Required |
Example value |
Description |
|---|---|---|---|
| Authorization | Yes | Bearer {token} | Authentication information |
| Content-Type | No | application/json | Request body format |
Request parameters
Path
None
Query
None
Body
None
Response
Response parameters
Name |
Type |
Description |
|---|---|---|
| success | boolean | Indicates whether the request was successful |
| code | string | Response code |
| message | string | Response message |
| data | object | Business response data |
data
Name |
Type |
Description |
|---|---|---|
| unknown | The returned data, which is specific to the return example. |
Request example
curl --request GET '{BASE_URL}/api/anthropic/v1/models' \
--header 'Authorization: Bearer {token}'
Response example
{
"success": true,
"code": "200",
"message": "successful",
"data": {}
}
