You're looking at a specific version of this model. Jump to the model overview.

aiunivers /face-swap:3f10cd7d

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
string
Source face image
target
string
Target image
target_face_index
integer
0
Which target face to replace (0 = first detected)
paste_back
boolean
True
Paste swapped face back to original target image
fidelity
number
0.5

Max: 1

CodeFormer fidelity (0 = max restoration, 1 = keep details)

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'}