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 提供额外输入。

授权

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