> For the complete documentation index, see [llms.txt](https://developer.topazlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.topazlabs.com/image-models/color-and-lighting.md).

# Color, Lighting, & HDR

Fix exposure, contrast, and color balance for well-lit images with natural, true-to-life color.

Specialized color and lighting models that fix exposure and color balance, colorize black-and-white photos, or restyle an image's lighting.

### Models

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Adjust Lighting 2</strong></td><td>Automatic exposure, contrast, and tonal correction.</td><td><a href="https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2Fe73QrKLc27VJq9C82Q2q%2FAdjust_Lighting_1_slider.jpg?alt=media&#x26;token=9cb04578-e943-43c1-9e9f-596b8454ac90">https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2Fe73QrKLc27VJq9C82Q2q%2FAdjust_Lighting_1_slider.jpg?alt=media&#x26;token=9cb04578-e943-43c1-9e9f-596b8454ac90</a></td><td><a href="https://developer.topazlabs.com/image-models/color-and-lighting/adjust-lighting-2.md">Adjust Lighting 2</a></td></tr><tr><td><strong>Balance Color</strong></td><td>Automatic color cast and white balance correction.</td><td><a href="https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2FrHY3SpXOgMrtEj33d4ve%2FBalance_Color_slider.jpg?alt=media&#x26;token=6cc2aace-ed80-4dcb-82e4-f527b460237e">https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2FrHY3SpXOgMrtEj33d4ve%2FBalance_Color_slider.jpg?alt=media&#x26;token=6cc2aace-ed80-4dcb-82e4-f527b460237e</a></td><td><a href="https://developer.topazlabs.com/image-models/color-and-lighting/balance-color.md">Balance Color</a></td></tr><tr><td><strong>Image Colorization</strong></td><td>Natural color for black-and-white and faded images.</td><td><a href="https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2FyCDL9IqpeDeAPyDuwsib%2FImage_Colorization_slider.jpg?alt=media&#x26;token=ff0abb47-24e6-4e5f-80bd-f389d0ee2184">https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2FyCDL9IqpeDeAPyDuwsib%2FImage_Colorization_slider.jpg?alt=media&#x26;token=ff0abb47-24e6-4e5f-80bd-f389d0ee2184</a></td><td><a href="https://developer.topazlabs.com/image-models/color-and-lighting/image-colorization.md">Image Colorization</a></td></tr><tr><td><strong>Relight Creative 1</strong></td><td>Creative relighting with HDR, cinematic, clarity, and vibrant styles.</td><td><a href="https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2FoKtamSEHdhyHOvDWMuDN%2Frelight-creative-v1-1_slider.jpg?alt=media&#x26;token=0a84f010-574e-4517-ad56-b8369cb6e00e">https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2FoKtamSEHdhyHOvDWMuDN%2Frelight-creative-v1-1_slider.jpg?alt=media&#x26;token=0a84f010-574e-4517-ad56-b8369cb6e00e</a></td><td><a href="https://developer.topazlabs.com/image-models/color-and-lighting/relight-creative-1.md">Relight Creative 1</a></td></tr><tr><td><strong>Image HDR</strong></td><td>SDR-to-HDR conversion for expanded dynamic range and lifelike brightness.</td><td><a href="https://938351258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fik4tc42rkpL9SRR51NLK%2Fuploads%2FGobJ5aN9Kh8hLBwrskTz%2FImageHDR_pexels-pixabay-60628_slider.jpg?alt=media&amp;token=f103937c-89f9-49c3-8251-b7532655c84d">ImageHDR_pexels-pixabay-60628_slider.jpg</a></td><td><a href="https://developer.topazlabs.com/image-models/color-and-lighting/image-hdr.md">Image HDR</a></td></tr></tbody></table>

{% hint style="warning" %}
Adjust Lighting 1 is deprecated and will be retired no sooner than December 9, 2026. Adjust Lighting 2 replaces it. See [Model Deprecations](https://developer.topazlabs.com/resources/model-deprecations.md) for replacements and migration steps.
{% endhint %}

### Best Use Cases

* **Adjust Lighting 2.** Fix underexposed, backlit, or flat images with automatic exposure, shadow, and highlight correction that keeps a natural look.
* **Balance Color.** Remove color casts from mixed or artificial lighting and normalize white balance across product shoots, events, and catalogs.
* **Image Colorization.** Bring historical photos, archival scans, and faded prints to life with natural color.
* **Relight Creative 1.** Give correctly exposed but lifeless images a stylized HDR, cinematic, clarity, or vibrant look, with optional dehazing.
* **Image HDR.** Converting standard dynamic range (SDR) video to HDR for expanded dynamic range and lifelike brightness on HDR-capable displays.

### Endpoints

| Endpoint                                            | Models                                                                              |
| --------------------------------------------------- | ----------------------------------------------------------------------------------- |
| `https://api.topazlabs.com/image/v1/lighting/async` | Adjust Lighting 2, Balance Color, Image Colorization, Relight Creative 1, Image HDR |

Requests are `multipart/form-data`. Pass the image as the `image` field (or reference a previous upload with `source_id` or `source_url`), set `model` to the value shown on the model's page, and add any model settings as extra form fields. The response returns a `process_id` and `eta`; poll `GET /status/{process_id}` and download the result from `GET /download/{process_id}`.

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X POST "https://api.topazlabs.com/image/v1/lighting/async" \
  -H "X-API-Key: $TOPAZ_API_KEY" \
  -F "image=@photo.jpg" \
  -F "model=Adjust V2" \
  -F "lighting=1.1" \
  -F "output_format=png"
```

{% endtab %}

{% tab title="JavaScript" %}

```javascript
import fs from 'fs';
import FormData from 'form-data';

const form = new FormData();
form.append("image", fs.createReadStream("photo.jpg"));
form.append("model", "Adjust V2");
form.append("lighting", "1.1");
form.append("output_format", "png");

const response = await fetch("https://api.topazlabs.com/image/v1/lighting/async", {
  method: 'POST',
  headers: {
    'X-API-Key': process.env.TOPAZ_API_KEY,
    ...form.getHeaders(),
  },
  body: form,
});

if (!response.ok) {
  throw new Error(`Request failed: ${response.status} ${await response.text()}`);
}

console.log(await response.json());
```

{% endtab %}

{% tab title="Python" %}

```python
import os
import requests

with open("photo.jpg", "rb") as image:
    response = requests.post(
        "https://api.topazlabs.com/image/v1/lighting/async",
        headers={"X-API-Key": os.environ["TOPAZ_API_KEY"]},
        files={"image": image},
        data={
            "model": "Adjust V2",
            "lighting": "1.1",
            "output_format": "png",
        },
    )

response.raise_for_status()
print(response.json())
```

{% endtab %}
{% endtabs %}

### Parameters

Request parameters (`image`, `source_id`, `source_url`, `model`, `output_format`, `webhook_url`) are the same for every image endpoint and are listed on the Request Parameters page. Model settings are listed on each model's page.

### Limitations

These models accept up to 256 MP input and output and don't change resolution. Relight Creative 1 is priced at 4 MP per credit; the all other models under this intent are 24 MP per credit.

### Helpful Resources

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><i class="fa-play">:play:</i></td><td><h4>Image Quickstart</h4></td><td>Quickly get started with our Image API.</td><td></td></tr><tr><td><i class="fa-file-brackets-curly">:file-brackets-curly:</i></td><td><h4>API Reference</h4></td><td>View our API reference to view the entire schema.</td><td><a href="https://playground.topazlabs.com/">https://playground.topazlabs.com/</a></td></tr><tr><td><i class="fa-square-root-variable">:square-root-variable:</i></td><td><h4>Model Pricing</h4></td><td>Learn how we price our models.</td><td></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.topazlabs.com/image-models/color-and-lighting.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
