Request
Provide your bearer token in the Authorization header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Example:Bearer {{YOUR_API_KEY}}
Body Params application/json
rate: PORTRAIT(2:3); SQUARE(1:1); LANDSCAPE(3:2)
Callback url, use global notifyHook when empty
botType,default:mj or niji
Allowed values:MID_JOURNEYNIJI_JOURNEY
{
"base64Array": [
"data:image/png;base64,xxx1",
"data:image/png;base64,xxx2"
],
"dimensions": "PORTRAIT",
"notifyHook": "string",
"state": "string"
}
Request samples
curl --location -g --request POST '{{BASE_URL}}/mj/submit/blend' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"base64Array": [
"data:image/png;base64,xxx1",
"data:image/png;base64,xxx2"
],
"dimensions": "PORTRAIT",
"notifyHook": "string",
"state": "string"
}'
Responses
application/json status: 1(success), 21(exist), 22(queue up), other(error)
{
"code": 1,
"description": "success",
"properties": {},
"result": 1320098173412546
}
Modified at 2025-03-30 04:27:55