Image Face Swap
POST
https://api.changeface.io/api/v1/image-face-swap
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
source_image
string
required
target_video
string
required
Example
{
"source_image": "https://1250948203.rsc.cdn77.org/images/d3a6ea8e-d949-4b7c-8966-3ecf2796751d.jpg",
"target_image": "https://1250948203.rsc.cdn77.org/images/8592959b-00d6-4380-8fc7-824b41c89451.jpeg"
}
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.changeface.io/api/v1/image-face-swap' \
--header 'Content-Type: application/json' \
--data-raw '{
"source_image": "https://1250948203.rsc.cdn77.org/images/d3a6ea8e-d949-4b7c-8966-3ecf2796751d.jpg",
"target_image": "https://1250948203.rsc.cdn77.org/images/8592959b-00d6-4380-8fc7-824b41c89451.jpeg"
}'
Responses
🟢200成功
application/json
Body
message
string
required
type
string
required
status
string
required
created_at
string
required
id
integer
required
Example
{
"message": "success",
"type": "create_face_swap_photo_generation",
"status": "pending",
"created_at": "2024-08-17T08:14:07.000000Z",
"id": 165934
}
Modified at 2024-08-17 08:58:38