指定ID获取任务
GET
/mj/task/{id}/fetch请求参数
Path 参数
id
string
必需
示例值:
1711425315767927
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
action
enum<string>
任务类型
枚举值:
IMAGINEUPSCALEVARIATIONREROLLDESCRIBEBLEND
description
string
任务描述
failReason
string
失败原因
finishTime
integer <int64>
结束时间
id
string
ID
imageUrl
string
图片url
progress
string
任务进度
prompt
string
提示词
promptEn
string
提示词-英文
properties
object
{0}
startTime
integer <int64>
开始执行时间
state
string
自定义参数
status
enum<string>
任务状态
枚举值:
NOT_STARTSUBMITTEDIN_PROGRESSFAILURESUCCESS
示例值:
SUCCESS
submitTime
integer <int64>
提交时间
示例
[
{
"id": "1711436398441464",
"action": "IMAGINE",
"customId": "",
"botType": "",
"prompt": "Cat",
"promptEn": "Cat",
"description": "Submit success",
"state": "",
"submitTime": 1711436398441,
"startTime": 1711436400072,
"finishTime": 1711436425404,
"imageUrl": "",
"status": "SUCCESS",
"progress": "100%",
"failReason": "",
"buttons": [
{
"customId": "MJ::JOB::upsample::1::d476b0ae-a4a4-4a95-a697-d418cf989714",
"emoji": "",
"label": "U1",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::upsample::2::d476b0ae-a4a4-4a95-a697-d418cf989714",
"emoji": "",
"label": "U2",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::upsample::3::d476b0ae-a4a4-4a95-a697-d418cf989714",
"emoji": "",
"label": "U3",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::upsample::4::d476b0ae-a4a4-4a95-a697-d418cf989714",
"emoji": "",
"label": "U4",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::reroll::0::d476b0ae-a4a4-4a95-a697-d418cf989714::SOLO",
"emoji": "🔄",
"label": "",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::variation::1::d476b0ae-a4a4-4a95-a697-d418cf989714",
"emoji": "",
"label": "V1",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::variation::2::d476b0ae-a4a4-4a95-a697-d418cf989714",
"emoji": "",
"label": "V2",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::variation::3::d476b0ae-a4a4-4a95-a697-d418cf989714",
"emoji": "",
"label": "V3",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::variation::4::d476b0ae-a4a4-4a95-a697-d418cf989714",
"emoji": "",
"label": "V4",
"type": 2,
"style": 2
}
],
"maskBase64": "",
"properties": {
"finalPrompt": "Cat --v 5.2 --style raw",
"finalZhPrompt": ""
}
}
]
最后修改时间: 8 个月前