Skip to main content
POST
cURL
Bir Midjourney görevi eylem düğmelerini döndürdükten sonra bu endpoint’i kullanın. Bu, upscale, variation, reroll, zoom veya pan gibi yeni bir aşağı akış görevi başlatır.

İ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 buttons dizisindeki customId
customId sabit değildir. Bunu asla sabit kodlamayın. Her zaman en son polling yanıtından okuyun.

Yaygın eylemler

  • U1 ile U4: ızgaradan tek bir görseli upscale et
  • V1 ile V4: 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

1

Takip görevini oluşturun

taskId ve customId gönderin, ardından döndürülen yeni task id’yi saklayın.
2

Yeni görevi sorgulayın

Eylem tamamlanana kadar Fetch Single Task sorgusunu tekrar çalıştırın.
3

Yalnızca modal gerektiren eylemleri işleyin

Yeni görev MODAL durumuna ulaşırsa, ek girdiyi sağlamak için Modal ile devam edin.

Yetkilendirmeler

Authorization
string
header
gerekli

Bearer token authentication. Use your CometAPI key.

Gövde

application/json
customId
string
gerekli

Action id taken from the latest buttons array returned by the fetch endpoint.

taskId
string
gerekli

Midjourney task id you want to continue from.

state
string

Custom state string. Returned as-is in the task result and webhook callback for your own tracking.

enableRemix
boolean

Whether to force remix mode when the current action supports it.

chooseSameChannel
boolean

Whether to prefer the same provider account used by the current task.

Yanıt

200 - application/json

Action task accepted.

code
integer
gerekli

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.

description
string
gerekli
result
string
gerekli

New Midjourney task id created for the action.

properties
object