POST
/
mj
/
submit
/
action
curl -X POST https://api.example.com/mj/submit/action \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "taskId": "1730621718151844",
    "customId": "MJ::JOB::upsample::1::xxx"
  }'
{
  "code": 1,
  "description": "Submit success",
  "result": "1730621718151845"
}
Execute a Midjourney Action, such as Upscale or Variation.

Request Parameters

taskId
string
required
Original task ID.
customId
string
required
The customId of the button, obtained from the buttons array in the task query result.
notifyHook
string
Callback URL.
state
string
Custom parameter.
curl -X POST https://api.example.com/mj/submit/action \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "taskId": "1730621718151844",
    "customId": "MJ::JOB::upsample::1::xxx"
  }'
{
  "code": 1,
  "description": "Submit success",
  "result": "1730621718151845"
}