[Alpha] AI Beautifier
Warning: AI Beautifier is available as an alpha feature.
This means that the feature (or parts of it) might be deprecated with two week warning.
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 imageryai.food
for a result tailored to the specifics of food imagery (e.g. placing the subject on a plate)
(original image)
(beautified image)
beautify.mode=ai.auto
beautify.mode=ai.food
beautify.mode=ai.food
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
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?