catio-apps/cog-faceswap-catio

Public
8.8K runs

Run catio-apps/cog-faceswap-catio with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

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
target_image
string
Target image to apply face swap to
source_image
string
Source image to get the face from
enable_face_swap
boolean
True
Enable face_swap
threshold_face_swap
number
1

Max: 1

Threshold for face detection
fusion_alpha
number
0.9

Max: 1

Face fusion strength
enhance_face
boolean
True
Enable additional face enhancement
use_advanced_blending
boolean
True
Use advanced blending techniques
output_format
None
png
Format of the output images
output_quality
integer
80

Min: 1

Max: 100

Set the quality of the output image for jpg and webp (1-100)

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "array",
  "items": {
    "type": "string",
    "format": "uri"
  },
  "title": "Output"
}