Upscale

Note that because of the large size of images in the response, generative upscale returns images as a list of URLs instead of base64. All response images are base64 PNG. The total pixel count of the input image should not exceed 1,048,576.

Body Params
string

The text prompt for the image. This has a minimal effect on the output. If the init_image was generated with a prompt, it's a good idea to use the same prompt field here. Note: this is not used for subtle upscaler

int32

The width of the initial image. Will be inferred if not supplied. Maximum 1536

int32

The height of the initial image. Will be inferred if not supplied. Maximum 1536

string
required

The base64 representation of the image to be upscaled. We support PIL image formats: https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html

string
enum
Defaults to generative

Specifies which upscaler to use. Generative upscaler is more creative, while subtle upscaler is faster but doesn't add much new detail.

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json