Generative Upscaling
Generative Upscaling for Images
Mixed, light-to-moderate problems. Some noise, some softness, some compression, fixed in a single pass that also upscales.
One request instead of a pipeline. Replace a chained Denoise → Sharpen → Upscale workflow with one Wonder call for most real-world photos.
Old and low-quality photos. Restore natural, non-synthetic detail in sources that conventional upscaling can't improve.
Severe single problems. Step to the dedicated model when one issue dominates: Denoise Max for heavy noise, Super Focus 3 for heavy blur, Dust & Scratch 2 for physical damage, Face Recovery 3 for faces, Recover 3 for almost-no-detail sources. Run it first, then Wonder.
Endpoints
https://api.topazlabs.com/image/v1/enhance-gen/async
Wonder 4, Recover 3, Redefine, Standard Max
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 4" \
-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 4");
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, output_width, output_height, crop_to_fill) are the same for every generative upscaling model and are listed on the Request Parameters page. Model settings are listed on each model's page.
Limitations
Wonder 4 and Redefine 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.
Helpful Resources
Last updated
Was this helpful?



