查询模型类别列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| ModelSource | string | 否 | 模型来源:1-PAI,2-其他 | 1 |
| ContentSafeTextSupported | integer | 否 | 是否支持文本内容安全检测 | True |
| ContentSafeImageSupported | integer | 否 | 是否支持图片内容安全检测 | False |
| PromptAttackTextSupported | integer | 否 | 是否支持文本提示词攻击检测 | False |
| SensitiveTopicTextSupported | integer | 否 | 是否支持文本敏感主题检测 | False |
| ModelCategoryName | string | 否 | 模型类别名称 | demo |
返回参数
示例
正常返回示例
JSON格式
{
"Code": "00000",
"ModelCategoryInfoList": [
{
"ModelCategoryId": 2,
"ModelCategoryName": "Qwen2.5-3B-Intruct-PAI-Guard",
"ModelSource": 1,
"ContentSafeTextSupported": 0,
"ContentSafeImageSupported": 0,
"PromptAttackTextSupported": 0,
"SensitiveTopicTextSupported": 0,
"Priority": 12
}
],
"HttpStatusCode": 200,
"Message": "",
"RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****",
"Success": true
}错误码
访问错误中心查看更多错误码。
