A2E
  1. AI Outfit and Product Holding
A2E
  • AI Avatar API
  • Get Tokens
    • Getting API Tokens (2025 version)
  • TTS and Voice Clone
    • List Public TTS Options
      POST
    • 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
      POST
    • List of Result Videos
      GET
    • List One or All Avatars
      POST
    • List One or All Avatars
      GET
    • 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
    • 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
    • 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
  • Text to Image
    • Start Text-to-Image
    • List Tasks of Text-to-Image Tasks
    • Get Details of One Task
    • Delete Record
    • Quick Add Avarar
  • AI Outfit and Product Holding
    • Start AI Outfit or Product Holding
      POST
    • List Tasks of AI Outfit or Product Holding Tasks
      GET
    • Get Details of One Task
      GET
    • Delete Record
      DELETE
  • AI Image singing
    • Start AI Image Singing
    • List Tasks of AI Image Singing
    • Get Details of One Task
    • Delete Record
  1. AI Outfit and Product Holding

Start AI Outfit or Product Holding

Global Server
https://video.a2e.ai
Global Server
https://video.a2e.ai
POST
/api/v1/userImageEdit/start

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
The name or title for the AI outfit or product holding task
edit_type
enum<string> 
required
Type of image editing to perform - either "clothing" for clothing try-on or "product" for product placement
Allowed values:
clothingproduct
image_urls
array[string]
required
Array of image URLs where the first images are clothing/product items and the last image is the model photo
Example
{
    "name":"test",
    "edit_type":"product",
    "image_urls": [
    "https://example.com/AI_product/p_perfume.png",
    "https://example.com/AI_product/model2.jpg"
  ]
}

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/userImageEdit/start' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name":"test",
    "edit_type":"product",
    "image_urls": [
    "https://example.com/AI_product/p_perfume.png",
    "https://example.com/AI_product/model2.jpg"
  ]
}'

Responses

🟢200Success
application/json
Body
code
integer 
required
data
object 
required
_id
string 
required
The ID of the AI outfit or product holding task
current_status
string 
required
The status of the record.
initialized: initialization
sent: sent to algorithm
pending: in algorithm queue
processing: being processed
completed: completed
failed: algorithm failed
name
string 
required
edit_type
string 
required
image_urls
array[string]
required
result_image_url
string 
required
coins
integer 
required
createdAt
string 
required
failed_message
string 
required
failed_code
string 
required
trace_id
string 
required
Example
{
    "code": 0,
    "data": {
        "_id": "685bcd6afb322d603026af8c",
        "name": "test",
        "edit_type": "product",
        "image_urls": [
            "https://example.com/AI_product/p_perfume.png",
            "https://example.com/AI_product/model2.jpg"
        ],
        "result_image_url": "https://example.com/d90194d0-f2e0-4aa7-a3a7-775dc30c8908.jpeg",
        "current_status": "completed",
        "coins": 30,
        "createdAt": "2025-06-25T10:20:26.997Z",
        "failed_message": "",
        "failed_code": ""
    },
    "trace_id": "7c7d53cf-bd47-478d-9b82-36a17813a886"
}
Modified at 2025-07-07 08:42:00
Previous
Quick Add Avarar
Next
List Tasks of AI Outfit or Product Holding Tasks
Built with