Skip to main content
POST
/
virtual-tryon
Apply clothing to person image
curl --request POST \
  --url https://nanostudio.cloud/api/virtual-tryon \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "personImage": "<string>",
  "clothingImage": "<string>",
  "settings": {
    "poseStyle": "standing",
    "lightingStyle": "natural",
    "fitPreference": "fitted",
    "backgroundStyle": "plain",
    "realismLevel": "natural"
  }
}
'
{
  "success": true,
  "data": {
    "resultUrl": "<string>",
    "settings": {},
    "processingTime": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
personImage
string
required

Base64 encoded person image

clothingImage
string
required

Base64 encoded clothing image

settings
object

Response

Virtual try-on completed successfully

success
boolean
data
object