Operation AI upscale
The ai_upscale operation allows you to increase the resolution of an image by using artificial intelligence (AI) techniques. This can be useful if you have a low-resolution image that you want to improve the quality of or if you want to increase the size of an image while preserving its details.
AI-based image upscaling algorithms work by analyzing the content of the input image and using machine learning models to generate additional pixels that are added to the original image. This allows them to produce high-quality upscaled images that are often indistinguishable from the original image at higher resolutions.
Available Options
Option Name | Type | Possible Values | Description |
---|---|---|---|
model | string | generic | Specifies the optimized AI model to use for image upscaling. Different models may be available depending on the picture's subject, input image size and quality. |
upscale_factor | string | 2x, 4x | Specifies the amount by which you want to increase the resolution of the input image. |
width | integer | Range: 1-65000 | Specifies the width of the thumbnail in pixels. You can use either option alone or together with height to specify the thumbnail's aspect ratio. |
height | integer | Range: 1-65000 | Specifies the height of the thumbnail in pixels. You can use either option alone or together with width to specify the thumbnail's aspect ratio. |
allow_multiple_outputs | boolean | true, false | If the comparison produces more than one output file, by default all of them are compressed in just one file. Set this option to true if you want a download link for each file. |
Example
{ "conversion": [{ "category": "operation", "target": "ai_upscale", "options": { "model": "generic", "upscale_factor": "2x" } }] }