Midjourney
创建 Midjourney 混合任务
将图片提交到 POST /mj/submit/blend 端点,使用 CometAPI 将一个或多个输入混合生成一张新的 Midjourney 风格图像。
POST
cURL
使用此端点可将 2 到 5 张源图片混合为一张新的 Midjourney 构图。它是一个直接入口,不需要先创建 imagine 任务。
调用前准备
- 准备 2 到 5 张源图片
- 首次测试时尽量保持简单,除非确有需要,否则跳过额外的账户路由选项
- 保存返回的 task id,因为混合任务仍然是异步的
任务流程
1
提交混合任务
通过 blend 端点发送源图片,并保存返回的 task id。
2
轮询任务
使用 获取单个任务,直到任务进入终态。
3
从结果继续
当操作按钮出现时,使用 Action 执行放大、变体或其他后续步骤。
授权
Bearer token authentication. Use your CometAPI key.
请求体
application/json
Two or more base64-encoded images to blend. Each item should be a data URI such as data:image/png;base64,xxx.
Output aspect ratio.
可用选项:
PORTRAIT, SQUARE, LANDSCAPE Webhook URL to receive task status updates. Falls back to your account-level webhook if omitted.
Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.
可用选项:
MID_JOURNEY, NIJI_JOURNEY