Skip to main content
POST
cURL
使用此端點可將 2 到 5 張來源圖片混合成新的 Midjourney 構圖。這是直接入口,不需要先建立 imagine 任務。

呼叫前準備

  • 準備 2 到 5 張來源圖片
  • 首次測試請保持簡單,除非有需要,否則略過額外的帳號路由選項
  • 儲存回傳的 task id,因為 blend 仍然是非同步的

任務流程

1

提交 blend 任務

透過 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