For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

{
  "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

Web control
API field
Web default
API default
Description

Light transfer

light_transfer_strength

40%

0.4

Transfers broad illumination and the generated reference's global tone curve. It avoids copying texture or geometry. Values from 20%–40% (0.20.4) are usually safer.

Exposure

exposure_strength

80%

0.8

Controls transfer of the generated reference's overall brightness. It is a correction strength, not an exposure value in stops.

Contrast

contrast_strength

80%

0.8

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.

White balance

white_balance_strength

90%

0.9

Controls estimated color-temperature and tint correction. It does not set Kelvin or a fixed tint value.

Saturation

saturation_strength

80%

0.8

Controls color-intensity transfer toward the generated reference. A value of 0.0 does not convert the image to grayscale.

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

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

Last updated