Upscale with Universal Upscaler
Follow this recipe to create high resolution upscale images using Universal Upscaler.
π
Use Universal Upscaler with Generated Images
Open Recipe
π
Use Universal Upscaler with Uploaded Images
Open Recipe
Upscaling using Universal Upscaler
The guide will recreate the following functionality in the Web UI via API.
Upscaler Styles available
Style | Value |
---|---|
General | GENERAL |
2D Art & Illustration | 2D ART & ILLUSTRATION |
Cinematic | CINEMATIC |
CG Art & Game Assets | CG ART & GAME ASSETS |
Tip
- The parameter
creativityStrength
refers to how 'creative' the AI will be on the original image. The higher it is, the more details will be applied.- The
upscaleMultiplier
must be between 1 and 2. The bigger the value, the higher the resolution.- The maximum upscaled image size is 20MP.
Sample Request
curl --request GET \
--url https://cloud.leonardo.ai/api/rest/v1/generations/<YOUR_GENERATION_ID> \
--header 'accept: application/json' \
--header 'authorization: Bearer <YOUR_API_KEY>'
{
"upscalerStyle": "CINEMATIC",
"creativityStrength": 8,
"upscaleMultiplier": 2,
"generatedImageId": "<YOUR_GENERATED_IMAGE_ID>",
}
Ensure that you run the Get Variation ID endpoint to retrieve the image URL after this step
Cost
The cost is based on the output megapixel size.
Megapixels | Credits |
---|---|
1-5 | 60 |
6 | 80 |
7 | 100 |
8 | 120 |
9 | 140 |
10 | 160 |
11 | 180 |
12 | 200 |
13 | 220 |
14 | 240 |
15 | 260 |
16 | 280 |
17 | 300 |
18 | 320 |
19 | 340 |
20 | 360 |
Updated 27 days ago