基于湖库一体架构,统一管理结构化、半结构化与非结构化等多模态数据,一个系统承载事务处理、实时分析与 AI 工作负载。
List Anthropic Models - 查询 Anthropic 模型列表
更新时间:2026-08-13 10:47:55
功能说明
返回兼容 Anthropic API 协议的模型列表。该接口用于获取当前可用的兼容 Anthropic API 的模型信息。模型列表按 API Key 所属项目过滤。
调用说明
接口约束
- 调用者需要拥有 API Key,详情请参见 管理 AI API Key。
请求路径
GET https://ai-api-cn.oceanbase.com/api/anthropic/v1/models
请求头
| 名称 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|
| x-api-key | 是 | YOUR_API_KEY | 鉴权信息 |
| anthropic-version | 否 | 2023-06-01 | Anthropic API 版本 |
| Content-Type | 否 | application/json | 请求体格式 |
请求参数
Path 参数
此接口无 Path 参数。
Query 参数
此接口无 Query 参数。
Body 参数
此接口无 Body 参数。
返回结果
返回参数
| 名称 | 类型 | 描述 |
|---|---|---|
| data | array[object] | 模型列表,按 API Key 所属项目过滤 |
| first_id | string 或 null | data 数组中第一项的 id;列表为空时为 null |
| has_more | boolean | 是否还有更多结果 |
| last_id | string 或 null | data 数组中最后一项的 id;列表为空时为 null |
data 字段说明
每个模型对象包含以下字段:
| 名称 | 类型 | 描述 |
|---|---|---|
| type | string | 对象类型,固定值 model |
| id | string | 模型唯一标识 |
| display_name | string | 模型显示名称 |
| created_at | string | 模型创建时间 |
请求示例
curl -sS "https://ai-api-cn.oceanbase.com/api/anthropic/v1/models" \
-H "x-api-key: YOUR_API_KEY" \
-H "anthropic-version: 2023-06-01"
返回示例
包含模型的响应
{
"data": [
{
"type": "model",
"id": "kimi-k2.6",
"display_name": "Kimi K2.6",
"created_at": "2025-07-01T00:00:00Z"
}
],
"first_id": "kimi-k2.6",
"has_more": false,
"last_id": "kimi-k2.6"
}
空列表响应
{
"data": [],
"first_id": null,
"has_more": false,
"last_id": null
}