Theme
Submit Blend Task
POST
https://www.kkiai.com/mj/submit/blend
Official documentation: https://docs.midjourney.com/hc/en-us/articles/32635189884557-Blend-Images-on-Discord
Request Parameters
Authorization
Add the Authorization parameter to the Header. Its value is the Token concatenated after Bearer.
Example: Authorization: Bearer ********************
Header Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
Authorization | string | Optional | Bearer {{YOUR_API_KEY}} |
Body Parameters (application/json)
| Parameter | Type | Required | Description |
|---|---|---|---|
botType | enum<string> | Required | Bot type, mj (default) or niji |
base64Array | string | Optional | Image base64 array |
dimensions | enum<string> | Optional | Aspect ratio: PORTRAIT(2:3); SQUARE(1:1); LANDSCAPE(3:2) |
quality | string | Optional | Quality of the generated image. hd creates images with finer details and higher consistency. This parameter only supports dall-e-3. |
notifyHook | string | Optional | Callback URL. Uses global notifyHook when empty |
state | string | Optional |
Request Example
json
{
"botType": "MID_JOURNEY",
"base64Array": [
"data:image/png;base64,xxx1",
"data:image/png;base64,xxx2"
],
"dimensions": "SQUARE",
"notifyHook": "",
"state": ""
}cURL Example
bash
curl --location --request POST 'https://www.kkiai.com/mj/submit/blend' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"botType": "MID_JOURNEY",
"base64Array": [
"data:image/png;base64,xxx1",
"data:image/png;base64,xxx2"
],
"dimensions": "SQUARE",
"notifyHook": "",
"state": ""
}'Response
🟢200 Create image
Response Body
| Parameter | Type | Required | Description |
|---|---|---|---|
created | integer | Required | |
data | array[object] | Required | |
└ url | string | Required |
Response Example
json
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}