根据 ID 查询任务
POST
/mj/task/list-by-condition请求参数
Header 参数
Authorization
string
必需
示例值:
{{KEY}}
Body 参数application/json
ids
array[string]
必需
示例
{
"ids": [
"1710586687972812"
]
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
array of:
id
string
可选
action
string
可选
prompt
string
可选
promptEn
string
可选
description
string
可选
state
string
可选
submitTime
integer
可选
startTime
integer
可选
finishTime
integer
可选
imageUrl
string
可选
status
string
可选
progress
string
可选
failReason
string
可选
properties
object
可选
botType
string
必需
discordChannelId
string
必需
discordInstanceId
string
必需
finalPrompt
string
必需
flags
integer
必需
messageContent
string
必需
messageHash
string
必需
messageId
string
必需
nonce
string
必需
notifyHook
string
必需
progressMessageId
string
必需
buttons
array [object {5}]
可选
customId
string
必需
emoji
string
必需
label
string
必需
style
integer
必需
type
integer
必需
示例
[
{
"id": "1710586687972812",
"action": "IMAGINE",
"prompt": "Cat",
"promptEn": "Cat --fast",
"description": "提交成功",
"state": "string",
"submitTime": 1710586687972,
"startTime": 1710586688884,
"finishTime": 1710586723746,
"imageUrl": "https://api.b3n.fun/mj/image/1710586687972812",
"status": "SUCCESS",
"progress": "100%",
"failReason": "",
"properties": {
"botType": "MID_JOURNEY",
"discordChannelId": "1204690409088094219",
"discordInstanceId": "1488127569336270848",
"finalPrompt": "Cat --fast",
"flags": 0,
"messageContent": "**Cat --fast** - <@1191714615428661273> (fast)",
"messageHash": "135f1ae1-e8a6-49d5-ae78-7e8bb3d12ae2",
"messageId": "1218513777016705094",
"nonce": "1490062940190085120",
"notifyHook": "string",
"progressMessageId": "1218513635148697630"
},
"buttons": [
{
"customId": "MJ::JOB::upsample::1::135f1ae1-e8a6-49d5-ae78-7e8bb3d12ae2",
"emoji": "",
"label": "U1",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::upsample::2::135f1ae1-e8a6-49d5-ae78-7e8bb3d12ae2",
"emoji": "",
"label": "U2",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::upsample::3::135f1ae1-e8a6-49d5-ae78-7e8bb3d12ae2",
"emoji": "",
"label": "U3",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::upsample::4::135f1ae1-e8a6-49d5-ae78-7e8bb3d12ae2",
"emoji": "",
"label": "U4",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::reroll::0::135f1ae1-e8a6-49d5-ae78-7e8bb3d12ae2::SOLO",
"emoji": "🔄",
"label": "",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::variation::1::135f1ae1-e8a6-49d5-ae78-7e8bb3d12ae2",
"emoji": "",
"label": "V1",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::variation::2::135f1ae1-e8a6-49d5-ae78-7e8bb3d12ae2",
"emoji": "",
"label": "V2",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::variation::3::135f1ae1-e8a6-49d5-ae78-7e8bb3d12ae2",
"emoji": "",
"label": "V3",
"style": 2,
"type": 2
},
{
"customId": "MJ::JOB::variation::4::135f1ae1-e8a6-49d5-ae78-7e8bb3d12ae2",
"emoji": "",
"label": "V4",
"style": 2,
"type": 2
}
]
}
]
修改于 5 个月前