{
"contents": [
{
"type": "product_image",
"url": "https://cdn.example.com/product.jpg"
},
{
"type": "person_image",
"url": "https://cdn.example.com/person.jpg"
}
],
"settings": {
"keep_face": true,
"keep_pose": true,
"keep_background": true
},
"options": {
"callback_url": "https://example.com/callback",
"external_task_id": "virtual-tryon-001",
"watermark": {
"enabled": false
}
}
}curl --location '/kling /solutions/virtual_try_on' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"type": "product_image",
"url": "https://cdn.example.com/product.jpg"
},
{
"type": "person_image",
"url": "https://cdn.example.com/person.jpg"
}
],
"settings": {
"keep_face": true,
"keep_pose": true,
"keep_background": true
},
"options": {
"callback_url": "https://example.com/callback",
"external_task_id": "virtual-tryon-001",
"watermark": {
"enabled": false
}
}
}'{
"code": 0,
"message": "string",
"request_id": "string",
"data": {
"task_id": "string",
"status": "string",
"create_time": 1788595200000,
"update_time": 1788595200000,
"external_id": "string"
}
}