获取模型列表
更新时间:2026-11-30
GET
https://api.dumate.cn/api/dma/v1/models
本接口用于查询当前企业可用的模型(Model)列表,包括管理平台「模型管理」中已启用的预置模型和自定义模型。创建智能体、创建会话时的 model 取这里返回的模型 ID。
返回结果按游标分页:data 为当前页的模型列表,next_page 为下一页游标;没有下一页时为 null。
权限说明
使用 API Key 鉴权调用 API 流程,具体调用流程,请查看认证鉴权。
请求参数
Headers 参数
除公共头域外,无其它特殊头域
Query 参数
limit
integer
每页条数,默认 20,取值 1–1000。
超出范围时返回 400。
可选
page
string
翻页游标,取上一页响应的 next_page;第一页不传。
可选
请求结构
GET /api/dma/v1/models?limit=20 HTTP/1.1
Host: api.dumate.cn
Authorization: Bearer <YOUR_API_KEY>
示例代码
请求示例
curl --location --request GET "https://api.dumate.cn/api/dma/v1/models?limit=20" \
--header 'Authorization: Bearer <YOUR_API_KEY>'
返回响应
Headers 参数
除公共头域外,无其它特殊头域
返回参数
data
array
模型列表。
可选
显示子属性
隐藏子属性
items
object {5}
显示子属性
隐藏子属性
type
string
资源类型标识,固定为 model。
可选
id
string
模型 ID,创建智能体、创建会话时传这个值。
可选
display_name
string
模型显示名称,与管理平台「模型管理」中的名称一致。
可选
source
string
模型类型。
可选值:official(预置模型)、custom(自定义模型,由企业管理员在管理平台添加)。
可选
effort_levels
array
该模型支持的思考档位。
为空表示不能传 effort;自定义模型恒为空。
可选
显示子属性
隐藏子属性
items
string
next_page
string
下一页游标;没有下一页时为 null。
可选
响应示例
{
"data": [
{
"type": "model",
"id": "ernie-4-5-pro",
"display_name": "ERNIE-4.5-Pro",
"source": "official",
"effort_levels": ["low", "medium", "high"]
},
{
"type": "model",
"id": "glm-5-2",
"display_name": "GLM-5.2",
"source": "official",
"effort_levels": []
},
{
"type": "model",
"id": "ent-deepseek-v4-flash",
"display_name": "DeepSeek/DeepSeek-V4-Flash",
"source": "custom",
"effort_levels": []
}
],
"next_page": null
}
评价此篇文章
