Upscaling

POST

Upscale the given image.

Request

This endpoint expects an object.
face_enhancebooleanOptional

True to enable the face enhancer model variant.

init_imagestringOptional

Input image to modify.

init_image_urlstringOptional

If given, download init_image from this URL.

modelenumOptional

One of UpscalingModel, identifies the upscaling model to use.

output_image_encoding"jpeg" or "png"Optional
Allowed values: jpegpng

Define which encoding process should be applied before returning the modified image.

output_image_heightintegerOptional

Height in pixels of the output image. If given, neither scale nor output_image_width should be specified.

output_image_widthintegerOptional

Width in pixels of the output image. If given, neither scale nor output_image_height should be specified.

scaledoubleOptional

Upscale the init image dimensions by this multiplier. If given, neither output_image_height nor output_image_width should be given.

Response

This endpoint returns an object.
removed_for_safetyboolean

True if the image was removed for safety, False otherwise.

image_b64stringOptional

The modified image or None if it was removed for safety.