4Z API

Face Swap (InsightFace Swap)

Endpoint: POST https://4zapi.com/mj/insight-face/swap

Replace the face in the target image with the face from the source image.

Request body (application/json)

  • sourceBase64 (string, required): Source face image Base64 (the image providing the face)
  • targetBase64 (string, required): Target image Base64 (the image whose face will be replaced)
  • notifyHook (string): Callback URL
  • state (string): Custom pass-through state