AI Fashion Model Flatlay V1
The AI Fashion Model Flatlay API can be used to create try-on models for flatlay apparel. Style your product images without models using AI-generated try-on models. It works for both flatlay and ghost mannequin apparel photos.
Create asynchronous task
Create an asynchronous clothing task to generate model images for clothes try-on.
Pricing
Each task costs 2 credits and we provide different pricing plans to meet your needs. You can check the pricing details on the Pricing page (opens in a new tab).
Request body
image
URL or Base64 encoded image data for a Top Apparel, such as a T-shirt, blouse, sweater, vest, coat.image
URL or Base64 encoded image data for a Bottom Apparel, such as pants, jeans, shorts, or a skirt.image
URL or Base64 encoded image data for a One-Piece Apparel, such as a dress, wedding dress, playsuit, bodysuit.You should either provide both topApparel
and bottomApparel
together, or just provide onePieceApparel
.
If you provide only a topApparel
or a bottomApparel
, we will complete the missing part, but it may not fully meet your needs.
original
: Indicates that the generated image will use the original background from the input image.preset
: Indicates that the generated image will use a scene based on the selected 'sceneId'color
: Indicates that the generated image will use a solid color background corresponding to the specified color valuenone
: Indicates that the generated image will have a transparent background.
preset
.preset
, this field must be set. Check out available scenes.color
.color
, this field must be set (e.g., #000000).similar
similar
: Indicates that the model size is similar to the size of the input image.s
: Indicates that the model size is small.m
: Indicates that the model size is medium.l
: Indicates that the model size is large.
similar
similar
: Indicates that the expression of the model is similar to the expression of the input image.smile
: Indicates that the model is smiling.laugh
: Indicates that the model is laughing.cool
: Indicates that the model is cool.
pending
: The task has been created and is waiting to be processed.running
: The task is in progress and a notification will be sent each time there is an update.success
: The task completed successfully.error
: The task failed with error(s).
Response body
The standard response body will be returned.
{
"code": 0,
"message": "Success",
"data": {
"taskId": "0f1c2d3e-4f5g-6h7i-8j9k-a1b2c3d4e5f6"
}
}
Query task status
Query the status of the asynchronous task. You can poll the status of the task by calling this API
periodically if callbackUrl
field of the Create asynchronous task API is not set.
Different status will return different response body as follows:
The task has been created and is waiting to be processed.
{
"code": 0,
"message": "Success",
"data": {
"taskId": "0f1c2d3e-4f5g-6h7i-8j9k-a1b2c3d4e5f6",
"status": "pending",
"message": "Pending",
"progress": 0
}
}
Request parameters
Response body
The standard response body will be returned.
The data
field is a Task object.
Task object
Represents the task returned by the Query task status API.
pending
: The task has been created and is waiting to be processed.running
: Indicates that the task is processing.success
: Indicates that the task has been successfully completed.error
: Indicates that the task failed with error(s).
Result object
Represents each element in the results list in the Task object.
Get preset model list
Get a list of pre-trained models. Each element in the list represents a Preset model object.
Response body
The standard response body will be returned.
{
"code": 0,
"message": "Success",
"data": {
"models": [
{
"id": "002",
"thumbnail": "https://seawaveprod.blob.core.windows.net/bvbiz/vmake/admin/web/ai-fashion-model/bac25529-b993-4e10-bfd6-3db98406703d.jpeg",
"name": "Clara",
"gender": "Female",
"skin": "Fair",
"age": "Youth"
},
{
"id": "003",
"thumbnail": "https://seawaveprod.blob.core.windows.net/bvbiz/vmake/admin/web/ai-fashion-model/7b23fe20-6718-43f1-80ae-a80836e3664f.jpeg",
"name": "Jamila",
"gender": "Female",
"skin": "Deep",
"age": "Youth"
},
]
}
}
Preset model object
Represents each element in the preset model list returned by the Get preset model list API.
fair
: Light or pale skin tone, often found in European and North American white individuals..medium
: Skin tone between light and dark, common in various populations.olive
: Skin with a greenish or yellowish undertone, often found in Mediterranean, Middle Eastern, and some Asian populations.deep
: Darker skin shades found in populations from Africa, the African diaspora, South Asia, and other regions.tanned
: Indicates that the skin tone is tanned.
children
: Indicates that the preset model is a child.teen
: Indicates that the preset model is a teenager.youth
: Indicates that the preset model is a youth.middle-aged
: Indicates that the preset model is middle-aged.senior
: Indicates that the preset model is a senior.
Get preset scene list
Get a list of pre-trained scenes. Each element in the list represents a Preset scene object.
Response body
The standard response body will be returned.
{
"code": 0,
"message": "Success",
"data": {
"scenes": [
{
"id": "002",
"thumbnail": "https://seawaveprod.blob.core.windows.net/bvbiz/vmake/admin/web/ai-fashion-model/4d3bf91c-a90e-42a1-9d90-2785517a0a8a.jpeg"
},
{
"id": "003",
"thumbnail": "https://seawaveprod.blob.core.windows.net/bvbiz/vmake/admin/web/ai-fashion-model/7c62b5a5-220d-438b-a88f-1773fd1632b1.jpeg"
}
]
}
}
Preset scene object
Represents each element in the preset scene list returned by the Get preset scene list API.