创建一个 Midjourney 动作任务
使用 CometAPI POST /mj/submit/action 对生成的图像应用 Midjourney 动作——放大、变体、重绘、缩放等。
你需要两个值
- 来自原始或最近一次 Midjourney 任务的
taskId - 来自 获取单个任务 返回的最新
buttons数组中的customId
常见动作
U1到U4:从网格中放大一张图像V1到V4:基于某个图像位置生成变体- Reroll:重新生成整个网格
- Zoom 和 Pan:扩展现有构图
提交动作后
创建后续任务
taskId 和 customId,然后保存新返回的 task id。轮询新任务
处理仅限模态框的动作
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.