Imagine
在 CometAPI 中使用 POST /mj/submit/imagine 建立 Midjourney imagine 任務,支援完整 Discord 參數、追蹤 task_id 狀態,並啟用圖片轉影片動態效果。
使用此端點來啟動 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.
第一個回應會提供什麼
result是你接下來要輪詢的 task id- 即使不是 HTTP 風格的
200,code仍可能是成功代碼
核心工作流程
輪詢直到任務完成
SUCCESS、MODAL 或 FAILURE。繼續進行後處理
可選的影片 prompt 模式
如果你想讓來源圖片產生動態效果,可在 prompt 中加入圖片 URL 以及 Midjourney 的影片旗標,例如--video 和 --motion。授權
Bearer token authentication. Use your CometAPI key.
主體
Text prompt for the generation. Supports standard Midjourney parameters such as --v, --ar, --stylize, etc.
"a paper boat floating on calm water at sunrise --v 6.1"
Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.
MID_JOURNEY, NIJI_JOURNEY Filter which Midjourney account modes may be used for this task.
Base64-encoded reference images. Each item should be a data URI such as data:image/png;base64,xxx.
Custom state string. Returned as-is in the task result and webhook callback for your own tracking.