- 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 Task
Global Server
Global Server
POST
/api/v1/userFaceSwapTask/add
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
name
stringÂ
required
face_url
stringÂ
required
video_url
stringÂ
required
Example
{
"name": "xxxx",
"face_url": "https://dh24as48lv9ce.cloudfront.net/adam2eve/beta/face_swap/ab2fca41-90e5-41a6-aa66-08a960b035e4.jpg",
"video_url": "https://dh24as48lv9ce.cloudfront.net/pbs_lite/stable/customer/645888fc89897e30c57e31f0/clipVideo/665d718eb8f6a5ee678aa392/1717400057881.mp4"
}
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/userFaceSwapTask/add' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"xxxx",
"face_url":"https://dh24as48lv9ce.cloudfront.net/adam2eve/beta/face_swap/ab2fca41-90e5-41a6-aa66-08a960b035e4.jpg",
"video_url":"https://dh24as48lv9ce.cloudfront.net/pbs_lite/stable/customer/645888fc89897e30c57e31f0/clipVideo/665d718eb8f6a5ee678aa392/1717400057881.mp4"
}'
Responses
🟢200add
application/json
Body
code
integerÂ
required
data
objectÂ
required
name
stringÂ
required
video_url
stringÂ
required
duration
integerÂ
required
face_url
stringÂ
required
current_status
stringÂ
required
result_url
stringÂ
required
error_code
stringÂ
required
faild_message
stringÂ
required
_id
stringÂ
required
createdAt
stringÂ
required
updatedAt
stringÂ
required
Example
{
"code": 0,
"data": {
"name": "xxxx",
"video_url": "https://dh24as48lv9ce.cloudfront.net/pbs_lite/stable/customer/645888fc89897e30c57e31f0/clipVideo/665d718eb8f6a5ee678aa392/1717400057881.mp4",
"duration": 6,
"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": "6674f1765699df7e9d25311a",
"createdAt": "2024-06-21T03:20:22.436Z",
"updatedAt": "2024-06-21T03:20:22.436Z"
}
}
Modified at 2025-02-25 07:07:19