# 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="/files/GgErwzLsdNSUu9OVe7bu" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/LBIEIxK40JFTV3PjDkxB" alt=""><figcaption></figcaption></figure>

### `auto_enhance_pro`&#x20;

Processing time is around 30 seconds per image.

<figure><img src="/files/3KsQGZmdo0zgLFCH83IR" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/puffRBDrz588VlHIinLY" alt=""><figcaption></figcaption></figure>

### `auto_enhance_qwen`&#x20;

Processing time is around 30 seconds per image.

<figure><img src="/files/rRWgnCBJ9iwZXXN0OpWt" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/IkePNLHWBpkWflhQ0Dgd" alt=""><figcaption></figcaption></figure>

### `auto_enhance_klein9b`&#x20;

Processing time is around 15 seconds per image.

<figure><img src="/files/uYIFkk8TgJbdoMhpnd95" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/t8x4rOQt8PCtOqfPzcIT" alt=""><figcaption></figcaption></figure>

### `auto_enhance_generative`&#x20;

Processing time is around 15 seconds per image

<figure><img src="/files/vbIT490lO9iFZ8InPXYb" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/wX1l5Qe09H2PqTaLhY3r" alt=""><figcaption></figcaption></figure>

### `auto_enhance`&#x20;

Processing time is around 3 seconds per image.

<figure><img src="/files/J7XxsqZm2kIJ41wtghWk" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/YN06aOnaLJqXS9bGppBq" alt=""><figcaption></figcaption></figure>


---

# 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://documentation.deep-image.ai/common-usecases/auto-enhance-image-quality.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.
