Fashion endpoint result
Make sure you add your 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

Request

Make a POST request to below endpoint and pass the required parameters as a request body to the endpoint.
curl
--request POST 'https://modelslab.com/api/v1/enterprise/image_editing/fashion' \

Body

json
{
  "key": "your_api_key",
  "init_image": "https://example.com/model-image.jpg",
  "cloth_image": "https://example.com/cloth-image.jpg",
  "cloth_type": "upper_body",
  "num_inference_steps": "21",
  "guidance_scale": 7.5,
  "seed": null,
  "webhook": null,
  "track_id": null
}

Body Attributes

key
string
required
Your API Key used for request authorization
init_image
string
required
Image URL of the model to try the dress on
cloth_image
string
required
Cloth/Dress URL for the garment to try-on
cloth_type
string
required
One of upper_body, lower_body or dresses based on where the garment is to be worn
prompt
string
required
Text prompt with description of the things you want in the image to be generated
negative_prompt
string
required
Items you don’t want in the image
num_inference_steps
integer
required
Number of denoising steps. Value accepted are 21, 31 or 41
guidance_scale
number
required
Scale for classifier-free guidance (minimum: 1; maximum: 20)
seed
integer
required
Random seed for reproducible results
webhook
string
required
Set an URL to get a POST API call once the image generation is complete
track_id
string
required
This ID is returned in the response to the webhook API call. This will be used to identify the webhook request