Upscale an image with Topaz Text Refine, by asset id or by uploaded bytes
Authentication
API key for access control. Use in the header with the name “Api-Key”
Request
A request to upscale one image with Topaz Text Refine. Use multipart/form-data to upload image bytes directly, or application/json (or multipart with image_asset_identifier) to reference an existing asset instead.
The source image to upscale (max size 50MB), as raw bytes; only common image formats such as JPEG, PNG, and WEBP are supported. Multipart requests only; ignored if image_asset_identifier is also supplied. The bytes are used for this request only and are not stored as an asset.
How much to enlarge the source image: 2x, 4x, or 8x its original width and height. Rejected when the output would exceed 8192px on either side.
When false (the default), the request blocks until the upscaled image is ready and returns it in data. When true, the request returns as soon as it is accepted; poll for completion and results with GET /v1/generations/{generation_id} using the returned generation_id.
Response
The upscaled image (synchronous requests), or an acknowledgement to poll with GET /v1/generations/{generation_id} (async requests).
URL-safe base64 ID of the accepted generation. Accepted by the
GET /v1/generations/{generation_id} polling endpoint.
The upscaled image. Present only for synchronous requests (async omitted or false).