Submit the FaceSwap task to perform face swap operation.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"mode": "RELAX",
"sourceBase64": "data:image/png;base64,xxx1",
"targetBase64": "data:image/png;base64,xxx2"
}
Request Code Samples
curl --location -g --request POST 'https://api.wenwen-ai.com/mj/insight-face/swap' \
--header 'Authorization: {YOUR_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
"mode": "RELAX",
"sourceBase64": "data:image/png;base64,xxx1",
"targetBase64": "data:image/png;base64,xxx2"
}'
Responses
{
"code": 1,
"description": "Submit success",
"result": "1734937261701344"
}
Modified at 2026-07-09 10:12:26