[Alpha] AI Beautifier

Overview

AI Beautifier improves the quality of the main subject by creating a more aesthetically pleasing visual.

To beautify an image, set the argument beautify.mode to either the value:

  • ai.auto for a result that follows the aesthetic product pack shot imagery

  • ai.food for a result tailored to the specifics of food imagery (e.g. placing the subject on a plate)

AI Beautifier can also be used in conjunction with other features like Positioning, AI Shadows and AI Backgrounds.

(original image)

(beautified image)

(beautified image and AI Shadows)

(beautified image and AI Backgrounds)

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

curl --request POST \
  --url https://image-api.photoroom.com/v2/edit \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: YOUR_API_KEY_HERE' \
  --form imageFile=@/path/to/image.png \
  --form beautify.mode=ai.auto 

Additional Parameters

beautify.seed

If you make several calls to the Image Editing API with the same image, you will notice that it will generate a different beautified subject every time.

In order to reduce the randomness, you can set a fixed value for the seed that the API's random generator will use. The value of the argument beautify.seed can be any positive integer.

If you provide a value for beautify.seed, then the API should produce similar-looking beautified subject for the same image.

In the examples above, the value used was beautify.seed=117879368.

Last updated

Was this helpful?