Skip to main content
POST
cURL
在 Midjourney 任務回傳動作按鈕後,請使用此端點。它會啟動新的下游任務,例如放大、變化、重新生成、縮放或平移。

你需要兩個值

  • 來自原始或最新 Midjourney 任務的 taskId
  • 來自 取得單一任務 回傳之最新 buttons 陣列的 customId
customId 並不穩定。絕對不要將它硬編碼。請務必從最新的輪詢回應中讀取它。

常見動作

  • U1U4:從網格中放大其中一張圖片
  • V1V4:根據某個圖片位置產生變化版本
  • Reroll:重新生成整個網格
  • Zoom 和 Pan:延展現有構圖

提交動作之後

1

建立後續任務

傳送 taskIdcustomId,然後儲存新回傳的 task id。
2

輪詢新任務

再次查詢 取得單一任務,直到動作完成。
3

處理僅限 modal 的動作

如果新任務進入 MODAL,請繼續使用 Modal 提供額外輸入。

授權

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

主體

application/json
customId
string
必填

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

taskId
string
必填

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.

回應

200 - application/json

Action task accepted.

code
integer
必填

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
必填
result
string
必填

New Midjourney task id created for the action.

properties
object