Skip to main content
POST
cURL
Use este endpoint para combinar de 2 a 5 imagens de origem em uma nova composição do Midjourney. Ele é um ponto de entrada direto e não exige uma tarefa imagine prévia.

Antes de chamá-lo

  • Prepare de 2 a 5 imagens de origem
  • Mantenha o primeiro teste pequeno e ignore opções extras de roteamento de conta, a menos que você precise delas
  • Salve o task id retornado, porque o blending ainda é assíncrono

Fluxo da tarefa

1

Enviar a tarefa de blend

Envie as imagens de origem pelo endpoint de blend e armazene o task id retornado.
2

Consultar a tarefa

Use Buscar tarefa única até que a tarefa atinja um estado terminal.
3

Continuar a partir do resultado

Quando os botões de ação aparecerem, use Action para upscale, variation ou outras etapas de continuação.

Autorizações

Authorization
string
header
obrigatório

Bearer token authentication. Use your CometAPI key.

Corpo

application/json
base64Array
string[]
obrigatório

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.

Opções disponíveis:
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.

Opções disponíveis:
MID_JOURNEY,
NIJI_JOURNEY

Resposta

200 - application/json

Success

code
integer
obrigatório

Status code

description
string
obrigatório

Human-readable description message corresponding to the status code

properties
object
obrigatório

Additional properties or metadata

result
integer
obrigatório

Returned task ID