> 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/relight-creative-1.md).

# Relight Creative 1

Intelligent exposure correction

<table data-card-size="large" data-view="cards"><thead><tr><th align="center"></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 align="center">Click to view</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://compare.topazlabs.com/share/image?src1=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Frelight-creative-v1-1-before.jpg&#x26;src1label=Before&#x26;src2=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Frelight-creative-v1-1-after.jpg&#x26;src2label=After&#x26;zoom=1">https://compare.topazlabs.com/share/image?src1=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Frelight-creative-v1-1-before.jpg&#x26;src1label=Before&#x26;src2=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Frelight-creative-v1-1-after.jpg&#x26;src2label=After&#x26;zoom=1</a></td></tr><tr><td align="center">Click to view</td><td><a href="https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2FxgR8yXPQHgHehuxEMQqu%2Frelight-creative-v1-2_slider.jpg?alt=media&#x26;token=70cc5ddb-c6e6-41d5-aebd-9de8128c463f">https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2FxgR8yXPQHgHehuxEMQqu%2Frelight-creative-v1-2_slider.jpg?alt=media&#x26;token=70cc5ddb-c6e6-41d5-aebd-9de8128c463f</a></td><td><a href="https://compare.topazlabs.com/share/image?src1=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Frelight-creative-v1-2-before.jpg&#x26;src1label=Before&#x26;src2=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Frelight-creative-v1-2-after.jpg&#x26;src2label=After&#x26;zoom=1">https://compare.topazlabs.com/share/image?src1=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Frelight-creative-v1-2-before.jpg&#x26;src1label=Before&#x26;src2=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Frelight-creative-v1-2-after.jpg&#x26;src2label=After&#x26;zoom=1</a></td></tr></tbody></table>

### Model Overview

**Relight Creative 1** reworks the lighting of an image with a chosen style, from a clean HDR look to cinematic, clarity, and vibrant treatments. It goes beyond exposure correction: it reshapes how light falls across the scene while keeping the content intact, with optional dehazing and a brightness control.

It's the creative counterpart to Adjust Lighting 2. Use Adjust Lighting 2 for faithful correction and Relight Creative 1 when you want a look. Because it's a heavier model, it's priced at 1 credit per 4 MP.

### Best Use Cases

* **Stylized looks.** Apply an HDR, cinematic, clarity, or vibrant treatment in one step.
* **Flat or dull scenes.** Add drama and dimension to images that are correctly exposed but lifeless.
* **Hazy landscapes.** Combine dehazing with a relight for clearer, punchier vistas.
* **Marketing and social imagery.** Produce eye-catching, consistent looks across a campaign.
* **Creative exploration.** Try several styles on the same image with `seed` held fixed for repeatability.

### Endpoint

`https://api.topazlabs.com/image/v1/lighting/async`

### Model Parameters

| Parameter | Type      | Required / Default                             | Accepted values                                            | Description                                                      |
| --------- | --------- | ---------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------------- |
| `model`   | `string`  | Required                                       | `"Relight Creative V1"`                                    | —                                                                |
| `dehaze`  | `boolean` | <p>Optional<br>Default: <code>false</code></p> | —                                                          | Removes haze.                                                    |
| `gain`    | `decimal` | <p>Optional<br>Default: <code>0.0</code></p>   | `-1.0` to `1.0`                                            | Brightness. Lower values are darker; higher values are brighter. |
| `seed`    | `integer` | <p>Optional<br>Default: <code>0</code></p>     | —                                                          | Seed for repeatable results.                                     |
| `style`   | `string`  | <p>Optional<br>Default: <code>none</code></p>  | `"none"`, `"hdr"`, `"cinematic"`, `"clarity"`, `"vibrant"` | Relighting style. `none` is the least creative.                  |

For request parameters shared by every image endpoint, see Request Parameters. The full schema is also available in our API Reference page.

### Model Pricing

**Relight Creative 1** costs 1 credit per every 4 MP of generated output. The below table includes a list of common output resolutions with associated credit costs.

| Resolution | Typical Source       | Output MP | Credits |
| ---------- | -------------------- | --------- | ------- |
| 640×480    | VGA                  | 0.31      | 1       |
| 1280×720   | 720p                 | 0.92      | 1       |
| 1920×1080  | 1080p                | 2.07      | 1       |
| 2560×1440  | 1440p                | 3.69      | 1       |
| 3840×2160  | 4K UHD               | 8.29      | 3       |
| 4000×3000  | 12 MP phone          | 12.00     | 3       |
| 5472×3648  | 20 MP camera         | 19.96     | 5       |
| 6000×4000  | 24 MP camera         | 24.00     | 6       |
| 7680×4320  | 8K UHD               | 33.18     | 9       |
| 7952×5304  | 42 MP camera         | 42.18     | 11      |
| 8192×5464  | 45 MP camera         | 44.76     | 12      |
| 9504×6336  | 61 MP camera         | 60.22     | 16      |
| 11648×8736 | 100 MP medium format | 101.76    | 26      |

| Output MP | 1 | 4 | 8 | 16 | 24 | 32 | 40 |
| --------- | - | - | - | -- | -- | -- | -- |
| Credits   | 1 | 1 | 2 | 4  | 6  | 8  | 10 |

{% hint style="info" %}
For more accurate credit cost estimates, we recommend using our [Credit Calculator](https://developer.topazlabs.com/credit-calculator).
{% endhint %}

### Example Request

{% 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=Relight Creative V1" \
  -F "style=cinematic" \
  -F "gain=0.2"
```

{% 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", "Relight Creative V1");
form.append("style", "cinematic");
form.append("gain", "0.2");

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": "Relight Creative V1",
            "style": "cinematic",
            "gain": "0.2"
        },
    )

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

{% endtab %}
{% endtabs %}

### Limitations

This model accepts up to 256 MP input and output.

### 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/relight-creative-1.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.
