指定ID获取任务
GET
https://api.deerapi.com/mj/task/{id}/fetch
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.deerapi.com/mj/task//fetch' \
--header 'Authorization: Bearer {{api-key}}'
响应示例响应示例
{
"id": "1747190313867714",
"action": "IMAGINE",
"customId": "",
"botType": "",
"prompt": "cat",
"promptEn": "cat",
"description": "排队中,前面还有19个任务",
"state": "",
"mode": "",
"proxy": "",
"submitTime": 1747190313868,
"startTime": 1747190373409,
"finishTime": 1747190391402,
"imageUrl": "https://cdn.discordapp.com/attachments/1372025398619279432/1372040685490016286/mira.bilus._cat_e116ba11-6559-4e3a-8792-ce6ff98e8bd4.png?ex=682553f6&is=68240276&hm=07dd4f64e3c5a9783f2ce2bf1e8a8f30e7581c670696aa1a58a64e34faf63976&",
"imageHeight": 2048,
"imageWidth": 2048,
"status": "SUCCESS",
"progress": "100%",
"failReason": "",
"buttons": [
{
"customId": "MJ::JOB::upsample::1::e116ba11-6559-4e3a-8792-ce6ff98e8bd4",
"emoji": "",
"label": "U1",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::upsample::2::e116ba11-6559-4e3a-8792-ce6ff98e8bd4",
"emoji": "",
"label": "U2",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::upsample::3::e116ba11-6559-4e3a-8792-ce6ff98e8bd4",
"emoji": "",
"label": "U3",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::upsample::4::e116ba11-6559-4e3a-8792-ce6ff98e8bd4",
"emoji": "",
"label": "U4",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::reroll::0::e116ba11-6559-4e3a-8792-ce6ff98e8bd4::SOLO",
"emoji": "🔄",
"label": "",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::variation::1::e116ba11-6559-4e3a-8792-ce6ff98e8bd4",
"emoji": "",
"label": "V1",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::variation::2::e116ba11-6559-4e3a-8792-ce6ff98e8bd4",
"emoji": "",
"label": "V2",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::variation::3::e116ba11-6559-4e3a-8792-ce6ff98e8bd4",
"emoji": "",
"label": "V3",
"type": 2,
"style": 2
},
{
"customId": "MJ::JOB::variation::4::e116ba11-6559-4e3a-8792-ce6ff98e8bd4",
"emoji": "",
"label": "V4",
"type": 2,
"style": 2
}
],
"maskBase64": "",
"properties": {
"notifyHook": "",
"flags": 0,
"messageId": "1372040685854654507",
"messageHash": "e116ba11-6559-4e3a-8792-ce6ff98e8bd4",
"nonce": "1922481632673193984",
"customId": "",
"finalPrompt": "cat --fast",
"progressMessageId": "1372040685854654507",
"messageContent": "**cat --fast** - <@1365375019445653646> (fast)",
"discordInstanceId": "1372025398619279432",
"discordChannelId": "1372025398619279432"
}
}
请求参数
Path 参数
id
string
必需
Header 参数
Authorization
string
可选
示例值:
Bearer {{api-key}}
Body 参数application/x-www-form-urlencoded
object {0}
返回响应
修改于 2025-05-14 02:48:26