Generate a virtual try-on image from a user photo and product image URLs, or Shopify product identifiers.
cURL
usingVariantId
curl --request POST \ --url https://hemsy.ai/api/try-on \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "userPhoto": "https://cdn.example.com/user-photo.jpg", "products": [ { "variantId": "44772123456789" } ] } '
{ "image": "<string>", "code": "<string>", "error": "<string>", "message": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Public URL or base64 data URL of the user image.
1
For each product, choose one option: variantId or images.
variantId
images
Show child attributes
Successful try-on