v1

latestOpenAPI 3.1.02026-07-26793302.3 KB

Fetch a Midjourney task

Use the task id returned by imagine, action, blend, modal, or editor endpoints. This is the main polling endpoint for Midjourney workflows on DeerAPI.

get/mj/task/{id}/fetch

Path parameters

idstring required

Midjourney task id.

Response

Current task state.

idstring required
actionstring
customIdstring
botTypestring
promptstring
promptEnstring
descriptionstring
statestring
submitTimeinteger
startTimeinteger
finishTimeinteger
imageUrlstring required
videoUrlstring
statusstring required
progressstring required
failReasonstring
maskBase64string

Example response

{
  "id": "1773314942177684",
  "status": "SUCCESS",
  "progress": "100%",
  "imageUrl": "https://api.deerapi.com/mj/image/1773314942177684",
  "videoUrl": "",
  "buttons": [
    {
      "customId": "MJ::JOB::upsample::1::example",
      "emoji": "",
      "label": "U1",
      "type": 2,
      "style": 1
    }
  ]
}