Video Faceswap
POST
https://api.piapi.ai/api/v1/task
Video Processing
Video Face Swap API Documentation
Overview
The face-swapping sequence is determined by the model's algorithmic detection of faces. The model assigns order labels to detected faces, and users can generally expect the API to sort faces from left to right by default. However, if faces in a photo/video are positioned diagonally (e.g., one at the top-left and another at the bottom-right), the model may prioritize them as follows:
1
0
0
1
Examples: How Face Indexing Affects Results
Case 1
target_faces_index: 1 0
Action: The left face in the source image replaces the right face in the target video, and the right face in the source replaces the left face in the target.
Case 2
target_faces_index: 0 1
Action: The left face in the source replaces the left face in the target; the right face in the source replaces the right face in the target.
Pricing
Model Information
Technical Limitations
Request
Header Params
x-api-key
string
optional
Body Params application/json