Midjourney で画像を説明する
CometAPI の POST /mj/submit/describe を使用して、アップロードした画像から初期の Midjourney プロンプトを抽出し、すばやいリミックスと反復を行います。
このルートが適している用途
- 画像を、リミックス可能なプロンプト候補に変換する
- 新しい imagine タスクを開始する前に、ビジュアルの方向性を抽出する
- 最初のプロンプトをゼロから書きたくない場合に、作成ループを高速化する
タスクの流れ
画像を送信
describe タスクをポーリング
生成されたプロンプトを再利用
承認
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.