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
|
{
"type": "object",
"title": "Input",
"required": [
"prompt"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 13,
"description": "generator seed"
},
"model": {
"type": "string",
"title": "Model",
"default": "control_v11p_sd15_openpose",
"x-order": 14,
"description": "model, default control_v11p_sd15_openpose"
},
"width": {
"type": "integer",
"title": "Width",
"default": 640,
"x-order": 7,
"description": "width, default 640"
},
"height": {
"type": "integer",
"title": "Height",
"default": 800,
"x-order": 8,
"description": "width, default 800"
},
"prompt": {
"type": "string",
"title": "Prompt",
"x-order": 4,
"description": "prompt"
},
"cfg_scale": {
"type": "number",
"title": "Cfg Scale",
"default": 1.8,
"x-order": 10,
"description": "cfg_scale default 1.8"
},
"batch_size": {
"type": "integer",
"title": "Batch Size",
"default": 1,
"x-order": 6,
"description": "batch_size, default 1"
},
"det_thresh": {
"type": "number",
"title": "Det Thresh",
"default": 0.1,
"x-order": 2,
"description": "det_thresh default 0.1"
},
"request_id": {
"type": "string",
"title": "Request Id",
"default": "",
"x-order": 1,
"description": "request_id"
},
"local_source": {
"type": "string",
"title": "Local Source",
"format": "uri",
"x-order": 3,
"description": "local source image"
},
"source_image": {
"type": "string",
"title": "Source Image",
"format": "uri",
"x-order": 0,
"description": "source image"
},
"control_image": {
"type": "string",
"title": "Control Image",
"x-order": 16,
"description": "control_image"
},
"sampling_steps": {
"type": "integer",
"title": "Sampling Steps",
"default": 7,
"x-order": 9,
"description": "sampling_steps, default 7"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 5,
"description": "negative_prompt"
},
"sampling_method": {
"enum": [
"DDIM",
"DPM++ 2M",
"HeunDiscrete",
"Euler A",
"Euler",
"LCM",
"DPM2"
],
"type": "string",
"title": "sampling_method",
"description": "sampling_method, default Euler A",
"default": "Euler A",
"x-order": 11
},
"denoising_strength": {
"type": "number",
"title": "Denoising Strength",
"default": 0.6,
"x-order": 21,
"description": "denoising strength default 0.6"
},
"local_control_image": {
"type": "string",
"title": "Local Control Image",
"format": "uri",
"x-order": 15,
"description": "local_control_image"
},
"token_merging_ratio": {
"type": "number",
"title": "Token Merging Ratio",
"default": 0.5,
"x-order": 20,
"description": "token_merging_ratio default 0.5"
},
"control_guidance_end": {
"type": "number",
"title": "Control Guidance End",
"default": 1,
"x-order": 18,
"description": "control_guidance_start"
},
"control_guidance_start": {
"type": "number",
"title": "Control Guidance Start",
"default": 0,
"x-order": 17,
"description": "control_guidance_start"
},
"disable_safety_checker": {
"type": "boolean",
"title": "Disable Safety Checker",
"default": true,
"x-order": 12,
"description": "prompt"
},
"controlnet_conditioning_scale": {
"type": "number",
"title": "Controlnet Conditioning Scale",
"default": 0.3,
"x-order": 19,
"description": "controlnet_conditioning_scale default 0.3"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"title": "Output"
}