- AI Avatar API
- Get Tokens
- TTS and Voice Clone
- Generate Avatar Videos
- Create Avatars and Train Lip-sync Models
- Background Matting and Replacement
- Face Swap
- Manage Face Swap Resource
- Quickly Preview Face Swap
- Face Swap Tasks
- AI Dubbing
- Image to Video
- Caption Removal
- Streaming Avatar
- Miscellaneous
Add User Face Swap Preview
Global Server
Global Server
POST
/api/v1/userFaceSwapPreview/add
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
face_url
stringÂ
optional
video_url
stringÂ
optional
Example
{
"face_url": "https://dh24as48lv9ce.cloudfront.net/adam2eve/beta/face_swap/ab2fca41-90e5-41a6-aa66-08a960b035e4.jpg",
"video_url": "https://dh24as48lv9ce.cloudfront.net/marvel/test_case/FS/b197b5a6-2ceb-46ff-b42f-d60e85ce1fea.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://video.a2e.ai/api/v1/userFaceSwapPreview/add' \
--header 'Content-Type: application/json' \
--data-raw '{
"face_url":"https://dh24as48lv9ce.cloudfront.net/adam2eve/beta/face_swap/ab2fca41-90e5-41a6-aa66-08a960b035e4.jpg",
"video_url":"https://dh24as48lv9ce.cloudfront.net/marvel/test_case/FS/b197b5a6-2ceb-46ff-b42f-d60e85ce1fea.jpeg"
}'
Responses
🟢200add
application/json
Body
code
integerÂ
required
data
objectÂ
required
video_url
stringÂ
required
face_url
stringÂ
required
current_status
stringÂ
required
result_url
stringÂ
required
error_code
stringÂ
optional
faild_message
stringÂ
optional
_id
stringÂ
required
user_id
stringÂ
required
Example
{
"code": 0,
"data": {
"video_url": "https://dh24as48lv9ce.cloudfront.net/marvel/test_case/FS/b197b5a6-2ceb-46ff-b42f-d60e85ce1fea.jpeg",
"face_url": "https://dh24as48lv9ce.cloudfront.net/adam2eve/beta/face_swap/ab2fca41-90e5-41a6-aa66-08a960b035e4.jpg",
"current_status": "initialized",
"result_url": "",
"error_code": "",
"faild_message": "",
"_id": "6674f0380f25167e88672b7c",
"createdAt": "2024-06-21T03:15:04.330Z",
"updatedAt": "2024-06-21T03:15:04.330Z"
}
}
Modified at 2025-02-25 06:44:06