Image Faceswap
POST
https://api.piapi.ai/api/v1/task
This async endpoint from PiAPI's Faceswap API swaps the face from the swap_image
to the target_image
.
INFO
This async endpoint from PiAPI's Faceswap API swaps the face from the swap_image
onto the target_image
.
Format & Constraints
- Size & Resolution: both swap_image and target_image should be under 2048 x 2048 resolution each.
- Input Format: both swap_image and target_image should be passed in as urls (ending in jpg/jpeg/png/webp) or in base64 string.
For instance, when one face appears in the upper-left and another in the lower-right, the model might label the upper-left face as 1 and the lower-right as 0. conversely, a lower-left face could be labeled 0 while an upper-right face becomes 1. This positional variation in labeling occurs due to the algorithm's spatial evaluation of face arrangements within the frame.
Request
Header Params
x-api-key
string
required
Body Params application/json
Request samples
Responses
Modified at 2025-03-26 17:13:21