Super resolution image enhancement
curl --request POST \
--url https://modelslab.com/api/v6/image_editing/super_resolution \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"init_image": "<string>",
"model_id": "realesr-general-x4v3",
"scale": 3,
"face_enhance": false,
"webhook": "<string>",
"track_id": 123
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {}
}Image Editing API
Super Resolution
Super Resolution API returns a super resolution version of the image.
POST
/
image_editing
/
super_resolution
Super resolution image enhancement
curl --request POST \
--url https://modelslab.com/api/v6/image_editing/super_resolution \
--header 'Content-Type: application/json' \
--data '
{
"key": "<string>",
"init_image": "<string>",
"model_id": "realesr-general-x4v3",
"scale": 3,
"face_enhance": false,
"webhook": "<string>",
"track_id": 123
}
'{
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {}
}Documentation Index
Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
Use this file to discover all available pages before exploring further.
Super Resolution

Request
Send aPOST request to below endpoint to return the corresponding super resolution image of the image passed.
curl
--request POST 'https://modelslab.com/api/v6/image_editing/super_resolution' \
The following upscale model are supported
| Model ID | Description |
|---|---|
| RealESRGAN_x4plus | 4x upscaling model |
| RealESRGAN_x4plus | 4x upscaling model |
| RealESRGAN_x4plus_anime_6B | 4x Anime upscaling model |
| RealESRGAN_x2plus | 2x upscaling model |
| realesr-general-x4v3 | 4x upscaling general model |
| ultra_resolution | 4K+ upscaling general model |
Body
json
{
"key": "your_api_key",
"init_image": "https://i.pinimg.com/564x/fc/8e/6a/fc8e6a075f341284b0f44bf1592f9f3c.jpg",
"face_enhance": false,
"scale": 3,
"webhook": null,
"track_id": null
}
Body
application/json
Your API Key used for request authorization
The URL of the image that you want to upscale
Available options:
RealESRGAN_x4plus, RealESRGAN_x4plus_anime_6B, RealESRGAN_x2plus, realesr-general-x4v3, ultra_resolution A number for scaling the image
A boolean flag for face enhancement feature
URL to receive POST API call when complete
ID for webhook identification
Response
200 - application/json
Super resolution response
- Option 1
- Option 2
- Option 3
Available options:
success Time taken to generate the image in seconds
Unique identifier for the generation request
Array of generated image URLs
Array of proxy image URLs
Metadata about the generation process
Was this page helpful?
⌘I

