Creare un task di azione Midjourney
Usa CometAPI POST /mj/submit/action per applicare azioni Midjourney—upscale, variation, reroll, zoom e altre—alle immagini generate.
Ti servono due valori
taskIddal task Midjourney originale o più recentecustomIddall’ultimo arraybuttonsrestituito da Fetch Single Task
Azioni comuni
- Da
U1aU4: esegue l’upscale di un’immagine dalla griglia - Da
V1aV4: genera variation da una posizione dell’immagine - Reroll: rigenera l’intera griglia
- Zoom e Pan: estendono la composizione esistente
Dopo aver inviato un’azione
Crea il task successivo
taskId e customId, quindi salva il nuovo id del task restituito.Interroga il nuovo task
Gestisci le azioni solo modal
MODAL, continua con Modal per fornire l’input aggiuntivo.Autorizzazioni
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.
Risposta
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.