Saltar para o conteúdo 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
}
Use este endpoint para combinar de 2 a 5 imagens de origem em uma nova composição Midjourney. É 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 precise delas
  • Salve o id da task retornada, porque o blend ainda é assíncrono

Fluxo da task

1

Enviar a task de blend

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

Consultar a task

Use Fetch Single Task até que a task alcance 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 acompanhamento.

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