跳轉到主要內容
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 張來源圖片
  • 第一次測試請盡量簡單,除非確實需要,否則先略過額外的帳號路由選項
  • 儲存回傳的 task id,因為混圖仍為非同步處理

任務流程

1

提交 blend 任務

透過 blend 端點傳送來源圖片,並儲存回傳的 task id。
2

輪詢任務

使用 Fetch Single Task,直到任務進入最終狀態。
3

從結果繼續

當操作按鈕出現後,使用 Action 進行 upscale、variation 或其他後續步驟。

授權

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