UpscaleConfig

Fields
enhanceInputImage boolean

Whether to add an image enhancing step before upscaling. It is expected to suppress the noise and JPEG compression artifact from the input image. Default value: false.

enableFasterUpscaling boolean

NOTE: For experimental use, not production-ready. Whether to speed up upscaling. This option can't be used with high QPS since it lowers the availability of the upscaling API.

upscaleFactor string

The factor to which the image will be upscaled. If not specified, the upscale factor will be determined from the longer side of the input image and sampleImageSize. enum: - x2 - x4

imagePreservationFactor number

With a higher image preservation factor, the original image pixels are more respected. The output image is more similar to input image. With a lower image preservation factor, the output image will have be more different from the input image, but maybe with finer details and fewer noises. Only works with: * imagegeneration@003 Valid range: [0, 1.0] Default value: 0.5

JSON representation
{
  "enhanceInputImage": boolean,
  "enableFasterUpscaling": boolean,
  "upscaleFactor": string,
  "imagePreservationFactor": number
}