跳转到主要内容
POST
/
mj
/
submit
/
blend
Blend (image -> image)
curl --request POST \
  --url https://api.cometapi.com/mj/submit/blend \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "base64Array": [
    "data:image/png;base64,xxx1",
    "data:image/png;base64,xxx2"
  ]
}
'
{
  "code": 123,
  "description": "<string>",
  "properties": {},
  "result": 123
}
使用此端点可将 2 到 5 张源图片融合为一张新的 Midjourney 构图图片。它是一个直接入口,无需先创建 imagine 任务。

调用前准备

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

任务流程

1

提交 blend 任务

通过 blend 端点发送源图片,并保存返回的任务 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