Submit images to the POST /mj/submit/blend endpoint to blend one or more inputs into a new Midjourney-style image with CometAPI.
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 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.Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Submit the blend task
Poll the task
Continue from the result
Bearer token authentication. Use your CometAPI key.
Two or more base64-encoded images to blend. Each item should be a data URI such as data:image/png;base64,xxx.
Output aspect ratio.
PORTRAIT, SQUARE, LANDSCAPE Webhook URL to receive task status updates. Falls back to your account-level webhook if omitted.
Custom state string. Returned as-is in the task result and webhook callback for your own tracking.
Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.
MID_JOURNEY, NIJI_JOURNEY 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
}