查询任务
GET
https://api.01aigc.com/aicamera/artwork/query_task请求参数
Query 参数
taskId
string
任务id
Header 参数
AccessKeyId
array[string]
必需
AccessKeyId
示例值:
[""]
Signature
string
可选
参数签名; 和AccessKeySecret二选一; 优先使用Signature
AccessKeySecret
string
可选
AccessKeySecret; 和Signature二选一; 优先使用Signature
示例代码
返回响应
成功(200)
签名异常(401)
参数异常(400)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
状态码
msg
string
消息
data
object
响应数据
taskId
string
任务id
avatarList
array [object {1}]
头像数组
progressRate
integer
任务进度
taskStatus
integer
必需
任务状态;0=未开始,1=成功,2=失败,3=进行中
failReason
string | null
失败原因
artworkList
array [object {7}]
作品数组
integralNum
integer | null
消耗积分
notifyURL
string | null
回调URL
traceId
string
必需
示例
{
"code": 0,
"msg": "string",
"data": {
"taskId": "string",
"avatarList": [
{
"avatarId": "string"
}
],
"progressRate": 0,
"taskStatus": 0,
"failReason": "string",
"artworkList": [
{
"artworkId": "string",
"templateId": "string",
"progressRate": 0,
"imageStatus": 0,
"imageURL": "string",
"width": 0,
"height": 0
}
],
"integralNum": 0,
"notifyURL": "string"
},
"traceId": "string"
}
最后修改时间: 1 年前