AI Fashion Model V3 - DEPRECATED
AI Fashion Model API can specify parts of an image to remain unchanged using a Mask, and then replace existing models or mannequins with other models.
Create asynchronous task
Create a asynchronous task to generate model images.
Pricing
Each task costs 1 credit 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, pay attention to the size of the image must be consistent with the size of the Mask.custom
, the mask
field must be set.custom
: Indicates that the custom input mask is used.clothes
: Indicates that the clothes part of the image is automatically segmented as the mask.
white-black
custom
.white-black
: Indicates that the mask primary color is white and the secondary color is black.black-white
: Indicates that the mask primary color is black and the secondary color is white.
custom
.original
: Indicates that the original background is being used.preset
: Indicates that the preset background is being used.transparent
: Indicates that the transparent background is being used.
preset
.preset
, this field must be set. Check out available backgrounds.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).
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.
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.
backgroundTypes
field of the Create asynchronous task API contains original
, this field will be returned.backgroundTypes
field of the Create asynchronous task API contains preset
, this field will be returned.backgroundTypes
field of the Create asynchronous task API contains transparent
, this field will be returned.Image object
Represents each element in the results list in the Result 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": {
"presets": [
{
"presetId": "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"
},
{
"presetId": "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 background list
Get a list of pre-trained backgrounds, each element in the list represents a Preset background object.
Response body
The standard response body will be returned.
{
"code": 0,
"message": "Success",
"data": {
"presets": [
{
"presetId": "002",
"thumbnail": "https://seawaveprod.blob.core.windows.net/bvbiz/vmake/admin/web/ai-fashion-model/4d3bf91c-a90e-42a1-9d90-2785517a0a8a.jpeg"
},
{
"presetId": "003",
"thumbnail": "https://seawaveprod.blob.core.windows.net/bvbiz/vmake/admin/web/ai-fashion-model/7c62b5a5-220d-438b-a88f-1773fd1632b1.jpeg"
}
]
}
}
Preset background object
Represents each element in the preset background list returned by the Get preset background list API.
Create private model
Create a private model for AI fashion model generation.
Pricing
Each private model costs 100 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. The reference image must be a portrait image with a clear face so that the model can learn the facial features to generate the model.male
: Indicates that the private model is male.female
: Indicates that the private model is female.
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 private model is a child.teen
: Indicates that the private model is a teenager.youth
: Indicates that the private model is a youth.middle-aged
: Indicates that the private model is middle-aged.senior
: Indicates that the private model is a senior.
Response body
The standard response body will be returned.
Get private model list
Get a list of private models. Each element in the list represents a Private model object.
Response body
The standard response body will be returned.
{
"code": 0,
"message": "Success",
"data": {
"models": [
{
"id": "private-1754698211949416448",
"name": "Lisa",
"thumbnail": "URL",
"gender": "female",
"skin": "fair",
"age": "youth"
},
{
"id": "private-1755066466379632640",
"name": "John",
"thumbnail": "URL",
"gender": "male",
"skin": "fair",
"age": "youth"
}
]
}
}
Private model object
Represents each element in the private model list returned by the Get private 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 private model information
Get the information of a private model. The response data is a Private model object.
Path parameters
Response body
The standard response body will be returned. The structure of the data
object is shown below.
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.
Delete private model
Delete a private model by ID.
Path parameters
Response body
The standard response body will be returned.
{
"code": 0,
"message": "Success"
}