yan-ops / ai_face_swap

  • Public
  • 595.6K runs

Run yan-ops/ai_face_swap 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
source_image
string
source image
request_id
string
request_id
det_thresh
number
0.1
det_thresh default 0.1
local_source
string
local source image
prompt
string
prompt
negative_prompt
string
negative_prompt
batch_size
integer
1
batch_size, default 1
width
integer
640
width, default 640
height
integer
800
width, default 800
sampling_steps
integer
7
sampling_steps, default 7
cfg_scale
number
1.8
cfg_scale default 1.8
sampling_method
string (enum)
Euler A

Options:

DDIM, DPM++ 2M, HeunDiscrete, Euler A, Euler, LCM, DPM2

sampling_method, default Euler A
disable_safety_checker
boolean
True
prompt
seed
integer
generator seed
model
string
control_v11p_sd15_openpose
model, default control_v11p_sd15_openpose
local_control_image
string
local_control_image
control_image
string
control_image
control_guidance_start
number
0
control_guidance_start
control_guidance_end
number
1
control_guidance_start
controlnet_conditioning_scale
number
0.3
controlnet_conditioning_scale default 0.3
token_merging_ratio
number
0.5
token_merging_ratio default 0.5
denoising_strength
number
0.6
denoising strength default 0.6

Output schema

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

Schema
{
  "title": "Output"
}