Midjourney imagine タスクを作成する
CometAPI で POST /mj/submit/imagine を使用して、完全な Discord パラメータ付きの Midjourney imagine タスクを作成し、task_id のステータスを追跡し、image-to-video のモーション効果を有効にします。
最初のレスポンスで得られるもの
resultは次にポーリングする task id です- HTTP スタイルの
200でなくても、codeは成功コードである場合があります
コアワークフロー
imagine タスクを送信
タスクが完了するまでポーリング
SUCCESS、MODAL、または FAILURE に達するまで Fetch Single Task を使用します。後処理を続行
オプションの動画プロンプトパターン
ソース画像からモーションを付けたい場合は、--video や --motion などの Midjourney 動画フラグとともに、画像 URL をプロンプトに追加します。承認
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.
レスポンス
Task accepted.
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.
Task id returned after submission.