/api/v1/tryon创建一次试穿任务。可以用 multipart 直接上传图片文件,也可以用 JSON 传可公开访问的图片 URL。
请求
multipart/form-data
person <file> photo of the person
garment <file> the garment image
garment_url string https URL of the garment (instead of garment)
prompt? string optional styling hint
or application/json
{ "person_url": "https://…",
"garment_url": "https://…",
"prompt": "…" } // prompt optional响应
{
"code": 0,
"message": "ok",
"data": {
"id": "a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d",
"status": "succeeded",
"result_url": "/api/v1/tryon/a1b2c3d4-e5f6-4a7b-8c9d-0e1f2a3b4c5d/result",
"demo": false
}
}