Utwórz zadanie akcji Midjourney
Użyj CometAPI POST /mj/submit/action, aby zastosować akcje Midjourney — upscale, variation, reroll, zoom i inne — do wygenerowanych obrazów.
Potrzebujesz dwóch wartości
taskIdz oryginalnego lub najnowszego zadania MidjourneycustomIdz najnowszej tablicybuttonszwróconej przez Pobierz pojedyncze zadanie
Typowe akcje
U1doU4: powiększ jeden obraz z siatkiV1doV4: wygeneruj warianty z jednej pozycji obrazu- Reroll: wygeneruj ponownie całą siatkę
- Zoom i Pan: rozszerz istniejącą kompozycję
Po przesłaniu akcji
Utwórz zadanie następcze
taskId i customId, a następnie zapisz id nowo zwróconego zadania.Odpytaj nowe zadanie
Obsłuż akcje wymagające modala
MODAL, przejdź do Modal, aby podać dodatkowe dane wejściowe.Autoryzacje
Bearer token authentication. Use your CometAPI key.
Treść
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.
Odpowiedź
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.