How to create listing images for clothing and apparel

In this tutorial you will find the details of how the Image Editing API enables you to create the different type of images that are needed to properly list clothing and apparel items.

Introduction

If you’re selling clothing online, you know how important it is to have good images that will showcase your items in the most favorable way possible.

Typically, you'll want to have these type visuals:

  • a clean flat lay top-down shot of the item

  • a ghost mannequin shot that captures fit and drape

  • a lifestyle shot of the item worn by a model, showing how it looks on a real body

So let's take the example of these clothing items and see how we can use the Image Editing APIarrow-up-right to generate all the images needed to properly list them:

Implementation

Flat Lay

Let's start by generating the flat lay images.

The Image Editing API comes with a built-in feature to generate such images.

We just need to set the parameter flatLay.mode=ai.auto and it will produce these results:

(original image)

(edited image)

If you want to give it a try, here's the code to reproduce the first example above:

Try it now!

circle-info

If you don't have an API key, here are the steps to create yours.

Ghost Mannequin

Next we'll generate the ghost mannequin images.

The Image Editing API also comes with a built-in feature to generate them.

We just need to set the parameter ghostMannequin.mode=ai.auto and it will produce these results:

(original image)

(edited image)

If you want to give it a try, here's the code to reproduce the first example above:

Try it now!

circle-info

If you don't have an API key, here are the steps to create yours.

Lifestyle

Finally, we'll create lifestyle images where the items are worn on a real body.

The Image Editing API provides a built-in feature that lets us create images where the clothing is worn by a model.

We can either use pre-set models or re-use the likeness if an existing model:

(original image)

(edited image)

+

+

+

If you want to give it a try, here's the code to reproduce the first example above:

Try it now!

circle-info

If you don't have an API key, here are the steps to create yours.

Results

Combining all the features of the Image Editing API, we can generate the full set of images needed in order to list the items:

Conclusion

The Image Editing API allows you to easily generate all the images needed to properly list clothing items, even if you're starting point is just an image taken from a smartphone.

If you want to learn more, here's the details of the API features used in this tutorial:

Last updated

Was this helpful?