ListModelCategory - 查询模型类别列表

查询模型类别列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
ModelSourcestring

模型来源:1-PAI,2-其他

1
ContentSafeTextSupportedinteger

是否支持文本内容安全检测

True
ContentSafeImageSupportedinteger

是否支持图片内容安全检测

False
PromptAttackTextSupportedinteger

是否支持文本提示词攻击检测

False
SensitiveTopicTextSupportedinteger

是否支持文本敏感主题检测

False
ModelCategoryNamestring

模型类别名称

demo

返回参数

名称类型描述示例值
object

Schema of Response

Codestring

状态码,00000 代表成功;其它代表失败。

00000
ModelCategoryInfoListarray<object>

模型类别对象列表

modelCategoryInfoListobject

模型类别对象

ModelCategoryIdlong

模型类别 Id

2
ModelCategoryNamestring

模型类别名称

Qwen2.5-3B-Intruct-PAI-Guard
ModelSourceinteger

模型来源:1-PAI,2-其他

1
ContentSafeTextSupportedinteger

是否支持文本内容安全检测

True
ContentSafeImageSupportedinteger

是否支持图片内容安全检测

False
PromptAttackTextSupportedinteger

是否支持文本提示词攻击检测

False
SensitiveTopicTextSupportedinteger

是否支持文本敏感主题检测

True
Priorityinteger

出方向规则的优先级。数字越小,优先级越高。

12
HttpStatusCodeinteger

http 状态码

200
Messagestring

如有错误,返回错误信息。

""
RequestIdstring

Id of the request

AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****
Successboolean

表示是否调用成功。true:调用成功。 false:调用失败。

True

示例

正常返回示例

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
}

错误码

访问错误中心查看更多错误码。