メインコンテンツへスキップ
POST
/
mj
/
submit
/
blend
Blend (image -> image)
curl --request POST \
  --url https://api.cometapi.com/mj/submit/blend \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "base64Array": [
    "data:image/png;base64,xxx1",
    "data:image/png;base64,xxx2"
  ]
}
'
{
  "code": 123,
  "description": "<string>",
  "properties": {},
  "result": 123
}
このエンドポイントを使用すると、2〜5 枚の元画像をブレンドして、新しい Midjourney 構図を生成できます。これは直接利用できるエントリーポイントであり、事前の imagine タスクは必要ありません。

呼び出す前に

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

タスクの流れ

1

ブレンドタスクを送信

blend エンドポイント経由で元画像を送信し、返された task id を保存します。
2

タスクをポーリング

タスクが終了状態に達するまで、単一タスクを取得 を使用します。
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