- GUIDES
- Basic
- Video2Video
- ImageFaceSwap
- VideoFaceSwap
- Video Effect
- Text To Image
Generate Image Face Swap
POST
/api/v1/imagefaceswap/generate
Request
Header Params
Authorization
string
required
Body Params application/json
args
object
required
reference_img
string
required
source_img
string
required
type
string
required
Example
{
"args": {
"reference_img": "https://cdn.goenhance.ai/user/goenhance/808585c07e9b4fa4dd3ed4377c418d24.jpg",
"source_img": "https://cdn.goenhance.ai/user/goenhance/37018e026a6bb46c718a31bcde9f410a.jpg"
},
"type": "mx-image-face-swap"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.goenhance.ai/api/v1/imagefaceswap/generate' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"args": {
"reference_img": "https://cdn.goenhance.ai/user/goenhance/808585c07e9b4fa4dd3ed4377c418d24.jpg",
"source_img": "https://cdn.goenhance.ai/user/goenhance/37018e026a6bb46c718a31bcde9f410a.jpg"
},
"type": "mx-image-face-swap"
}'
Responses
🟢200Success
application/json
Body
code
integer
required
msg
string
required
data
object
required
img_uuid
string
required
Example
{
"code": 0,
"msg": "Success",
"data": {
"img_uuid": "c12b656c-747a-44fd-9c80-add79b0c52d5"
}
}
🟠401Unauthorized
🔴500Server Error
Modified at 2024-10-15 06:51:37