Midjourney
建立 Midjourney blend 任務
將圖片提交到 POST /mj/submit/blend 端點,使用 CometAPI 將一個或多個輸入混合成新的 Midjourney 風格圖片。
POST
cURL
使用此端點可將 2 到 5 張來源圖片混合成新的 Midjourney 構圖。這是直接入口,不需要先建立 imagine 任務。
呼叫前準備
- 準備 2 到 5 張來源圖片
- 首次測試請保持簡單,除非有需要,否則略過額外的帳號路由選項
- 儲存回傳的 task id,因為 blend 仍然是非同步的
任務流程
1
提交 blend 任務
透過 blend 端點傳送來源圖片,並儲存回傳的 task id。
2
輪詢任務
使用 抓取單一任務,直到任務進入終態。
3
從結果繼續
當操作按鈕出現時,使用 Action 進行放大、變體或其他後續步驟。
授權
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