Create a Midjourney action task
Use CometAPI POST /mj/submit/action to apply Midjourney actions—upscale, variation, reroll, zoom, and more—on generated images.
You need two values
taskIdfrom the original or most recent Midjourney taskcustomIdfrom the latestbuttonsarray returned by Fetch Single Task
Common actions
U1toU4: upscale one image from the gridV1toV4: generate variations from one image position- Reroll: regenerate the full grid
- Zoom and Pan: extend the existing composition
After you submit an action
Poll the new task
Handle modal-only actions
MODAL, continue with Modal to supply the extra input.Authorizations
Bearer token authentication. Use your CometAPI key.
Body
Action id taken from the latest buttons array returned by the fetch endpoint.
Midjourney task id you want to continue from.
Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
Whether to force remix mode when the current action supports it.
Whether to prefer the same provider account used by the current task.
Response
Action task accepted.
Submission status code. 1 = submitted successfully (result carries the task id). 21 = the action opened a confirmation modal; continue with /mj/submit/modal using the returned task id. 4 = parameter error; description explains the cause.
New Midjourney task id created for the action.