GET/anthropic/v1/models/count
公开接口Models Count API
获取 Anthropic 模型的总数量
Models Count API 是公开接口,无需认证即可访问。 返回 Anthropic 模型的总数量。
请求示例
cURL
curl https://api.mintcloud.ai/anthropic/v1/models/countimport anthropic
client = anthropic.Anthropic(
base_url="https://api.mintcloud.ai/anthropic"
)
# 获取模型数量
response = client.models.count()
print(f"模型数量: {response.data.count}")响应格式
响应包含模型总数:
{
"data": {
"count": 6
}
}响应字段说明
data包含计数数据的对象
countAnthropic 模型的总数