# 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.car` for a result tailored to the specifics of car imagery (e.g. removing unwanted reflections)

AI Beautifier can also be used in conjunction with other features like [Positioning](/image-editing-api-plus-plan/positioning.md), [AI Shadows](/image-editing-api-plus-plan/ai-shadows.md) and [AI Backgrounds](/image-editing-api-plus-plan/ai-backgrounds.md).

{% hint style="warning" %}
AI Beautifier creates a re-imagined visual of the main subject: please note that alterations can be introduced.
{% endhint %}

|        *(original image)*        |       *(beautified image)*       | (*beautified image and* [*AI Shadows*](/image-editing-api-plus-plan/ai-shadows.md)*)*               | (*beautified image and* [*AI Backgrounds*](/image-editing-api-plus-plan/ai-backgrounds.md)*)*       |
| :------------------------------: | :------------------------------: | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| ![](/files/CD1N6mis7wlJmnx0keVH) | ![](/files/mbTZFSVuIuP0TAwilR61) | ![](/files/0hlQc2LmuZzw7h3mIkar)                                                                    | ![](/files/EnMCK3sPtUTNthH6yDkR)                                                                    |
| ![](/files/dnj8XebehZSgWm8yj61R) | ![](/files/cPp4V9kGY3iGos2fNhLc) | <div><figure><img src="/files/XHYXzZxEwSxEk3EjBfyG" alt=""><figcaption></figcaption></figure></div> | <div><figure><img src="/files/Kxhpqqirbq8IVSRbrwsi" alt=""><figcaption></figcaption></figure></div> |
| ![](/files/L92Scf1HLT69sbr8KrCu) | ![](/files/mALAuq7TNky65Oi5YzFz) | ![](/files/oEN1Ai1a9gPxlG2wai37)                                                                    | ![](/files/Xnduxlg1Jbh1VE8QlpOD)                                                                    |
| ![](/files/FcOBybfrjo0uJDRXiivC) | ![](/files/Ru1OahVmbbwrLQxOy2xf) | ![](/files/HmGSLpRjjQTu9dutcycR)                                                                    | ![](/files/xtPbzRUMunuua3SY3P6C)                                                                    |
| ![](/files/CwvHUcM0hQJMMmaeDPsF) | ![](/files/BOn0plbVRzdpI9AtHo6B) | ![](/files/zrtaBoNU42d7ZYjUMnXl)                                                                    | ![](/files/ujBHUlosTJ1w433CYW0K)                                                                    |
| ![](/files/kukyP5Ou0NSsxcWui42e) | ![](/files/EPfrHhAh6jinrYgDjJTv) | ![](/files/tkdFzsQBonswc0OwSLOC)                                                                    | ![](/files/knwNQGDu5CC1wlbTvhET)                                                                    |
| ![](/files/j7JHReBLgk7PcTMHuz53) | ![](/files/Um4KxhqJrY2PGbfuo9st) | ![](/files/Yd6gNBeDyf3WRHosF8ac)                                                                    | ![](/files/HAfEiDawG9T9FNxRvabf)                                                                    |

If you want to give it a try, here's the code to reproduce the examples in the second column above:

#### `beautify.mode=ai.auto`

```bash
curl --request POST \
  --url https://image-api.photoroom.com/v2/edit \
  --header 'x-api-key: YOUR_API_KEY_HERE' \
  --form imageFile=@/path/to/image.png \
  --form beautify.mode=ai.auto \
  --output result-ai-beautifier.png
```

<a href="https://try-api.photoroom.com/?beautify.mode=ai.auto" class="button primary">Try it now!</a>

#### `beautify.mode=ai.food`

```bash
curl --request POST \
  --url https://image-api.photoroom.com/v2/edit \
  --header 'x-api-key: YOUR_API_KEY_HERE' \
  --form imageFile=@/path/to/image.png \
  --form beautify.mode=ai.food \
  --output result-ai-food-beautifier.png
```

<a href="https://try-api.photoroom.com/?beautify.mode=ai.food" class="button primary">Try it now!</a>

#### `beautify.mode=ai.car`

```bash
curl --request POST \
  --url https://image-api.photoroom.com/v2/edit \
  --header 'x-api-key: YOUR_API_KEY_HERE' \
  --form imageFile=@/path/to/image.png \
  --form beautify.mode=ai.car \
  --output result-ai-car-beautifier.png
```

<a href="https://try-api.photoroom.com/?beautify.mode=ai.car" class="button primary">Try it now!</a>

## Which resolutions are supported?

By default, AI Beautifier will produce outputs at a resolution of 1K (`1024x1024`).

Output resolutions of 2K and 4K are available for Enterprise plans:

<div><figure><img src="/files/miq8KUw54r7o1VvyWobW" alt=""><figcaption><p><em>(original image)</em></p></figcaption></figure> <figure><img src="/files/MRTJE1gTcBbNu0nNILVM" alt=""><figcaption><p><em>(default 1K output)</em></p></figcaption></figure> <figure><img src="/files/iqfFj0JfO2AMN4YMWisT" alt=""><figcaption><p><em>(4K output)</em></p></figcaption></figure></div>

<div><figure><img src="/files/GBV53qObwnwrkFOeDaOd" alt=""><figcaption><p><em>(original image)</em></p></figcaption></figure> <figure><img src="/files/XnnSwQk5rrNunP9nQQwY" alt=""><figcaption><p><em>(default 1K output)</em></p></figcaption></figure> <figure><img src="/files/2by3X8yH29Diw99zoLTe" alt=""><figcaption><p><em>(4K output)</em></p></figcaption></figure></div>

<div><figure><img src="/files/iTLKVUzScO3Iw3MEWClr" alt=""><figcaption><p><em>(original image)</em></p></figcaption></figure> <figure><img src="/files/kZLduU9rIOMDUeSg950z" alt=""><figcaption><p><em>(default 1K output)</em></p></figcaption></figure> <figure><img src="/files/OuPhvjijv6DCzbn32Fh4" alt=""><figcaption><p><em>(4K output)</em></p></figcaption></figure></div>

{% hint style="info" %}
Make sure to click on the images to see them in full resolution.
{% endhint %}

If you're interested to use 2K or 4K resolution, please [contact our team to book a demo](https://www.photoroom.com/contact-sales?utm_source=apidocumentation\&utm_medium=enterprisegated).

<a href="https://www.photoroom.com/contact-sales?utm_source=apidocumentation&#x26;utm_medium=enterprisegated" class="button primary">Book a demo</a>

## 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`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.photoroom.com/image-editing-api-plus-plan/ai-beautifier.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
