Naar hoofdinhoud gaan
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
}
Gebruik dit endpoint om 2 tot 5 bronafbeeldingen te blenden tot een nieuwe Midjourney-compositie. Dit is een direct toegangspunt en vereist geen eerdere imagine-taak.

Voordat je het aanroept

  • Bereid 2 tot 5 bronafbeeldingen voor
  • Houd de eerste test klein en sla extra account-routeringsopties over, tenzij je die nodig hebt
  • Sla de geretourneerde task id op, omdat blenden nog steeds asynchroon is

Taakverloop

1

Dien de blend-taak in

Verzend de bronafbeeldingen via het blend-endpoint en sla de geretourneerde task id op.
2

Poll de taak

Gebruik Fetch Single Task totdat de taak een eindstatus bereikt.
3

Ga verder met het resultaat

Wanneer actieknoppen verschijnen, gebruik je Action voor upscale, variatie of andere vervolgstappen.

Autorisaties

Authorization
string
header
vereist

Bearer token authentication. Use your CometAPI key.

Body

application/json
base64Array
string[]
vereist

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.

Beschikbare opties:
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.

Beschikbare opties:
MID_JOURNEY,
NIJI_JOURNEY

Respons

200 - application/json

Success

code
integer
vereist

Status code

description
string
vereist

Human-readable description message corresponding to the status code

properties
object
vereist

Additional properties or metadata

result
integer
vereist

Returned task ID