Fashn-Tryon(虚拟穿衣)
POST
/302/submit/fashn-tryon请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
model_image
string
image url
garment_image
string
image url
category
string
必需
tops | bottoms | one-pieces
nsfw_filter
boolean
可选
cover_feet
boolean
可选
Allows long garments to cover the feet/shoes or change their appearance.
adjust_hands
boolean
可选
Allow to change the appearance of the model’s hands. Example use-cases: Remove gloves, get hands out of pockets, long sleeves that should cover hands.
restore_background
boolean
可选
Apply additional steps to preserve the original background. Runtime will be slower. Not needed for simple backgrounds.
restore_clothes
boolean
可选
Apply additional steps to preserve the appearance of clothes that weren’t swapped (e.g. keep pants if trying-on top).
garment_photo_type
string
可选
auto | flat-lay | model
long_top
boolean
可选
Adjusts internal parameters for better performance on long tops such as: Longline shirts, tunics, coats, etc.
guidance_scale
integer
可选
Default: 2 Range: 1.5-5
timesteps
integer
可选
Range: 10-50
seed
integer
可选
示例1
{
"model_image": "",
"garment_image": "",
"category": "tops",
"nsfw_filter": true,
"garment_photo_type": "auto",
"cover_feet": true,
"adjust_hands": true,
"restore_background": true,
"restore_clothes": true,
"long_top": true,
"guidance_scale": 2,
"timesteps": 50,
"seed": 8764440
}
示例代码
返回响应
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
completed_at
string
必需
created_at
string
必需
error
string
必需
id
string
必需
model
string
必需
output
string
必需
started_at
string
必需
status
string
必需
示例
{
"completed_at": "",
"created_at": "",
"error": "",
"id": "",
"model": "",
"output": "",
"started_at": "",
"status": ""
}
最后修改时间: 16 天前