Een Midjourney-actietaak maken
Gebruik CometAPI POST /mj/submit/action om Midjourney-acties toe te passen—upscale, variation, reroll, zoom en meer—op gegenereerde afbeeldingen.
Je hebt twee waarden nodig
taskIdvan de oorspronkelijke of meest recente Midjourney-taakcustomIduit de meest recentebuttons-array die is teruggegeven door Fetch Single Task
Veelvoorkomende acties
U1totU4: één afbeelding uit het raster upscalenV1totV4: variaties genereren vanuit één afbeeldingspositie- Reroll: het volledige raster opnieuw genereren
- Zoom en Pan: de bestaande compositie uitbreiden
Nadat je een actie hebt verzonden
Maak de vervolgstap aan
taskId en customId, en sla vervolgens de nieuwe geretourneerde task id op.Poll de nieuwe taak
Verwerk acties die alleen modal zijn
MODAL bereikt, ga dan verder met Modal om de extra invoer aan te leveren.Autorisaties
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.
Respons
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.