Midjourney Modal
Call when a task needs an extra prompt (e.g. status ) or inpainting.
http
POST /mj/submit/modalRequest headers
| Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | Bearer token, e.g. | |
| string | Yes |
Request body
| Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | Task ID | |
| string | No | Extra prompt; usually required | |
| string | No | Inpaint mask Base64 |
Request example
bash
curl -X POST https://octopusx.ai/mj/submit/modal \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"taskId": "14001934816969359",
"prompt": "Cat"
}'Response example
json
{
"code": 1,
"description": "Submit success",
"result": "1712158011464908"
}Response fields
| Name | Type | Description |
|---|---|---|
| integer | ok, otherwise error | |
| string | Status text | |
| string | Task ID |