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

Image

Find the request-level parameters for all image endpoints

All image processing endpoints are POST requests to https://api.topazlabs.com/image/v1/... with a multipart/form-data body. Every endpoint accepts the common parameters. Three endpoints also accept output size parameters.

Endpoint
Common Parameters
Output Size Parameters
Output Formats

/enhance/async

✓

✓

jpeg, png, tiff

/enhance-gen/async

✓

✓

jpeg, png, tiff

/sharpen/async

✓

—

jpeg, png, tiff

/sharpen-gen/async

✓

—

jpeg, png, tiff

/denoise/async

✓

—

jpeg, png, tiff

/denoise-gen/async

✓

—

jpeg, png, tiff

/restore-gen/async

✓

—

jpeg, png, tiff

/lighting/async

✓

—

jpeg, png, tiff

/matting/async

✓

—

png only

/tool/async

✓

✓

png only (png input only)

Common Parameters

Accepted by every image endpoint. Provide the source image with exactly one of image, source_id, or source_url; send only one per request.

Parameter
Type
Required / Default
Accepted values
Description

image

file

Optional

jpeg, jpg, png, tiff, tif

The image file to process. Required unless you send source_id or source_url.

source_id

string

Optional

—

ID of an image you've already uploaded, returned as source_id by a previous request. Reuse it to run another model on the same image without uploading it again.

source_url

string

Optional

—

Publicly reachable URL of the source image.

model

string

Optional Default: endpoint default

—

The model to run. Each endpoint has a default model, used when model is omitted. Accepted values for each endpoint are listed on the family pages, and each model page shows its exact model value.

output_format

string

Optional Default: jpeg

jpeg, jpg, png, tiff, tif

Format of the output image. /matting/async and /tool/async always return png.

webhook_url

string

Optional

—

URL we POST a JSON notification to whenever the job's status changes or completes.

Output Size Parameters

Accepted by /enhance/async, /enhance-gen/async, and /tool/async. If you set only one dimension, the other scales to keep the aspect ratio. If you set neither, the model's default scale is used.

Parameter
Type
Required / Default
Accepted values
Description

output_width

integer

Optional

1 to 32000

Output width in pixels.

output_height

integer

Optional

1 to 32000

Output height in pixels.

crop_to_fill

boolean

Optional Default: false

—

When both dimensions are set and their aspect ratio differs from the source, crop the output to fill them instead of letterboxing.

Model Parameters

Model-specific settings are sent as additional form fields in the same request, in camelCase, for example -F "sharpenStrength=0.5". They're listed on each model's page. Any setting you don't send uses the model's default.

Example

The response returns process_id, source_id, and eta (also sent as the X-Process-ID, X-Source-ID, and X-ETA headers). Poll GET /status/{process_id} and download the result from GET /download/{process_id}.

Last updated

Was this helpful?