> 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/upscaling-and-enhancement.md).

# Upscaling & Enhancement

Precision, Generative, and Creative Upscaling for Images

### Best Models

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td><p><a class="button secondary medium">Precision</a></p><p><strong>Standard 2</strong></p></td><td>Faithful, general-purpose upscaling for most images.</td><td><a href="https://developer.topazlabs.com/image-models/upscaling-and-enhancement/precision/standard-2.md">Standard 2</a></td><td><a href="https://938351258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fik4tc42rkpL9SRR51NLK%2Fuploads%2F0qy01jhROd0Q37BvOU8N%2FStandard%202%20Slider.jpg?alt=media&amp;token=855d13d0-2c80-46e9-b5c9-f41c0d475c87">Standard 2 Slider.jpg</a></td></tr><tr><td><p><a class="button secondary medium">Generative</a></p><p><strong>Wonder 4</strong></p></td><td>Our most advanced generative upscaler. Fixes noise, blur, and compression in one pass.</td><td><a href="https://developer.topazlabs.com/image-models/upscaling-and-enhancement/generative/wonder-4.md">Wonder 4</a></td><td><a href="https://938351258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fik4tc42rkpL9SRR51NLK%2Fuploads%2Fu1ynI20dyDUh6nH5LQcP%2FWonder4_ex5-fur_slider.jpg?alt=media&amp;token=98581f32-df16-45b1-a010-e6b6eae122d6">Wonder4_ex5-fur_slider.jpg</a></td></tr><tr><td><p><a class="button secondary medium">Creative</a></p><p><strong>Bloom 2</strong></p></td><td>Our most advanced creative upscaler for GenAI images.</td><td><a href="https://developer.topazlabs.com/image-models/upscaling-and-enhancement/creative/bloom-2.md">Bloom 2</a></td><td><a href="https://938351258-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fik4tc42rkpL9SRR51NLK%2Fuploads%2FxLiZNGWd3alt7DQwpy78%2FBloom2_Generated_Image_December_16_2025_-_10_17AM_slider.jpg?alt=media&amp;token=4f699d32-bb2c-46a2-a884-84907201833c">Bloom2_Generated_Image_December_16_2025_-_10_17AM_slider.jpg</a></td></tr></tbody></table>

### Upscaling Tiers

These are our three tiers of upscaling, ordered from most precise to most generated detail. Here's more information on how to choose the best tier for your needs:

* [**Precision Upscaling**](https://developer.topazlabs.com/image-models/upscaling-and-enhancement/precision.md) **—** Faithful to the source. Upscales and cleans without adding detail; best for print, graphics, and text. **Standard 2** is our recommended general-purpose model for this tier.
* [**Generative Upscaling**](https://developer.topazlabs.com/image-models/upscaling-and-enhancement/generative.md) **—** Recovers natural detail and fixes noise, blur, and compression in one pass; best for most photos. **Wonder 4** is our recommended general-purpose model for this tier.
* [**Creative Upscaling**](https://developer.topazlabs.com/image-models/upscaling-and-enhancement/creative.md) **—** Reimagines the image with bold new detail and optional prompts; best for GenAI and stylized images. **Bloom 2** is our recommended general-purpose model for this tier.

### Endpoints

| Endpoint                                               | Models                                                                                                |
| ------------------------------------------------------ | ----------------------------------------------------------------------------------------------------- |
| `https://api.topazlabs.com/image/v1/enhance/async`     | Standard 2, High Fidelity 3, Low Resolution 2, Art & CGI, Text & Shapes                               |
| `https://api.topazlabs.com/image/v1/enhance-gen/async` | Wonder 4, Recover 3, Redefine, Standard Max, Detail Faces, Bloom 2, Bloom 1 Realism, Bloom 1 Creative |
| `https://api.topazlabs.com/image/v1/restore-gen/async` | Recover Faces, Face Recovery 3                                                                        |
| `https://api.topazlabs.com/image/v1/tool/async`        | Transparent Image Upscale (PNG in, PNG out)                                                           |

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 set the output size with `output_width` and/or `output_height`. 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/enhance-gen/async" \
  -H "X-API-Key: $TOPAZ_API_KEY" \
  -F "image=@photo.jpg" \
  -F "model=Wonder 3.5" \
  -F "output_width=3840" \
  -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", "Wonder 3.5");
form.append("output_width", "3840");
form.append("output_format", "png");

const response = await fetch("https://api.topazlabs.com/image/v1/enhance-gen/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/enhance-gen/async",
        headers={"X-API-Key": os.environ["TOPAZ_API_KEY"]},
        files={"image": image},
        data={
            "model": "Wonder 3.5",
            "output_width": "3840",
            "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. `/enhance/async`, `/enhance-gen/async`, and `/tool/async` also accept `output_width`, `output_height`, and `crop_to_fill` to set the output size. Model settings are listed on each model's page.

### Limitations

Most models accept up to 256 MP input and output, with each output side up to 32,000 pixels. Recover 3 and Standard Max accept up to 24 MP input. Transparent Image Upscale accepts and returns PNG only.

### 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><a href="https://developer.topazlabs.com/getting-started/image-quickstart.md">Image Quickstart</a></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://developer.topazlabs.com/reference/">https://developer.topazlabs.com/reference/</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><a href="https://developer.topazlabs.com/getting-started/model-pricing.md">Model Pricing</a></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/upscaling-and-enhancement.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.
