Upscale Image
upscale_imageUse this to upscale an image to a higher resolution. Default model p-image-upscale (Pruna AI) returns results in seconds and is priced by the target resolution: 4 MP = 10, 8 MP = 15, 16 MP = 30, 32 MP = 60 credits. Alternative clarity-upscaler does creative detail enhancement (steer with prompt/creativity) at a flat 30 credits and takes ~60 seconds. Pass the image as a URL (a generated image's URL, or upload_media for local files), a data URI, or base64. Charged on success only. The tool waits for the result and returns the upscaled image's URL — share it with the user. Unlike generations, the upscaled image is also saved to the user's BudgetPixel library.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | The image to upscale: an http(s) URL (a generated image's URL, or one from upload_media for local files), a data URI, or raw base64. Max ~20MB. | |
| model | No | Upscale model: p-image-upscale (default — Pruna AI, results in seconds, priced by target resolution 4/8/16/32 MP = 10/15/30/60 credits) or clarity-upscaler (creative detail enhancement, flat 30 credits, ~60s). | |
| prompt | No | clarity-upscaler only: optional guiding prompt describing the image content. | |
| target | No | p-image-upscale only: target output resolution in megapixels (sets the price: 4=10, 8=15, 16=30, 32=60 credits; default 4). | |
| creativity | No | clarity-upscaler only: how much new detail the model may invent (0.3-0.9, default 0.35). | |
| enhance_details | No | p-image-upscale only: enhance textures and fine detail (may increase contrast). | |
| enhance_realism | No | p-image-upscale only: improve realism — recommended for AI-generated images. |