Skip to content

Midjourney Task fetch ​

Fetch one Midjourney task's progress, result URLs, and button list.

http
GET /mj/task/{id}/fetch

Request headers ​

NameTypeRequiredDescription
stringYesBearer token, e.g.

Path parameters ​

NameTypeRequiredDescription
stringYesTask ID; same as submit

Response fields ​

NameTypeDescription
stringTask ID
stringe.g. , , , , , , , ,
stringPrompt
stringEnglish prompt
stringTask description
integerSubmit time
integerStart time
integerFinish time
stringImage URL
string / / / / / /
stringProgress, e.g.
stringFailure reason
array | nullButton list; pass to Action
stringAction id
stringIcon
stringOpaque state
stringVideo URL (capital V)
integerImage width
integerImage height
arrayImage URL list

Request example ​

bash
curl https://octopusx.ai/mj/task/1712158011464906/fetch \
  -H "Authorization: Bearer YOUR_API_KEY"

Response example ​

json
{
  "id": "1712158011464906",
  "action": "IMAGINE",
  "prompt": "Cat",
  "promptEn": "Cat",
  "description": "Submit success",
  "submitTime": 1735689600000,
  "startTime": 1735689610000,
  "finishTime": 0,
  "imageUrl": "",
  "status": "IN_PROGRESS",
  "progress": "65%",
  "failReason": "",
  "buttons": null,
  "state": "",
  "VideoUrl": "",
  "imageWidth": 0,
  "imageHeight": 0,
  "imageUrls": []
}
json
{
  "id": "1712158011464906",
  "action": "IMAGINE",
  "prompt": "Cat",
  "promptEn": "Cat",
  "description": "Finished",
  "submitTime": 1735689600000,
  "startTime": 1735689610000,
  "finishTime": 1735689700000,
  "imageUrl": "https://example.com/mj/result.png",
  "status": "SUCCESS",
  "progress": "100%",
  "failReason": "",
  "buttons": [
    {
      "customId": "MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011",
      "emoji": "U2",
      "type": 2,
      "style": 2
    }
  ],
  "state": "",
  "VideoUrl": "",
  "imageWidth": 2048,
  "imageHeight": 2048,
  "imageUrls": ["https://example.com/mj/result.png"]
}