Midjourney
操作(放大、變化、重跑、縮放)
使用 CometAPI POST /mj/submit/action,對透過影像生成的 Midjourney 圖像套用操作,例如放大、變化、重跑、縮放等。
POST
Create a Midjourney follow-up action task
在 Midjourney 任務回傳操作按鈕後,請使用此端點。它會啟動新的下游任務,例如放大、變化、重跑、縮放或平移。Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
你需要兩個值
- 來自原始或最新 Midjourney 任務的
taskId - 來自 Fetch Single Task 回傳的最新
buttons陣列中的customId
常見操作
U1到U4:從網格中放大其中一張圖片V1到V4:根據某個圖片位置產生變化版本- Reroll:重新生成整個網格
- Zoom 和 Pan:延伸現有構圖
提交操作後
輪詢新任務
再次查詢 Fetch Single Task,直到操作完成。
處理僅限 modal 的操作
如果新任務進入
MODAL,請繼續參考 Modal 提供額外輸入。授權
Bearer token authentication. Use your CometAPI key.
主體
application/json
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 channel account used by the current task.