- About This site
- About new website
- Midjourney Open API
- About Midjourney Service
- Midjourney Blend Image Generation Task CreationPOST
- Midjourney Text-to-Image Task CreationPOST
- Midjourney Execute Action Task CreationPOST
- Midjourney Query Specific Task ID Execution StatusPOST
- Midjourney Paginated Bulk Query TasksPOST
- Midjourney Describe Prompt Extraction Task CreationPOST
- Retrieve Images Generated by Midjourney from Object StorageGET
- Retrieve Compressed Images Generated by Midjourney from Object Storage + WSRVGET
- Retrieve Images Generated by Midjourney from Object Storage + WSRVGET
- Proxy Discord Images via WSRVGET
- Proxy and Compress Discord Images via WSRVGET
- Management API
- OpenAI
- Anthropic Claude
- Policies
- Other OpenAPIs
Midjourney Query Specific Task ID Execution Status
POST
/api/v1/ai/draw/mj/query
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/x-www-form-urlencoded
model
string
required
Example:
midjourney
taskId
string
required
Example:
3432
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.ohmygpt.com/api/v1/ai/draw/mj/query' \
--data-urlencode 'model=midjourney' \
--data-urlencode 'taskId=3432'
Responses
🟢200成功
application/json
Body
statusCode
integer
required
message
string
required
data
object
required
taskId
integer
任务ID
taskType
string
任务类型
status
string
任务状态
action
string
任务动作
progress
string
任务进度
description
string
任务描述
prompt
string
Prompt
failReason
null
失败原因
submitTime
string
提交时间
startTime
string
开始时间
finishTime
string
完成时间
webhookUrl
string
回调地址
imageDcUrl
string
图片地址
imageS3Url
null
required
actions
array [object {3}]
此任务的附加可执行动作
Example
{
"statusCode": 200,
"message": "Success",
"data": {
"taskId": 20,
"taskType": "NORMAL",
"status": "SUCCESS",
"action": "IMAGINE",
"progress": "100%",
"description": "/imagine chibi manga legend of vader anime vh1, in the style of miho hirano, dynamic and action-packed scenes, gaston bussière, chinese new year festivities, ross tran, charming character illustrations, light red and bronze --ar 73:88 --s 750 --niji 5",
"prompt": "chibi manga legend of vader anime vh1, in the style of miho hirano, dynamic and action-packed scenes, gaston bussière, chinese new year festivities, ross tran, charming character illustrations, light red and bronze --ar 73:88 --s 750 --niji 5",
"failReason": null,
"submitTime": "2023-08-31T13:59:14.000Z",
"startTime": "2023-08-31T13:59:14.000Z",
"finishTime": "2023-08-31T13:59:50.000Z",
"webhookUrl": "https://webhook.site/9adf49d8-14c3-4270-b83e-25a9e93bcb40",
"imageDcUrl": "https://cdn.discordapp.com/attachments/1136958712796430388/1146806560803262575/gpg4win_45703_chibi_manga_legend_of_vader_anime_vh1_in_the_styl_0b33153d-f3c4-486b-9b4a-2f0f0ae6a355.png",
"imageS3Url": null,
"actions": [
{
"customId": "MJ::JOB::upsample::1::0b33153d-f3c4-486b-9b4a-2f0f0ae6a355",
"emoji": "",
"label": "U1"
},
{
"customId": "MJ::JOB::upsample::2::0b33153d-f3c4-486b-9b4a-2f0f0ae6a355",
"emoji": "",
"label": "U2"
},
{
"customId": "MJ::JOB::upsample::3::0b33153d-f3c4-486b-9b4a-2f0f0ae6a355",
"emoji": "",
"label": "U3"
},
{
"customId": "MJ::JOB::upsample::4::0b33153d-f3c4-486b-9b4a-2f0f0ae6a355",
"emoji": "",
"label": "U4"
},
{
"customId": "MJ::JOB::reroll::0::0b33153d-f3c4-486b-9b4a-2f0f0ae6a355::SOLO",
"emoji": "🔄",
"label": ""
},
{
"customId": "MJ::JOB::variation::1::0b33153d-f3c4-486b-9b4a-2f0f0ae6a355",
"emoji": "",
"label": "V1"
},
{
"customId": "MJ::JOB::variation::2::0b33153d-f3c4-486b-9b4a-2f0f0ae6a355",
"emoji": "",
"label": "V2"
},
{
"customId": "MJ::JOB::variation::3::0b33153d-f3c4-486b-9b4a-2f0f0ae6a355",
"emoji": "",
"label": "V3"
},
{
"customId": "MJ::JOB::variation::4::0b33153d-f3c4-486b-9b4a-2f0f0ae6a355",
"emoji": "",
"label": "V4"
}
]
}
}