Skip to main content
POST
cURL
Usa questo endpoint per fondere da 2 a 5 immagini sorgente in una nuova composizione Midjourney. È un punto di ingresso diretto e non richiede un task imagine precedente.

Prima di chiamarlo

  • Prepara da 2 a 5 immagini sorgente
  • Mantieni piccolo il primo test e salta le opzioni extra di instradamento dell’account, a meno che non ti servano
  • Salva il task id restituito, perché il blending è ancora asincrono

Flusso del task

1

Invia il task blend

Invia le immagini sorgente tramite l’endpoint blend e memorizza il task id restituito.
2

Interroga il task

Usa Recupera un singolo task finché il task non raggiunge uno stato terminale.
3

Continua dal risultato

Quando compaiono i pulsanti di azione, usa Action per upscale, variation o altri passaggi successivi.

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer token authentication. Use your CometAPI key.

Corpo

application/json
base64Array
string[]
obbligatorio

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.

Opzioni disponibili:
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.

Opzioni disponibili:
MID_JOURNEY,
NIJI_JOURNEY

Risposta

200 - application/json

Success

code
integer
obbligatorio

Status code

description
string
obbligatorio

Human-readable description message corresponding to the status code

properties
object
obbligatorio

Additional properties or metadata

result
integer
obbligatorio

Returned task ID