Midjourney Shorten
Submit a prompt analysis (Shorten) job.
http
POST /mj/submit/shortenRequest headers
| Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | Bearer token, e.g. | |
| string | Yes |
Request body
| Name | Type | Required | Description |
|---|---|---|---|
| string | No | / | |
| string | Yes | Prompt | |
| string | No | / | |
| string | No | Callback URL | |
| string | No | Opaque state |
Request example
bash
curl -X POST https://octopusx.ai/mj/submit/shorten \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"mode": "RELAX",
"prompt": "Cat",
"botType": "mj"
}'Response example
json
{
"code": 1,
"description": "Submit success",
"result": "1712158011464910"
}Response fields
| Name | Type | Description |
|---|---|---|
| integer | ok, otherwise error | |
| string | Status text | |
| string | Task ID |