Upscale an image
upscale_imageUpscale an image. Pass a public URL, a URL from create_upload, or (small images only, under about 2.25 MB) a base64 data URI. model auto looks at the image and picks the model, settings and size itself (the faithful pick of recommend_upscale; set intent to detail for the add-detail pick). Otherwise choose one:
flux: Upscale an image with Flux. 1 credit per output megapixel. Required: imageUrl, inputImageType, upscaleFactor, globalCreativity, detail.
gan: Upscale an image with GAN. 0.25 credits per output megapixel. Required: imageUrl, inputImageType, upscaleFactor.
stable-diffusion: Upscale an image with Stable Diffusion. 1 credit per output megapixel. Required: imageUrl, inputImageType, upscaleFactor, globalCreativity, resemblance, detail.
seed-vr-2: Upscale an image with Seed VR 2 Small. 0.25 credits per output megapixel. Required: imageUrl, upscaleFactor.
seed-vr-2-large: Upscale an image with Seed VR 2 Large. 0.5 credits per output megapixel. Required: imageUrl, upscaleFactor.
p-image-upscale: Upscale an image with P Image Upscale. 0.25 credits per output megapixel. Required: imageUrl, upscaleFactor.
krea-2: Upscale an image with Krea 2. 1 credit per output megapixel. Required: imageUrl, upscaleFactor. Faithful, cheap upscales: seed-vr-2 or gan. Creative upscales that add new detail: krea-2, flux or stable-diffusion (raise globalCreativity for more invention). Charges credits from the connected Upsampler account; a failed job is refunded automatically. Result URLs expire after 3 hours (get_job reissues fresh ones) and jobs are deleted after 7 days.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"imageUrl": "<imageUrl>"
},
"name": "upscale_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait up to about 50 seconds for the result before returning (default true). If the job is still running, call get_job with the returned id. | |
| model | Yes | Which upscaling model to run, or auto to let Upsampler pick from the image. | |
| detail | No | A higher value enhances detail, but can lead to unwanted artifacts or noise in the image. Integer between 0-10. Used by: flux, stable-diffusion, krea-2 (required by some of them, see the model list above). | |
| intent | No | Only with model auto: faithful (default) keeps the image as it is, detail lets the model redraw fine detail. | |
| imageUrl | Yes | URL of the image to upscale, or the image encoded as a base64 data URI. Must be a publicly accessible URL (http/https) or a base64 data URI (e.g., data:image/png;base64,...). Supported formats are png, jpeg, jpg, and webp. Base64 images have a 3MB size limit. | |
| description | No | Text prompt to guide the creative upscaling process. Used by: flux, stable-diffusion, krea-2. | |
| resemblance | No | Resemblance to the original image structure. Higher values adhere more closely. Integer, 0-10. Used by: stable-diffusion (required by some of them, see the model list above). | |
| outputFormat | No | Format of the delivered image. Allowed values: "png", "webp". Defaults to "png". Used by: seed-vr-2, seed-vr-2-large, p-image-upscale, krea-2. | |
| upscaleFactor | No | Factor by which to upscale. Number, 1-4. Output image must not exceed 100 megapixels (100,000,000 pixels). Required unless model is auto. | |
| inputImageType | No | Style that best matches the image. Allowed values: "realism", "anime", "universal". Used by: flux, gan, stable-diffusion, krea-2 (required by some of them, see the model list above). | |
| globalCreativity | No | The creativity value determines how much the AI can change the original image. Integer between 0-10. Used by: flux, stable-diffusion, krea-2 (required by some of them, see the model list above). | |
| shouldEnhanceFaces | No | If true, attempts to better preserve and enhance facial features. | |
| regionalCreativityImageUrl | No | URL of a black and white mask image that defines creativity levels per pixel, or the image encoded as a base64 data URI. White areas (255) receive maximum creativity, black areas (0) receive minimum creativity, with grayscale values interpolated. Must be a publicly accessible URL (http/https) or a base64 data URI. Supported formats are png, jpeg, jpg, and webp. Must have the same aspect ratio as the main image (within 5% tolerance). Base64 images have a 3MB size limit. Used by: flux, stable-diffusion, krea-2. |