POST
/
upscaling
{
  "image_b64": "<string>",
  "removed_for_safety": true
}

Body

application/json
face_enhance
boolean
default: false

True to enable the face enhancer model variant

init_image_url
string | null

If given, download init_image from this URL.

init_image
string | null

Image to modify.

model
enum<string>

One of UpscalingModel, identifies the upscaling model to use.

Available options:
real-esrgan-x4-plus,
real-esrgan-x4-v3,
real-esrgan-x4-v3-wdn,
real-esrgan-animevideo-v3,
real-esrgan-x4-plus-anime,
real-esrgan-x2-plus
output_image_height
integer | null

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

output_image_width
integer | null

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

output_image_encoding
enum<string>

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

Available options:
jpeg,
png
scale
number | null

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

Response

200 - application/json
image_b64
string | null
required

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

removed_for_safety
boolean
required

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