GetModelInstanceInfo - 获取模型实例信息

获取模型实例信息。

调试

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

授权信息

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

请求参数

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

模型实例 Id

123
SceneTypeinteger

场景类型, 0:输入,1:输出,2:输入+输出

2

返回参数

名称类型描述示例值
object

Schema of Response

Codestring

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

00000
HarmfulCategoryConfigInfoListarray<object>

有害分类配置列表

harmfulCategoryConfigInfoListobject

有害分类配置

CategoryIdlong

有害分类 ID

1
InputOutputTypeinteger

模型输入输出类型 0:输入 1:输出

0
CategoryTypeinteger

0:文本 1:图像

0
CategoryLabelstring

分类名称

伦理道德
SecurityLevelinteger

安全等级 0:低 1:中 2:高

1
HttpStatusCodeinteger

http 状态码

200
Messagestring

错误信息。

""
RequestIdstring

Id of the request

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

操作是否成功。true 表示成功,false 表示失败。

True
GmtModifiedlong

策略修改时间

1634122349000
PromptAttackInfoListarray<object>

提示词攻击对象列表

promptAttackInfoListobject

提示词攻击对象

CategoryIdlong

有害分类 ID

1
CategoryLabelstring

分类名称

角色扮演
SecurityLevelinteger

安全等级 0:低 1:中 2:高

1
ModelInstanceIdlong

模型实例 Id

123
EasServiceNamestring

EAS 服务名称。

rai_content_detection_model
EasServiceIdstring

EAS 服务 Id

eas-m-12345678
ModelSourceinteger

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

1
IsSupportTextboolean

是否支持文本

True
IsSupportImageboolean

是否支持图片

False
ModelUrlstring

EAS 公网调用地址

http://12345*****.cn-shanghai.aliyuncs.com/api/predict/echo
ModelVpcUrlstring

EAS VPC 调用地址

http://12345*****.vpc.cn-shanghai.aliyuncs.com/api/predict/demo
ModelTokenstring

模型 token

MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********
ModelCallNamestring

OpenAI API 接口中 模型名 参数

demo
Descriptionstring

实例描述

opencompass-vllm07-acc
ModelCategoryIdlong

模型类别 Id

1

示例

正常返回示例

JSON格式

{
  "Code": "00000",
  "HarmfulCategoryConfigInfoList": [
    {
      "CategoryId": 1,
      "InputOutputType": 0,
      "CategoryType": 0,
      "CategoryLabel": "伦理道德",
      "SecurityLevel": 1
    }
  ],
  "HttpStatusCode": 200,
  "Message": "",
  "RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****",
  "Success": true,
  "GmtModified": 1634122349000,
  "PromptAttackInfoList": [
    {
      "CategoryId": 1,
      "CategoryLabel": "角色扮演",
      "SecurityLevel": 1
    }
  ],
  "ModelInstanceId": 123,
  "EasServiceName": "rai_content_detection_model",
  "EasServiceId": "eas-m-12345678",
  "ModelSource": 1,
  "IsSupportText": true,
  "IsSupportImage": true,
  "ModelUrl": "http://12345*****.cn-shanghai.aliyuncs.com/api/predict/echo",
  "ModelVpcUrl": "http://12345*****.vpc.cn-shanghai.aliyuncs.com/api/predict/demo",
  "ModelToken": "MzJiMDI5MDliODc0MTlkYmI0ZDhlYmExYjczYTIyZTE3Zm********",
  "ModelCallName": "demo",
  "Description": "opencompass-vllm07-acc",
  "ModelCategoryId": 1
}

错误码

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