4Z API

执行Action动作

接口: POST https://4zapi.com/mj/submit/action

官方文档:https://docs.midjourney.com/hc/en-us/articles/32804058614669-Upscalers

对已有任务执行 Upscale(放大)、Variation(变体)、Reroll(重绘)、Pan(平移)等操作。

请求体 (application/json)

  • customId (string, 必填): 动作标识
  • taskId (string, 必填): 任务ID
  • chooseSameChannel (boolean): 是否选择同一频道下的账号,默认只使用任务关联的账号
  • notifyHook (string): 回调地址, 为空时使用全局notifyHook
  • state (string): 自定义参数

请求示例

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