Skip to main content
POST
cURL
このエンドポイントを使うと、2〜5 枚のソース画像を新しい Midjourney 構図にブレンドできます。これは直接のエントリーポイントであり、事前の imagine タスクは必要ありません。

呼び出す前に

  • 2〜5 枚のソース画像を準備する
  • 最初のテストは小さく始め、必要になるまで追加のアカウントルーティングオプションは省略する
  • ブレンドは引き続き非同期のため、返された task id を保存する

タスクフロー

1

ブレンドタスクを送信する

blend エンドポイントを通じてソース画像を送信し、返された task id を保存します。
2

タスクをポーリングする

タスクが終端状態に達するまで Fetch Single Task を使用します。
3

結果から続行する

アクションボタンが表示されたら、アップスケール、バリエーション、またはその他の後続ステップのために Action を使用します。

承認

Authorization
string
header
必須

Bearer token authentication. Use your CometAPI key.

ボディ

application/json
base64Array
string[]
必須

Two or more base64-encoded images to blend. Each item should be a data URI such as data:image/png;base64,xxx.

dimensions
enum<string>

Output aspect ratio.

利用可能なオプション:
PORTRAIT,
SQUARE,
LANDSCAPE
notifyHook
string

Webhook URL to receive task status updates. Falls back to your account-level webhook if omitted.

state
string

Custom state string. Returned as-is in the task result and webhook callback for your own tracking.

botType
enum<string>

Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.

利用可能なオプション:
MID_JOURNEY,
NIJI_JOURNEY

レスポンス

200 - application/json

Success

code
integer
必須

Status code

description
string
必須

Human-readable description message corresponding to the status code

properties
object
必須

Additional properties or metadata

result
integer
必須

Returned task ID