A2E
  1. Miscellaneous
A2E
  • AI Avatar API
  • Get Tokens
    • Getting API Tokens (2025 version)
  • TTS and Voice Clone
    • List Public TTS Options
      GET
    • 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
      GET
    • List One or All Avatars
      GET
    • Obtain the Status of One Avatar Video Task
      POST
    • 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
    • Add Custom Background Image
    • Delete Custom Image
  • 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
    • Start and Manage Face Swap Tasks
      • Start a 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
      POST
    • Get User Remaining Credits
      GET
    • List Available Languages
      POST
    • Save URL to A2E's storage
      POST
    • Add Watermark to Video or Image
      POST
    • Get R2 Upload Presigned URL
      POST
  • Text to Image
    • Start Text-to-Image
    • List Tasks of Text-to-Image Tasks
    • Get Details of One Task
    • Delete Record
    • Quick Add Avarar
  • Talking Photo
    • Start a Task
    • List Tasks
    • Get Task Detail
    • Delete Task
  • Virtual Try-On
    • Start Virtual Try-On
    • List Tasks of Virtual Try-On
    • Get Details of One Task
    • Delete Record
  • Video to Video
    • Start Video to Video
    • List Tasks of Video to Video
    • Get Details of One Task
    • Delete Record
  • Product Avatar
    • Start Product Avatar
  1. Miscellaneous

Save URL to A2E's storage

Global Server
https://video.a2e.ai
Global Server
https://video.a2e.ai
POST
/api/v1/tos/transferToStorage
Transfer and Store External Link Content in A2E’s Object Storage
When creating an avatar using the POST /api/v1/userVideoTwin/startTraining API, you must provide a video file URL. For privacy reasons, we do not automatically store the content of your URL in our storage. Instead, each time you generate an AI avatar video via POST /api/v1/video/generate, our system retrieves the video directly from the provided URL.
However, if your URL is slow to access or not permanent, AI video generation may fail. To optimize performance and ensure reliability, you can use this API endpoint to store the content in A2E’s object storage. By doing so, algorithmic processing speed is significantly improved due to reduced network latency and optimized data retrieval.
This is particularly useful when:
1.
Your video content is temporary and cannot be directly used with /api/v1/userVideoTwin/startTraining.
2.
The connection to your URL is slow or unstable. Transferring the file to A2E storage accelerates subsequent processing.
Note: The maximum supported size is 5 GiB. Objects larger than 5 GiB will fail to be fetched.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json

Example
{
    "url": "https://example.com/fa/stable/9e7525302bb7185bdd0d6f950cbb76838d06d64a062bbfe8f8aaf80a355a808e.mp3"
}

Request Code 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/tos/transferToStorage' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url": "https://example.com/fa/stable/9e7525302bb7185bdd0d6f950cbb76838d06d64a062bbfe8f8aaf80a355a808e.mp3"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "code": 0,
    "data": {
        "url": "https://prod-tos.avatar2everyone.com/adam2eve/stable/users/665da3d7bcf6aba2adfdfs11/transferToStorage/e596144c-dd0c-4df2-9b75-124f24f7ec7c.mp4"
    },
    "trace_id": "c1b5c268-25bd-4627-88e9-4b23f7c7d4aa"
}
Modified atĀ 2025-06-03 03:14:50
Previous
List Available Languages
Next
Add Watermark to Video or Image
Built with