Skip to main content
POST
cURL
使用此端点可将 2 到 5 张源图片混合为一张新的 Midjourney 构图。它是一个直接入口,不需要先创建 imagine 任务。

调用前准备

  • 准备 2 到 5 张源图片
  • 首次测试时尽量保持简单,除非确有需要,否则跳过额外的账户路由选项
  • 保存返回的 task id,因为混合任务仍然是异步的

任务流程

1

提交混合任务

通过 blend 端点发送源图片,并保存返回的 task id。
2

轮询任务

使用 获取单个任务,直到任务进入终态。
3

从结果继续

当操作按钮出现时,使用 Action 执行放大、变体或其他后续步骤。

授权

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

请求体

application/json
base64Array
string[]
必填

Two or more base64-encoded images to blend. Each item should be a data URI such as data:image/png;base64,xxx.

dimensions
enum<string>

Output aspect ratio.

可用选项:
PORTRAIT,
SQUARE,
LANDSCAPE
notifyHook
string

Webhook URL to receive task status updates. Falls back to your account-level webhook if omitted.

state
string

Custom state string. Returned as-is in the task result and webhook callback for your own tracking.

botType
enum<string>

Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.

可用选项:
MID_JOURNEY,
NIJI_JOURNEY

响应

200 - application/json

Success

code
integer
必填

Status code

description
string
必填

Human-readable description message corresponding to the status code

properties
object
必填

Additional properties or metadata

result
integer
必填

Returned task ID