Отправляйте изображения в endpoint POST /mj/submit/blend, чтобы объединять один или несколько входных файлов в новое изображение в стиле Midjourney с помощью 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
}Отправьте задачу blend
Опрашивайте задачу
Продолжите работу с результатом
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
}