Criar uma tarefa de ação do Midjourney
Use o CometAPI POST /mj/submit/action para aplicar ações do Midjourney — upscale, variation, reroll, zoom e mais — em imagens geradas.
Você precisa de dois valores
taskIdda tarefa original ou mais recente do MidjourneycustomIddo arraybuttonsmais recente retornado por Fetch Single Task
Ações comuns
U1aU4: aplicar upscale em uma imagem da gradeV1aV4: gerar variações a partir de uma posição de imagem- Reroll: regenerar a grade completa
- Zoom e Pan: expandir a composição existente
Depois de enviar uma ação
Criar a tarefa subsequente
taskId e customId, depois armazene o novo id de tarefa retornado.Fazer polling da nova tarefa
Lidar com ações somente de modal
MODAL, continue com Modal para fornecer a entrada adicional.Autorizações
Bearer token authentication. Use your CometAPI key.
Corpo
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.
Resposta
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.