4Z API

提交Modal

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

针对图像的特定区域进行局部重绘(Vary Region / Inpaint),需提供遮罩区域。

参数

  • Authorization (header, string): Bearer API Key

请求体 (application/json)

  • taskId (string, 必填): 原任务 ID
  • botType (string): 机器人 / Bot 类型 ["MID_JOURNEY", "NIJI_JOURNEY"]
  • maskBase64 (string): 遮罩图像 Base64(白色区域为重绘区域)
  • notifyHook (string): 回调地址
  • prompt (string): 局部重绘的新提示词(可为空,保留原提示词)
  • state (string): 自定义透传状态

请求示例

{
  "maskBase64": "",
  "prompt": "",
  "taskId": "14001934816969359"
}