Przejdź do głównej treści
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
}
Użyj tego endpointu, aby połączyć od 2 do 5 obrazów źródłowych w nową kompozycję Midjourney. To bezpośredni punkt wejścia i nie wymaga wcześniejszego zadania imagine.

Zanim go wywołasz

  • Przygotuj od 2 do 5 obrazów źródłowych
  • Na potrzeby pierwszego testu zachowaj prostotę i pomiń dodatkowe opcje routingu konta, chyba że ich potrzebujesz
  • Zapisz zwrócony task id, ponieważ blend nadal działa asynchronicznie

Przepływ zadania

1

Prześlij zadanie blend

Wyślij obrazy źródłowe przez endpoint blend i zapisz zwrócony task id.
2

Odpytuj zadanie

Używaj Pobierz pojedyncze zadanie, aż zadanie osiągnie stan końcowy.
3

Kontynuuj na podstawie wyniku

Gdy pojawią się przyciski akcji, użyj Action do upscale, variation lub innych kolejnych kroków.

Autoryzacje

Authorization
string
header
wymagane

Bearer token authentication. Use your CometAPI key.

Treść

application/json
base64Array
string[]
wymagane

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.

Dostępne opcje:
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.

Dostępne opcje:
MID_JOURNEY,
NIJI_JOURNEY

Odpowiedź

200 - application/json

Success

code
integer
wymagane

Status code

description
string
wymagane

Human-readable description message corresponding to the status code

properties
object
wymagane

Additional properties or metadata

result
integer
wymagane

Returned task ID