建立 Midjourney 動作任務
使用 CometAPI POST /mj/submit/action 對已產生的圖片套用 Midjourney 動作,包括放大、變化、重新生成、縮放等。
你需要兩個值
- 來自原始或最新 Midjourney 任務的
taskId - 來自 取得單一任務 回傳之最新
buttons陣列的customId
常見動作
U1到U4:從網格中放大其中一張圖片V1到V4:根據某個圖片位置產生變化版本- Reroll:重新生成整個網格
- Zoom 和 Pan:延展現有構圖
提交動作之後
建立後續任務
taskId 和 customId,然後儲存新回傳的 task id。輪詢新任務
處理僅限 modal 的動作
MODAL,請繼續使用 Modal 提供額外輸入。授權
Bearer token authentication. Use your CometAPI key.
主體
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.
回應
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.