Midjourney
アクション(Upscale、Variation、Reroll、Zoom)
CometAPI の POST /mj/submit/action を使用して、imaging 経由で生成された画像に Midjourney のアクション(upscale、variation、reroll、zoom など)を適用します。
POST
Create a Midjourney follow-up action task
このエンドポイントは、Midjourney タスクがアクションボタンを返した後に使用します。upscale、variation、reroll、zoom、pan などの新しい後続タスクを開始します。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.
必要な値は 2 つです
- 元の、または直近の Midjourney タスクの
taskId - Fetch Single Task が返す最新の
buttons配列内のcustomId
一般的なアクション
U1からU4: グリッド内の 1 枚の画像をアップスケールV1からV4: 1 つの画像位置からバリエーションを生成- Reroll: グリッド全体を再生成
- Zoom と Pan: 既存の構図を拡張
アクション送信後
新しいタスクをポーリング
アクションが完了するまで、再度 Fetch Single Task を照会します。
モーダル専用アクションを処理
新しいタスクが
MODAL に達した場合は、追加入力を渡すために Modal に進んでください。承認
Bearer token authentication. Use your CometAPI key.
ボディ
application/json
Action id taken from the latest buttons array returned by the fetch endpoint.
Midjourney task id you want to continue from.
Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
Whether to force remix mode when the current action supports it.
Whether to prefer the same channel account used by the current task.