ddvinh1/faceswap-photo-id
Public
12.9K
runs
Run ddvinh1/faceswap-photo-id 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
|
|
target_image |
string
|
Target image
|
|
negative_prompt |
string
|
|
Negative prompt
|
source_face_id |
integer
|
0
|
Source face ID (0-indexed, left to right)
|
target_face_ids |
string
|
0
|
Target face IDs (comma-separated, 0-indexed, left to right)
|
enhance_face |
boolean
|
False
|
Enhance face
|
output_ext |
None
|
jpg
|
Output extension: jpg or png
|
{
"type": "object",
"title": "Input",
"required": [
"source_image",
"target_image"
],
"properties": {
"output_ext": {
"enum": [
"jpg",
"png"
],
"type": "string",
"title": "output_ext",
"description": "Output extension: jpg or png",
"default": "jpg",
"x-order": 6
},
"enhance_face": {
"type": "boolean",
"title": "Enhance Face",
"default": false,
"x-order": 5,
"description": "Enhance face"
},
"source_image": {
"type": "string",
"title": "Source Image",
"format": "uri",
"x-order": 0,
"description": "Source image"
},
"target_image": {
"type": "string",
"title": "Target Image",
"format": "uri",
"x-order": 1,
"description": "Target image"
},
"source_face_id": {
"type": "integer",
"title": "Source Face Id",
"default": 0,
"x-order": 3,
"description": "Source face ID (0-indexed, left to right)"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 2,
"description": "Negative prompt"
},
"target_face_ids": {
"type": "string",
"title": "Target Face Ids",
"default": "0",
"x-order": 4,
"description": "Target face IDs (comma-separated, 0-indexed, left to right)"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}