4Z API

Execute Action

Endpoint: POST https://4zapi.com/mj/submit/action

Execute Upscale, Variation, Reroll, Pan, and other actions on an existing task.

Request body (application/json)

  • customId (string, required): Action identifier
  • taskId (string, required): Task ID
  • chooseSameChannel (boolean): Whether to pick an account from the same Discord channel; by default only the account associated with the task is used
  • notifyHook (string): Callback URL; falls back to the global notifyHook when empty
  • state (string): Custom passthrough parameter

Request example

{
  "botType": "MID_JOURNEY",
  "customId": "MJ::JOB::upsample::1::xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "taskId": "1743326750223591"
}