Skip to content
Esta página ainda não está disponível no seu idioma, por isso é apresentada em inglês.

Blend (multi-image blend)

Blend 2–4 images into a new image (the classic MJ blend); image-only, no prompt supported

Toda a documentação
POST/v1/midjourney/generations/blend
json
{
  "error": {
    "code": 500,
    "message": "Internal server error. Please try again later",
    "type": "server_error"
  }
}
json
{
  "error": {
    "code": 502,
    "message": "Bad gateway. The server is temporarily unavailable",
    "type": "bad_gateway"
  }
}

Blend 2–4 images into a new image (the classic MJ blend feature). It works purely from images and does not accept a prompt.

ItemValue
actionBLEND
Billingmidjourney@blend[-speed]
Requiredimage_urls (2–4 images)

Exemplos de pedidos

curl --request POST \
  --url https://api.apisea.ai/v1/midjourney/generations/blend \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "image_urls": [
      "https://example.com/a.png",
      "https://example.com/b.png"
    ],
    "dimensions": "SQUARE",
    "speed": "fast"
  }'

Parameters

FieldTypeRequiredNotes
image_urlsstring[]YesSource images, 2–4; auto-converted to base64; each ≤ 12 MiB
nsfw_checkbooleanNoDefaults to false. Run content moderation before submitting a Midjourney task. • true: use omni-moderation-latest to review prompts and input images • false: skip moderation without adding moderation cost or latency
dimensionsstringNoDefault: SQUARE; Three aspect presets: SQUARE (1:1) / PORTRAIT (2:3) / LANDSCAPE (3:2); overridden when size is set
sizestringNoFree aspect ratio, any w:h (e.g. "16:9", "9:16", "21:9"); takes priority over dimensions, applied as the aspect ratio
speedstringNoDefault: relax; relax / fast / turbo
metadataobjectNoCustom metadata

Request examples

Preset aspect (dimensions):

json
{
  "image_urls": [
    "https://example.com/a.png",
    "https://example.com/b.png"
  ],
  "dimensions": "SQUARE",
  "speed": "fast"
}

Free aspect (size):

json
{
  "image_urls": [
    "https://example.com/a.png",
    "https://example.com/b.png"
  ],
  "size": "16:9",
  "speed": "fast"
}

The final prompt ends with --ar 16:9.

Notes

  • Aspect priority: size (free) > dimensions (presets) > default SQUARE.
  • Fewer than 2 or more than 4 image_urls returns 400.
  • blend has no independent version parameter. To price by speed, configure midjourney@blend-fast / midjourney@blend-turbo.

Respostas

{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_01KV52C0TEJSYZMCG0NCS4YWKK"
    }
  ]
}

Encontrou um problema nesta documentação? Envie um e-mail para support@apisea.ai.