Saltar al contenido 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
}
Usa este endpoint para combinar de 2 a 5 imágenes de origen en una nueva composición de Midjourney. Es un punto de entrada directo y no requiere una tarea imagine previa.

Antes de llamarlo

  • Prepara de 2 a 5 imágenes de origen
  • Mantén la primera prueba pequeña y omite las opciones adicionales de enrutamiento de cuenta a menos que las necesites
  • Guarda el id de tarea devuelto, porque blend sigue siendo asíncrono

Flujo de la tarea

1

Enviar la tarea de blend

Envía las imágenes de origen a través del endpoint blend y guarda el id de tarea devuelto.
2

Consultar la tarea

Usa Fetch Single Task hasta que la tarea alcance un estado terminal.
3

Continuar a partir del resultado

Cuando aparezcan los botones de acción, usa Action para upscale, variation u otros pasos de seguimiento.

Autorizaciones

Authorization
string
header
requerido

Bearer token authentication. Use your CometAPI key.

Cuerpo

application/json
base64Array
string[]
requerido

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.

Opciones 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.

Opciones disponibles:
MID_JOURNEY,
NIJI_JOURNEY

Respuesta

200 - application/json

Success

code
integer
requerido

Status code

description
string
requerido

Human-readable description message corresponding to the status code

properties
object
requerido

Additional properties or metadata

result
integer
requerido

Returned task ID