Stability.Ai
  1. generation
Stability.Ai
  • Getting Started
  • v1
    • user
      • account
      • balance
    • engines
      • list
    • generation
      • text-to-image
      • image-to-image
      • image-to-image/upscale
      • image-to-image/masking
  • v2alpha
    • generation
      • image-to-video
        POST
      • image-to-video/result
        GET
      • stable-image/upscale
        POST
      • stable-image/upscale/result
        GET
      • stable-image/inpaint
        POST
  1. generation

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
Takes 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 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

Body Params multipart/form-data

Responses

🟢200Upscaling was successful!
application/json
Body

🟠400Something about your request is invalid, see the `errors` field for details.
🟠403Your request was flagged by our content moderation system.
🔴500An internal error occurred. If the problem persists [contact support](https://platform.stability.ai/support).
Modified at 2024-03-11 07:12:09
Previous
image-to-video/result
Next
stable-image/upscale/result
Built with