Membuat task action Midjourney
Gunakan CometAPI POST /mj/submit/action untuk menerapkan action Midjourney—upscale, variation, reroll, zoom, dan lainnya—pada gambar yang dihasilkan.
Anda memerlukan dua nilai
taskIddari task Midjourney asli atau yang paling barucustomIddari arraybuttonsterbaru yang dikembalikan oleh Fetch Single Task
Action umum
U1hinggaU4: upscale satu gambar dari gridV1hinggaV4: menghasilkan variation dari satu posisi gambar- Reroll: menghasilkan ulang seluruh grid
- Zoom dan Pan: memperluas komposisi yang ada
Setelah Anda mengirimkan action
Buat task lanjutan
taskId dan customId, lalu simpan task id baru yang dikembalikan.Poll task baru
Tangani action khusus modal
MODAL, lanjutkan dengan Modal untuk memberikan input tambahan.Otorisasi
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.