提交任务

请求URL:

  • /submitTask

请求方式:

  • POST

header:

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

参数:

参数名 必选 类型 说明
taskType int 任务类型:1-文生图;2-图生图
styleId int 风格ID
seed int 随机种子
content string 提示词
aspectRatio int 宽高比ID
fileName string 图片名称(taskType=2时必传,通过图片上传接口获得)
advertiserSign string 看广告签名

返回示例

{
    "code": 200,
    "msg": "SUCCESS",
    "data": {
        "customTaskId": "8d6c90a101e3403430c206243d6c69a1"
    }
}

返回参数说明

参数名 类型 说明
code int 状态码
msg string 提示信息
data array 数据列表
- customTaskId string 自定义任务ID

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

2021 © Live all right reserved,powered by Gitbook该文件修订时间: 2025-05-22 17:29:19

results matching ""

    No results matching ""