4Z API

Image Local Edit (Edits)

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

Edit a masked region on an existing image; optional prompt guidance.

Request body (application/json)

  • prompt (string, required): New prompt for the edited region
  • taskId (string, required): Original task ID
  • maskBase64 (string): Mask image Base64 (white areas are the edit region)
  • notifyHook (string): Callback URL
  • state (string): Custom pass-through state