Create Face Swap
Create Face Swap
POST
https://pub-api.mojo.vn/srv/publish/api/art_swapface/generate
Headers
Authorization
Bearer apikey,
API_KEY
Content-Type
application/json
Request Body
art_v5
String
ImageID (Infinity art generated)
face_init
base64
Face image to swap
{
"success": true,
"id": "FaceSwapImageID",
"queue_type": "fast"
}
curl --location 'https://pub-api.mojo.vn/srv/publish/api/art_swapface/generate' --header 'Authorization: Bearer apikey,API_KEY' --header 'Content-Type: application/json' --data '{ "face_init": "Image base64", "art_v5": "ImageID" }'
The Face Swap API allows users to seamlessly swap faces within images. It provides the capability to replace facial features, facilitating creative editing. However, please note that this feature currently supports only human faces.
FaceSwapImageID: The FaceSwapImageID is the ID of the FaceSwap image generated from the Create Face Swap API.
ImageID: The ImageID is the ID of the Infinity image generated from the Create Infinity Art API.
Last updated