Fetch (query task)
Video & image generation
Fetch (query task)
GET /mj/task//fetch — poll a Midjourney task’s status
GET
Fetch (query task)
Get a Midjourney task’s current status, progress and result-image link.
Returns an array of task objects to reduce the number of polling requests.
Request
Response
status values
| Value | Meaning |
|---|---|
NOT_START | Not started yet |
SUBMITTED | Submitted, waiting on the upstream |
IN_PROGRESS | Generating (see the progress field) |
SUCCESS | Succeeded |
FAILURE | Failed |
buttons
After a Midjourney task completes, the clickable Discord buttons (U1-U4, V1-V4, 🔄) are returned as abuttons array.
To perform a button’s action, use change + customId.
Batch query
Callback vs. polling
- Callback (notifyHook): OpenPAI proactively POSTs to your service when the task status changes — recommended for production.
- Polling (fetch): simple but with latency, suited to local scripts.