- 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
- AI Dubbing
- Image to Video
- Caption Removal
- Streaming Avatar
- Miscellaneous
Add Custom Background Image
Global Server
Global Server
POST
/api/v1/custom_back/add
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
img_url
stringÂ
required
Example
{
"img_url": "https://xxx.s3.aws.com/xxxx"
}
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/custom_back/add' \
--header 'Content-Type: application/json' \
--data-raw '{"img_url":"https://xxx.s3.aws.com/xxxx"}'
Responses
🟢200add
application/json
Body
code
integerÂ
required
data
objectÂ
required
_id
stringÂ
required
type
stringÂ
required
url
stringÂ
required
createdAt
stringÂ
required
Example
{
"code": 0,
"data": {
"_id": "652644d3c94a53313c6f02cd",
"type": "custom",
"url": "https://d1tzkvq5ukphug.cloudfront.net/adam2eve/beta/face_swap/face__swap/184ed6d7-c3e6-4c6f-a76f-9e5d6070b10c.jpg",
"createdAt": "2023-10-11T06:46:43.174Z"
}
}
Modified at 2025-02-24 07:19:30