Multi Faceswap
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 swap faces from the swap_image
onto the target_image
.
Users on PiAPI could change target faces(≥1) following specific logic which you could check as follows.
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.
Pricing
Task-type | Price (USD) |
---|---|
multi-face-swap | $0.015 per generation |
Param Details
The multi-face-swap API logic operates based on the sequential order of faces detected by the algorithm, with the model assigning numeric labels from 0 to n. While users can generally expect the API to sort faces in a left-to-right order, diagonal face positioning in photos may alter this sequence.
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.