You're looking at a specific version of this model. Jump to the model overview.
Input schema
The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
source_image |
string
|
Source image containing the face to swap
|
|
target_video |
string
|
Target video where faces will be swapped
|
|
negative_prompt |
string
|
|
None
|
enhance_face |
boolean
|
False
|
Enhance face
|
enhancement_quality |
None
|
same_quality
|
Enhancement frequency mode (same quality, different processing speed)
|
output_fps |
integer
|
0
Max: 60 |
Output video FPS (0=original FPS, lower for faster enhancement, max=original FPS)
|
num_threads |
integer
|
8
Min: 1 Max: 16 |
Number of threads for processing
|
mode |
None
|
all
|
Swap mode
|
tracking_mode |
None
|
simple
|
Face tracking mode for specific mode
|
boxes |
string
|
|
Specific face boxes for first frame: x,y,w,h;...
|
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}