Request

Send a POST request to below endpoint to return an upscaled version of the initial image.
curl
--request POST 'https://modelslab.com/api/v1/enterprise/super_resolution' \
Want more upscale models? Request a custom model by contacting us at our Discord server.
The following upscale models are supported:
Model IDDescription
RealESRGAN_x4plus4x upscaling model
RealESRNet_x4plus4x upscaling model
RealESRGAN_x4plus_anime_6B4x Anime upscaling model
RealESRGAN_x2plus2x upscaling model
realesr-general-x4v34x upscaling general model
ultra_resolution4K+ upscaling general model

Body

json
{ 
    "key": "enterprise_api_key", 
    "url": "https://pub-8b49af329fae499aa563997f5d4068a4.r2.dev/generations/e5cd86d3-7305-47fc-82c1-7d1a3b130fa4-0.png", 
    "scale": 3, 
    "webhook": null, 
    "face_enhance": true
}

Body Attributes

key
string
required
Your API Key used for request authorization.
url
string
required
The URL of the image you want to upscale to super resolution.
scale
number
required
The scale factor for upscaling. Must be between 1 and 4.
model_id
string
default:"realesr-general-x4v3"
The upscale model to use. Default: realesr-general-x4v3.
webhook
string
A webhook URL to receive a POST callback once the image generation is complete.
face_enhance
boolean
default:"false"
Enable face enhancement in the upscaled image. Default: false.