stable-image/upscale
POST
/v2alpha/generation/stable-image/upscaleTakes images between 64x64 and 1 megapixel and upscales them all the way to 4K resolution. Put more
generally, it can upscale images ~20-40x times while preserving, and often enhancing, quality.
How to use
- Invoke this endpoint with the required parameters to start a generation
- Use that
id
in the response to poll for results at the upscale/result/{id} endpoint- Rate-limiting or other errors may occur if you poll more than once every 10 seconds
Request
The image you wish to upscale.
Supported Formats:
- jpeg
- png
- webp
Supported Sizes:
- Minimum: 4,096 pixels (e.g. 64x64)
- Maximum: 1,048,576 pixels (e.g. 1024x1024)
A blurb of text describing what you wish to see in the output image.
To control the weight of a given word use the format (word:weight)
,
where word
is the word you'd like to control the weight of and weight
is a value between 0 and 1. For example: The sky was a crisp (blue:0.3) and (green:0.8)
would convey a sky that was blue and green, but more green than blue.
A blurb of text describing what you do not wish to see in the output image.
This is an advanced feature.
Dictates the format of the output image. This does not affect the content-type
of this endpoint's response, but
rather the content-type
of the response from the /result/{id} endpoint.
A specific value that is used to guide the 'randomness' of the generation. (Omit this parameter or pass 0
to use a random seed.)
Indicates how creative the model should be when upscaling an image.
Higher values will result in more details being added to the image during upscaling.