POST/mj/insight-face/swap
Swapface
This endpoint allows you to swap faces between two photos.
Required attributes
- Name
sourceBase64
- Type
- string
- Description
The base64 of the source face image
- Name
targetBase64
- Type
- string
- Description
The base64 of the target image
- Name
notifyHook
- Type
- string
- Description
Callback address, use the global notifyHook if empty
- Name
state
- Type
- string
- Description
Custom parameters
Request
POST
/mj/insight-face/swap{
"sourceBase64": "data:image/png;base64,xxx1",
"targetBase64": "data:image/png;base64,xxx2",
"notifyHook": "",
"state": ""
}
Response
{
"code": 0,
"description": "",
"result": ""
}