# Auto enhance image quality

Deep Image web application includes an Auto Enhance tool that improves overall image quality automatically, without any manual settings.

Presets are ordered by quality and processing time (from the highest quality and longest time to the fastest):

* `auto_enhance_pro`
* `auto_enhance_qwen`
* `auto_enhance_klein9b`
* `auto_enhance` (Auto Enhance Normal)

### Presets overview <a href="#presets-overview" id="presets-overview"></a>

Use the preset that best fits your content and priorities (quality, speed, or minimal edits).

<table><thead><tr><th width="216">Preset</th><th>Label in app</th><th>Best for</th><th>Summary</th></tr></thead><tbody><tr><td><code>auto_enhance_pro</code></td><td>Auto Enhance Pro</td><td>Maximum quality</td><td>Advanced enhancement with the most detailed improvements.</td></tr><tr><td><code>auto_enhance_qwen</code></td><td>Auto Enhance Qwen</td><td>Balanced results</td><td>Balances the original input with re-generated elements for a natural look.</td></tr><tr><td><code>auto_enhance_klein9b</code></td><td>Auto Enhance Flux 2 Klein 9B</td><td>Speed</td><td>Fast, all-purpose enhancement optimized for speed and efficiency.</td></tr><tr><td><code>auto_enhance_generative</code></td><td>Auto Enhance Generative</td><td>Speed</td><td>Light adjustments focused on lighting, clarity, and face enhancement.</td></tr><tr><td><code>auto_enhance</code></td><td>Auto Enhance Normal</td><td>Speed</td><td>Light adjustments focused on lighting, clarity, and face enhancement.</td></tr></tbody></table>

### Image size logic <a href="#image-size-logic" id="image-size-logic"></a>

Auto Enhance applies automatic resize logic based on the input image width:

* for images below 1000 pixels - width = 400%
* for images from 1000 to 4096 - width = 4096
* for images above 4096 - no upscale

Height is calculated based on the input image aspect ratio.

```json
{
    "url": "https://s3.eu-central-1.amazonaws.com/deep-image.ai/api-examples/old_photo.jpeg",
    "preset": "auto_enhance_pro"
}
```

Let's see results of each presets processing on such input photos:

<figure><img src="https://2652559519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3i5YcUkcXyIsWHIhRO2d%2Fuploads%2FOglGCvi7nOtTpc3BjFUs%2F3222ba60-4ffb-4095-a5c6-e4e5436bbe84.jpeg?alt=media&#x26;token=6f48e27a-ec8c-46d1-93e8-3acb62270f9c" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2652559519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3i5YcUkcXyIsWHIhRO2d%2Fuploads%2FtYb4P5Bo4fAeOsmvgLmj%2Fcosmetic-product-advertising-vector-12613087.jpg?alt=media&#x26;token=a2e103fd-36b4-43f4-b696-f162469dbbbe" alt=""><figcaption></figcaption></figure>

### `auto_enhance_pro`&#x20;

Processing time is around 30 seconds per image.

<figure><img src="https://2652559519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3i5YcUkcXyIsWHIhRO2d%2Fuploads%2FoBAM69giot5pM9p1xbPm%2Fold_photo_result_auto_enhance_pro.jpg?alt=media&#x26;token=832c6232-6d8f-4e6c-beab-3f2e867906a1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2652559519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3i5YcUkcXyIsWHIhRO2d%2Fuploads%2FdhB3pMbymLbuOt7N7LJS%2Fcosmetic-product-advertising-vector-12613087.jpg?alt=media&#x26;token=a199fc79-52f5-4bdf-917c-11817041af64" alt=""><figcaption></figcaption></figure>

### `auto_enhance_qwen`&#x20;

Processing time is around 30 seconds per image.

<figure><img src="https://2652559519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3i5YcUkcXyIsWHIhRO2d%2Fuploads%2FODNrHHmxg5R8s57JmK1B%2Fold_photo_result_auto_enhance_qwen.jpg?alt=media&#x26;token=c9cff10a-2c87-4c6a-b4e7-b2b51f0b3b67" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2652559519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3i5YcUkcXyIsWHIhRO2d%2Fuploads%2Ffs7wsaEh4AkcQ7Alj8WH%2Fcosmetic-product-advertising-vector-12613087.jpg?alt=media&#x26;token=46735630-c514-4966-84ef-4781b3cb8d46" alt=""><figcaption></figcaption></figure>

### `auto_enhance_klein9b`&#x20;

Processing time is around 15 seconds per image.

<figure><img src="https://2652559519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3i5YcUkcXyIsWHIhRO2d%2Fuploads%2FdfutE6t63yL1AhApdEST%2Fold_photo_result_klein9b.jpg?alt=media&#x26;token=59fb33ad-b0c9-4d9a-8799-0916ba9bc6c4" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2652559519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3i5YcUkcXyIsWHIhRO2d%2Fuploads%2F2JiNWei39hSGheDFqh9f%2Fcosmetic-product-advertising-vector-12613087.jpg?alt=media&#x26;token=423a8b2e-75fa-4de2-a82c-af671112bba3" alt=""><figcaption></figcaption></figure>

### `auto_enhance_generative`&#x20;

Processing time is around 15 seconds per image

<figure><img src="https://2652559519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3i5YcUkcXyIsWHIhRO2d%2Fuploads%2FRhqY4yqOXM5S6L6B6xE1%2F3222ba60-4ffb-4095-a5c6-e4e5436bbe84.jpg?alt=media&#x26;token=91706235-9730-47d0-a577-4649414a0437" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2652559519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3i5YcUkcXyIsWHIhRO2d%2Fuploads%2FUDCtHYVfyHcGCHHYEUGi%2Fcosmetic-product-advertising-vector-12613087.jpg?alt=media&#x26;token=e8759bc7-fbb4-44f3-beab-73a378dacff8" alt=""><figcaption></figcaption></figure>

### `auto_enhance`&#x20;

Processing time is around 3 seconds per image.

<figure><img src="https://2652559519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3i5YcUkcXyIsWHIhRO2d%2Fuploads%2FWbTRF2rROT4I9ZAsODfV%2Fold_photo_result_auto_enhance.jpg?alt=media&#x26;token=489ce458-129b-4f29-bf73-54840ec97265" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2652559519-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3i5YcUkcXyIsWHIhRO2d%2Fuploads%2FYOhQS0fM8gAULHNACDmi%2Fcosmetic-product-advertising-vector-12613087.jpg?alt=media&#x26;token=4225ff55-3d4e-4145-859d-784e08527e23" alt=""><figcaption></figcaption></figure>
