Bir Midjourney eylem görevi oluşturun
Oluşturulan görsellere upscale, variation, reroll, zoom ve daha fazlası gibi Midjourney eylemlerini uygulamak için CometAPI POST /mj/submit/action kullanın.
İki değere ihtiyacınız var
- Orijinal veya en son Midjourney görevindeki
taskId - Fetch Single Task tarafından döndürülen en son
buttonsdizisindekicustomId
Yaygın eylemler
U1ileU4: ızgaradan tek bir görseli upscale etV1ileV4: tek bir görsel konumundan variations oluştur- Reroll: tüm ızgarayı yeniden oluştur
- Zoom ve Pan: mevcut kompozisyonu genişlet
Bir eylem gönderdikten sonra
Takip görevini oluşturun
taskId ve customId gönderin, ardından döndürülen yeni task id’yi saklayın.Yeni görevi sorgulayın
Yalnızca modal gerektiren eylemleri işleyin
MODAL durumuna ulaşırsa, ek girdiyi sağlamak için Modal ile devam edin.Yetkilendirmeler
Bearer token authentication. Use your CometAPI key.
Gövde
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.
Yanıt
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.