Skip to content

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

ParameterTypeRequiredDescriptionExample
AuthorizationstringOptionalBearer {{YOUR_API_KEY}}

Body Parameters (application/json)

ParameterTypeRequiredDescription
botTypeenum<string>RequiredBot type, mj (default) or niji
base64ArraystringOptionalImage base64 array
dimensionsenum<string>OptionalAspect ratio: PORTRAIT(2:3); SQUARE(1:1); LANDSCAPE(3:2)
qualitystringOptionalQuality of the generated image. hd creates images with finer details and higher consistency. This parameter only supports dall-e-3.
notifyHookstringOptionalCallback URL. Uses global notifyHook when empty
statestringOptional

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

ParameterTypeRequiredDescription
createdintegerRequired
dataarray[object]Required
  └ urlstringRequired

Response Example

json
{
    "created": 1589478378,
    "data": [
        {
            "url": "https://..."
        },
        {
            "url": "https://..."
        }
    ]
}