> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fashion

> This endpoint allows you to wear a cloth image sample on an existing model body.

<img src="https://mintcdn.com/mod/Xe_I2k0P2zG5615S/images/enterprise-api/image-editing/assets/images/Fashion-ae35005b2e022cc90044d7760c301db9.jpg?fit=max&auto=format&n=Xe_I2k0P2zG5615S&q=85&s=192f4983b4edb7793a23ced7a3a27b12" alt="Fashion endpoint result" width="691" height="518" data-path="images/enterprise-api/image-editing/assets/images/Fashion-ae35005b2e022cc90044d7760c301db9.jpg" />

<Warning>
  Make sure you add your [s3 details](/enterprise-api/general/update-s3-details) for `image_editing` server, so you can receive image generated in your bucket. Images generated without s3 details being added will be delete after **24hours**
</Warning>

## Request

Make a `POST` request to below endpoint and pass the required parameters as a request body to the endpoint.

```curl curl theme={null}
--request POST 'https://modelslab.com/api/v1/enterprise/image_editing/fashion' \
```

## Body

```json json theme={null}
{
    "key": "enterprise_api_key",
    "prompt": ":A realistic photo of a model wearing a beautiful t-shirt",
    "negative_prompt": "Low quality, unrealistic, bad cloth, warped cloth",
    "init_image": "https://assets.modelslab.ai/generations/3227c6c5-14f6-4755-8be5-4f96c0fe988c.jpg",
    "cloth_image": "https://assets.modelslab.ai/generations/e202dba8-d3da-4bf6-9849-dc0535563e57.jpg",
    "cloth_type": "upper_body",
    "guidance_scale": 7.5,
    "num_inference_steps": 21,
    "seed": null,
    "webhook": null,
    "track_id": null 
}
```

## Body Attributes

<ParamField body="key" type="string" required>
  Your API Key used for request authorization
</ParamField>

<ParamField body="init_image" type="string" required>
  Image URL of the model to try the dress on
</ParamField>

<ParamField body="cloth_image" type="string" required>
  Cloth/Dress URL for the garment to try-on
</ParamField>

<ParamField body="cloth_type" type="string" required>
  One of `upper_body`, `lower_body` or `dresses` based on where the garment is to be worn
</ParamField>

<ParamField body="prompt" type="string" required>
  Text prompt with description of the things you want in the image to be generated
</ParamField>

<ParamField body="negative_prompt" type="string" required>
  Items you don't want in the image
</ParamField>

<ParamField body="num_inference_steps" type="integer" required>
  Number of denoising steps. Value accepted are 21, 31 or 41
</ParamField>

<ParamField body="guidance_scale" type="number" required>
  Scale for classifier-free guidance (minimum: 1; maximum: 20)
</ParamField>

<ParamField body="seed" type="integer" required>
  Random seed for reproducible results
</ParamField>

<ParamField body="webhook" type="string" required>
  Set an URL to get a POST API call once the image generation is complete
</ParamField>

<ParamField body="track_id" type="string" required>
  This ID is returned in the response to the webhook API call. This will be used to identify the webhook request
</ParamField>
