Crear una tarea de acción de Midjourney
Usa CometAPI POST /mj/submit/action para aplicar acciones de Midjourney—upscale, variation, reroll, zoom y más—sobre imágenes generadas.
Necesitas dos valores
taskIdde la tarea original o de la tarea más reciente de MidjourneycustomIddel último arraybuttonsdevuelto por Fetch Single Task
Acciones comunes
U1aU4: upscale de una imagen de la cuadrículaV1aV4: generar variations desde una posición de imagen- Reroll: regenerar la cuadrícula completa
- Zoom y Pan: extender la composición existente
Después de enviar una acción
Crear la tarea de seguimiento
taskId y customId, luego guarda el nuevo id de tarea devuelto.Sondear la nueva tarea
Gestionar acciones solo de modal
MODAL, continúa con Modal para proporcionar la entrada adicional.Autorizaciones
Bearer token authentication. Use your CometAPI key.
Cuerpo
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.
Respuesta
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.