1 Minute Free Time for Everyday -

  Create Your AI Video Right Now!

Create Santa Videos Win iPhone 16

×
    
    
        
Generate Videos/Images

Change Clothes

The resources (image, video) generated by our API are valid for 7 days. Please save the relevant resources as soon as possible to prevent expiration.

Create a Clothing Change

POST https://devapi.vidnoz.com/v2/task/clothes-changer

Request Headers

Parameter Required Type Description
Content-Type true string Data Tranmission Type: multipart/form-data

Request Attributes

Parameter Required Type Description
style true string Change clothing style. "upper_body": upper body; "shorts": shorts; "pants": pants; "short_skirt": short skirt; "long_skirt": long skirt; "dresses": full body
body_file false file Upload body image (prefer to use this field). Two formats supported: jpg, png. Choose one of the two formats to upload.
body_file_url false string Image url of the body. Two formats supported: jpg, png. Choose one of the two formats to upload.
clothes_file false file Clothing image (priority to use this field). Two formats supported: jpg, png. Choose one of the two formats to upload.
clothes_file_url false string Clothing imae url. Two formats supported: jpg, png. Choose one of the two formats to upload.

Response Attributes

Parameter Type Description
code int 200
message string Task Remark
data obj Task Object
data.task_id string Task ID

Example

Request Attributes


          curl  --request POST \
          --url https://devapi.vidnoz.com/v2/task/clothes-changer \
          --header "accept: application/json" \
          --header "content-type: multipart/form-data" \
          --header "Authorization: Bearer $API_KEY" \
          --form 'style="upper_body"' \
          --form 'body_file="YmUxSTFBcVA1V1A3N2Y3L2hxMHhGQT09"' \
          --form 'body_file_url="https://static.vidnoz.com/system/openapi/sample/headshot.png"' \
          --form 'clothes_file="YmUxSTFBcVA1V1A3N2Y3L2hxMHhGQT09"' \
          --form 'clothes_file_url="https://static.vidnoz.com/clothes_changer/clothes_5.jpg"' \
        

Response

{
        "code": 200,
        "message": "ok",
        "data": {
            "task_id": "T2hzVGJ5dWhaSUxSSUJqSzZORUdpUT09"
        }
}