Midjourney
Blend(圖生圖)
將圖片提交至 POST /mj/submit/blend 端點,使用 CometAPI 將一個或多個輸入混合成全新的 Midjourney 風格圖片。
POST
Blend (image -> image)
使用此端點可將 2 到 5 張來源圖片混合成新的 Midjourney 構圖。這是直接入口點,不需要先建立 imagine 任務。Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
呼叫前準備
- 準備 2 到 5 張來源圖片
- 第一次測試請盡量簡單,除非確實需要,否則先略過額外的帳號路由選項
- 儲存回傳的 task id,因為混圖仍為非同步處理
任務流程
輪詢任務
使用 Fetch Single Task,直到任務進入最終狀態。
從結果繼續
當操作按鈕出現後,使用 Action 進行 upscale、variation 或其他後續步驟。
授權
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