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

Upscaling & Enhancement

Precision, Generative, and Creative Upscaling for Images

Best Models

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 — 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 — 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 — 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}.

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"
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());

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

Last updated

Was this helpful?