> For the complete documentation index, see [llms.txt](https://documentation.deep-image.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.deep-image.ai/image-processing/enhance-lighting-and-colors/advanced.md).

# Advanced

Generative tone correction with Flux Relight.

## Advanced

Advanced uses Flux Relight for generative lighting and color correction. It transfers changes to the original image while retaining its resolution.

### Request

Enable it with `generative_tone_correction`. Configure settings in `generative_tone_correction_parameters`.

```json
{
  "url": "image_url",
  "enhancements": ["generative_tone_correction"],
  "generative_tone_correction_parameters": {
    "exposure_strength": 0.8,
    "contrast_strength": 0.8,
    "white_balance_strength": 0.9,
    "saturation_strength": 0.8,
    "light_transfer_strength": 0.4
  }
}
```

### Controls and API fields

<table><thead><tr><th width="138">Web control</th><th>API field</th><th width="98" align="right">Web default</th><th width="109" align="right">API default</th><th>Description</th></tr></thead><tbody><tr><td>Light transfer</td><td><code>light_transfer_strength</code></td><td align="right">40%</td><td align="right">0.4</td><td>Transfers broad illumination and the generated reference's global tone curve. It avoids copying texture or geometry. Values from 20%–40% (<code>0.2</code>–<code>0.4</code>) are usually safer.</td></tr><tr><td>Exposure</td><td><code>exposure_strength</code></td><td align="right">80%</td><td align="right">0.8</td><td>Controls transfer of the generated reference's overall brightness. It is a correction strength, not an exposure value in stops.</td></tr><tr><td>Contrast</td><td><code>contrast_strength</code></td><td align="right">80%</td><td align="right">0.8</td><td>Controls movement toward the reference's tonal range and contrast. With Light transfer enabled, it uses an edge-aware tone field to reduce texture amplification.</td></tr><tr><td>White balance</td><td><code>white_balance_strength</code></td><td align="right">90%</td><td align="right">0.9</td><td>Controls estimated color-temperature and tint correction. It does not set Kelvin or a fixed tint value.</td></tr><tr><td>Saturation</td><td><code>saturation_strength</code></td><td align="right">80%</td><td align="right">0.8</td><td>Controls color-intensity transfer toward the generated reference. A value of <code>0.0</code> does not convert the image to grayscale.</td></tr></tbody></table>

### Choose corrections

Set each strength between `0.0` and `1.0`. A value of `0.0` disables that component only.

* **Light only:** set `white_balance_strength` and `saturation_strength` to `0.0`.
* **Colors only:** set `light_transfer_strength`, `exposure_strength`, and `contrast_strength` to `0.0`.
* **Light and colors:** configure all five strengths.

The web percentage maps to API strength: `web percentage / 100`.

### Auto Enhance preset

```json
{
  "url": "image_url",
  "preset": "auto_enhance_tone_correction"
}
```

This preset combines denoise, face enhancement, and Natural Balance correction. The legacy `auto_enhance` preset remains available.
