Skip to main content
POST
/
mj
/
submit
/
blend
cURL
IMG1=$(base64 < first.jpg | tr -d '\n')
IMG2=$(base64 < second.jpg | tr -d '\n')

curl https://api.cometapi.com/mj/submit/blend \
  -H "Authorization: Bearer $COMETAPI_KEY" \
  -H "Content-Type: application/json" \
  -d "{
    \"botType\": \"MID_JOURNEY\",
    \"base64Array\": [
      \"data:image/jpeg;base64,$IMG1\",
      \"data:image/jpeg;base64,$IMG2\"
    ],
    \"dimensions\": \"SQUARE\"
  }"
{
  "code": 123,
  "description": "<string>",
  "properties": {},
  "result": 123
}
Use this endpoint to blend 2 to 5 source images into a new Midjourney composition. It is a direct entry point and does not require a prior imagine task.

Before you call it

  • Prepare 2 to 5 source images
  • Keep the first test small and skip extra account-routing options unless you need them
  • Save the returned task id, because blending is still asynchronous

Task flow

1

Submit the blend task

Send the source images through the blend endpoint and store the returned task id.
2

Poll the task

Use Fetch Single Task until the task reaches a terminal state.
3

Continue from the result

When action buttons appear, use Action for upscale, variation, or other follow-up steps.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your CometAPI key.

Body

application/json
base64Array
string[]
required

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.

Available options:
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.

Available options:
MID_JOURNEY,
NIJI_JOURNEY

Response

200 - application/json

Success

code
integer
required

Status code

description
string
required

Human-readable description message corresponding to the status code

properties
object
required

Additional properties or metadata

result
integer
required

Returned task ID