获取任务信息
请求URL:
/getImageInfo
请求方式:
- GET
header:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| Authorization | 是 | string | 授权token |
参数:
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| promptId | 是 | string | 任务ID |
返回示例
{
"code": 200,
"msg": "SUCCESS",
"data": {
"imageList": [
{
"id": 2,
"origin": "https://muyuhan.s3.amazonaws.com/aiChat/test/original/20260429/1777444311155681000_PzNEgWdd.png",
"path": "https://muyuhan.s3.amazonaws.com/aiChat/test/thumb/20260429/1777444311155681000_PzNEgWdd.png"
}
],
"promptId": "df806ed14f2f413c8db298b0589efda7",
"reason": "",
"state": 30,
"taskType": 2,
"taskId": 1,
}
}
返回参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| msg | string | 提示信息 |
| data | struct | 数据 |
| - taskId | uint | 任务自增ID |
| - promptId | string | 任务ID |
| - taskType | int | 任务类型:2-图生图 |
| - state | int | 任务状态:10-排队等待;20-执行中;30-执行完成;2-执行失败 |
| - reason | string | 失败原因 |
| - imageList | array | 任务生成的图片 |
| -- id | int | 配置ID |
| -- path | string | 缩略图地址 |
| -- origin | string | 原图地址 |
备注 错误码: 510 系统异常 800 参数错误 900 无数据