Guides
AI FASHION MODEL V4
Customize details

Customize details

💡
Before you start, make sure you have read Quick start documentation.

This tutorial will guide you through the process of customizing the details of generated models. Let's say you have a model image with thin body and cool expression, and you want to generate a model with medium body and laughing expression like show below.

Original model
Original model
Thin, Cool
Generated model
Generated model
Medium, Laughing
Generated model
Generated model
Medium, Laughing
Generated model
Generated model
Medium, Laughing

As shown in the above images, the generated model has a medium body and a laughing expression. You can customize the details of the generated model by following the steps below.

Customize body size

You can specify the body size of the generated model by setting the modelSize field in the request body of the create model generation task. The modelSize field accepts one of the following values:

  • 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.

The following example shows how to set the modelSize field in the request body to generate a model with a medium body size.

{
    "image": "https://gcs-airbrush.mr.pixocial.com/f5e6df0c59ea56b1863893b6f9ea2a11.png",
    "modelId": "002",
    "sceneType": "preset",
    "sceneId": "035",
    "modelSize": "m"
}

Customize facial expression

You can specify the facial expression of the generated model by setting the modelExpression field in the request body of the create model generation task. The modelExpression field accepts one of the following values:

  • 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.

The following example shows how to set the modelExpression field in the request body to generate a model with a laughing expression.

{
    "image": "https://gcs-airbrush.mr.pixocial.com/f5e6df0c59ea56b1863893b6f9ea2a11.png",
    "modelId": "002",
    "sceneType": "preset",
    "sceneId": "035",
    "modelSize": "m",
    "modelExpression": "laugh"
}

Create model generation task

Now you have request body with modelSize and modelExpression fields set, you can create a model generation task follow the steps in Quick start. If everything goes well, you will get a generated model with the specified body size and facial expression like the one shown above.