Passer au contenu principal
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
}
Utilisez ce point de terminaison pour fusionner 2 à 5 images sources en une nouvelle composition Midjourney. Il s’agit d’un point d’entrée direct et il ne nécessite pas de tâche imagine préalable.

Avant de l’appeler

  • Préparez 2 à 5 images sources
  • Gardez le premier test simple et ignorez les options supplémentaires de routage de compte sauf si vous en avez besoin
  • Enregistrez l’identifiant de tâche renvoyé, car le blend reste asynchrone

Flux de tâche

1

Soumettre la tâche de blend

Envoyez les images sources via le point de terminaison blend et stockez l’identifiant de tâche renvoyé.
2

Interroger la tâche

Utilisez Fetch Single Task jusqu’à ce que la tâche atteigne un état terminal.
3

Poursuivre à partir du résultat

Lorsque des boutons d’action apparaissent, utilisez Action pour l’upscale, la variation ou d’autres étapes de suivi.

Autorisations

Authorization
string
header
requis

Bearer token authentication. Use your CometAPI key.

Corps

application/json
base64Array
string[]
requis

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.

Options disponibles:
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.

Options disponibles:
MID_JOURNEY,
NIJI_JOURNEY

Réponse

200 - application/json

Success

code
integer
requis

Status code

description
string
requis

Human-readable description message corresponding to the status code

properties
object
requis

Additional properties or metadata

result
integer
requis

Returned task ID