Below is our restoration model for enhancing older and low-quality photos.The maximum supported output resolution is 256 megapixels.Official documentation reference: https://developer.topazlabs.com/api-reference/image-api/restorePricing: 0.15PTC/credit. The exact credit consumption will be returned in the Response.
Image processing typically consumes 1 credit; a few models may require 3-6 credits.
Request
Header Params
Body Params application/json
Example
{"image":"Image URL to be processed","output_format":"Output image format, e.g., jpeg","model":"Model name to use for processing, e.g., Dust-Scratch"}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.302.ai/topazlabs/image/v1/restore-gen/async' \
--header'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header'Content-Type: application/json' \
--data-raw'{
"image": "Image URL to be processed",
"output_format": "Output image format, e.g., jpeg",
"model": "Model name to use for processing, e.g., Dust-Scratch"
}'