获取任务信息

请求URL:

  • /getTaskInfo

请求方式:

  • GET

header:

参数名 必选 类型 说明
Authorization string 授权token

参数:

参数名 必选 类型 说明
promptId string 任务ID

返回示例

{
    "code": 200,
    "msg": "SUCCESS",
    "data": {
        "taskId": 1043,
        "promptId": "ef8ec19d6670c018814358a21a910090",
        "taskType": 7,
        "thumbFileUrl": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1769594446809030000_TFVMoqDf.png",
        "state": 30,
        "reason": "",
        "imageList": [
            {
                "id": 957,
                "taskId": 1043,
                "path": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1769594446809030000_TFVMoqDf.png",
                "origin": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1769594620471325196_04aerrvp.mp4"
            },
            {
                "id": 956,
                "taskId": 1044,
                "path": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1769594446809030000_TFVMoqDf.png",
                "origin": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1769594619399790547_xL19T3ky.mp4"
            }
        ],
        "taskList": [
            {
                "taskId": 1043,
                "promptId": "0fdd439fe1a94c8aa3ddaca3cdf50fe5",
                "taskType": 7,
                "thumbFileUrl": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1769594446809030000_TFVMoqDf.png",
                "state": 30,
                "reason": "",
                "imageList": [
                    {
                        "id": 957,
                        "taskId": 1043,
                        "path": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1769594446809030000_TFVMoqDf.png",
                        "origin": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1769594620471325196_04aerrvp.mp4"
                    }
                ]
            },
            {
                "taskId": 1044,
                "promptId": "5a6ec746cfaf424da38350a323d0fb52",
                "taskType": 7,
                "thumbFileUrl": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1769594446809030000_TFVMoqDf.png",
                "state": 30,
                "reason": "",
                "imageList": [
                    {
                        "id": 956,
                        "taskId": 1044,
                        "path": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1769594446809030000_TFVMoqDf.png",
                        "origin": "https://muyuhan.s3.amazonaws.com/faceWap/test/original/1769594619399790547_xL19T3ky.mp4"
                    }
                ]
            }
        ]
    }
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string 提示信息
data struct 数据
- taskId uint 任务自增ID
- promptId string 任务ID
- taskType int 任务类型:3-AI换脸;4-效果增强;5-AI滤镜; 6-高清放大图
- state int 任务状态:10-排队等待;20-执行中;30-执行完成;2-执行失败
- reason string 失败原因
- imageList array 任务生成的图片
-- id int 配置ID
-- path string 缩略图地址
-- origin string 原图地址
- taskList array 多视频时任务列表
-- taskId uint 任务自增ID
-- promptId string 任务ID
-- taskType int 任务类型:3-AI换脸;4-效果增强;5-AI滤镜; 6-高清放大图
-- state int 任务状态:10-排队等待;20-执行中;30-执行完成;2-执行失败
-- reason string 失败原因
-- imageList array 任务生成的图片
--- id int 配置ID
--- path string 缩略图地址
--- origin string 原图地址

备注 错误码: 510 系统异常 800 参数错误 900 无数据

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2026-01-29 13:54:20

results matching ""

    No results matching ""