Imagine
CometAPI で POST /mj/submit/imagine を使用して、完全な Discord パラメータ付きの Midjourney imagine タスクを作成し、task_id のステータスを追跡し、image-to-video のモーション効果を有効にします。
このエンドポイントを使用して、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は次にポーリングするタスク id です- HTTP スタイルの
200でない場合でも、codeは成功コードであることがあります
基本ワークフロー
タスクが完了するまでポーリング
SUCCESS、MODAL、または FAILURE に達するまで、単一タスクを取得 を使用します。後処理を続行
オプションの動画プロンプト(Prompt)パターン
ソース画像からモーションを付けたい場合は、--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.