stable-image/upscale
https://api.stability.ai
https://api.stability.ai
https://api.stability.ai
https://api.stability.ai
POST
/v2alpha/generation/stable-image/upscale
v2alpha/generation
generally, it can upscale images ~20-40x times while preserving, and often enhancing, quality.
How to use
id
in the response to poll for results at the upscale/result/{id} endpointRequest Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.stability.ai/v2alpha/generation/stable-image/upscale' \
--header 'authorization;' \
--form 'image=@"./some/image.png"' \
--form 'prompt=""'
Response Response Example
200 - Example 1
{
"id": "a6dc6c6e20acda010fe14d71f180658f2896ed9b4ec25aa99a6ff06c796987c4"
}
Request
Header Params
authorization
string
required
content-type
string
required
Body Params multipart/form-data
image
file
required
Example:
./some/image.png
prompt
string
required
(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.
negative_prompt
string
optional
This is an advanced feature.
output_format
string
optional
content-type
of this endpoint's response, butrather the
content-type
of the response from the /result/{id} endpoint.Example:
png
seed
number
optional
0
to use a random seed.)creativity
number
optional
Higher values will result in more details being added to the image during upscaling.
Example:
0.3