Submit Imagine Task
Official docs: https://docs.midjourney.com/hc/en-us/articles/32023408776205-Prompt-Basics Generate images from a text prompt; supports reference images (base64Array) and multiple bot types.
POST
/mj/submit/imagineBody Parametersapplication/json
accountFilter object
Account filter criteria (optional)
properties channelId string
Channel ID
base64Array array
List of reference image Base64 strings, format `data:image/png;base64,...`, up to 5 images
items string string
botType string
Bot type; NIJI is suited for anime style
notifyHook string
Callback URL when the task completes (Webhook)
prompt* string
Image description prompt; supports native Midjourney parameters (e.g. `--ar 16:9 --v 6.1`)
state string
Passthrough state field, returned as-is in the callback
Responses
200 application/json
response-200 object
400 Bad request or validation failed application/json
response-400 object
properties error* object
401 Missing or invalid API Key application/json
response-401 object
1{
2"base64Array": [],
3"botType": "MID_JOURNEY",
4"notifyHook": "",
5"prompt": "cat",
6"state": ""
7}
1curl -X POST "https://api.digislash.com/mj/submit/imagine" \
2-H "Authorization: Bearer <API Key>" \
3-H "Content-Type: application/json" \
4-d '{
5"base64Array": [],
6"botType": "MID_JOURNEY",
7"notifyHook": "",
8"prompt": "cat",
9"state": ""
10}'
1▼{
2"code": 1,
3"description": "Submit success",
4▼"properties": {
5"discordChannelId": "1300842676874379336",
6"discordInstanceId": "1572398367386955776"
7},
8"result": "1730621718151844"
9}
