Request
Body Params application/json
Base64 array of padding images
Bot type, mj (default) or niji
Allowed values:MID_JOURNEYNIJI_JOURNEY
Callback URL, use the global notifyHook if empty
{
"base64Array": [],
"botType": "MID_JOURNEY",
"notifyHook": "",
"prompt": "Cat",
"state": ""
}
Request samples
curl --location --request POST 'https://api.302.ai/mj-relax/submit/imagine' \
--header 'mj-api-secret: sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"base64Array": [],
"botType": "MID_JOURNEY",
"notifyHook": "",
"prompt": "Cat",
"state": ""
}'
Responses
application/json 状态码: 1(提交成功), 22(排队中), other(错误)
{
"code": 1,
"description": "提交成功",
"properties": {},
"result": 1320098173412546
}
Modified at 2025-01-14 08:23:51