A2E
  1. Background Matting and Replacement
A2E
  • AI Avatar API
  • Get Tokens
    • Obtain Login Token
      POST
    • Get API token
      POST
    • Delete API token
      POST
    • List api tokens
      GET
    • Getting API Tokens (2025 version)
      GET
  • TTS and Voice Clone
    • List Public TTS Options
      POST
    • List Voice Clone Options
      GET
    • Train TTS Model of The User's Voice (Voice Clone)
      POST
    • List Ongoing Voice Clone Tasks
      GET
    • Generate TTS Audio (Text-to-Speech)
      POST
    • Get Details of a Voice
      GET
    • Delete a User Voice
      DELETE
  • Generate Avatar Videos
    • Generate AI Avatar Videos
      POST
    • List of Result Videos
      POST
    • List One or All Avatars
      POST
    • Obtain the Status of One Avatar Video Task
      POST
    • Obtain the List of Personalized Lip-Sync Models
      GET
    • Delete or Cancel a Video
      DELETE
    • Auto Language Detect
      POST
    • Auto Swith to Public Computing Pool
      POST
  • Create Avatars and Train Lip-sync Models
    • Create A Custom Avatar by a Video or an Image
      POST
    • Train a Personalized Lip-sync Model (Optional) a.k.a. Continue Training 💠
      POST
    • Remove A Customized Avatar
      POST
    • Get Status of All Tasks
      GET
    • Get All Ongoing "Training" Tasks
      GET
    • Status of One Task
      GET
    • Clone Voice from a Video
      POST
  • Background Matting and Replacement
    • Obtain the List of Background Images
      POST
    • Add Custom Background Image
      POST
    • Delete Custom Image
      POST
  • Face Swap
    • Manage Face Swap Resource
      • Add Face Swap Image
      • Get Records of Face Swap Images
      • Delete User Face Swap Image
    • Quickly Preview Face Swap
      • Add User Face Swap Preview
      • Get Status of Face Swap Preview Process
    • Face Swap Tasks
      • Add User Face Swap Task
      • Get Status of Face Swap Task
      • Get Face Swap Task Records
      • Get Details of Face Swap
      • Delete Record
  • AI Dubbing
    • Start dubbing
    • List Dubbing Tasks
    • List All Processing Dubbing Tasks
    • Get Details
    • Delete Record
  • Image to Video
    • Start Image-to-Video
    • Check Status of One Task
    • List Status of All Tasks
    • Delete Record
  • Caption Removal
    • Start Caption Removal
    • Get Records of All Tasks
    • Get Status of All Tasks in Processing
    • Get Details of One Task
    • Delete a Task
  • Streaming Avatar
    • Get All avatars
    • Get a Streaming Avatar Token
    • Set QA Context
    • Get QA Context
    • Ask a Question to the Avatar
    • Let the Avatar Speak Directly
    • Leave the Room
  • Miscellaneous
    • Add a User
    • Get User Remaining Credits
    • Exchange Diamonds
    • List Available Languages
    • Save URL to A2E's storage
  1. Background Matting and Replacement

Obtain the List of Background Images

Global Server
https://video.a2e.ai
Global Server
https://video.a2e.ai
POST
/api/v1/custom_back/allBackground
Return user uploaded and system provided background images

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************

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/allBackground' \
--header 'Content-Type: text/plain' \
--data-raw ''

Responses

🟢200allBackground
application/json
Body
code
integer 
required
data
array [object {4}] 
required
_id
string 
required
id of the image
type
string 
required
custom or default
url
string 
required
url to download the image
createdAt
string 
optional
Example
{
  "code": 0,
  "data": [
    {
      "_id": "668fb7ef4b863bd11ea5061c",
      "type": "custom",
      "url": "https://d1tzkvq5ukphug.cloudfront.net/adam2eve/beta/face_swap/face__swap/eac52f96-9ddf-416b-a91b-f8599326630d.png",
      "createdAt": "2024-07-11T10:46:07.728Z"
    },
    {
      "_id": "668b61f269e9be52f6075103",
      "type": "default",
      "url": "https://d1tzkvq5ukphug.cloudfront.net/adam2eve/stable/face_swap/face__swap/e8dce7e6-501a-7f5d-d2f8-3a3ad2ba8207.png",
      "createdAt": "2022-09-06T03:39:13.219Z"
    },
    {
      "_id": "668b61f269e9be52f6075102",
      "type": "default",
      "url": "https://d1tzkvq5ukphug.cloudfront.net/adam2eve/stable/face_swap/face__swap/4c50afa7-a92c-28ab-cd35-29006953f0eb.jpg",
      "createdAt": "2022-09-06T03:39:13.219Z"
    },
    {
      "_id": "668b61f269e9be52f6075101",
      "type": "default",
      "url": "https://d1tzkvq5ukphug.cloudfront.net/adam2eve/stable/face_swap/face__swap/6fdb044e-b824-c03f-43f2-c44030370466.jpg",
      "createdAt": "2022-09-06T03:39:13.219Z"
    },
    {
      "_id": "668b61f269e9be52f6075100",
      "type": "default",
      "url": "https://d1tzkvq5ukphug.cloudfront.net/adam2eve/stable/face_swap/face__swap/098445b0-b924-282e-7b98-a70154fc9d16.jpg",
      "createdAt": "2022-09-06T03:39:13.219Z"
    }
  ],
  "trace_id": "22680327-ee56-48c1-b9f8-9923613ffbd1"
}
Modified at 2025-02-24 07:18:54
Previous
Clone Voice from a Video
Next
Add Custom Background Image
Built with