使用 Midjourney 描述圖片
使用 CometAPI POST /mj/submit/describe,從上傳的圖片中擷取初始 Midjourney prompt,以便快速混編與迭代。
這個路由適合用來做什麼
- 將圖片轉成可供你混編的 prompt 候選
- 在開始全新的 imagine 任務前,先擷取視覺方向
- 當你不想從零撰寫第一個 prompt 時,建立更快速的創作流程
任務流程
提交圖片
輪詢 describe 任務
重用產生的 prompt
授權
Bearer token authentication. Use your CometAPI key.
主體
Base64-encoded image to describe. Use a data URI such as data:image/png;base64,xxx. Provide either base64 or link.
URL of the image to describe. Provide either link or base64.
Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.
NIJI_JOURNEY, MID_JOURNEY Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
回應
Success
Submission status code. 1 = submitted successfully (result carries the task id). 21 = the action opened a confirmation modal; continue with /mj/submit/modal using the returned task id. 4 = parameter error; description explains the cause.