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
}'
{
  "status": "success",
  "generationTime": 123,
  "id": 123,
  "output": [
    "<string>"
  ],
  "proxy_links": [
    "<string>"
  ],
  "meta": {}
}

Super Resolution

Super Resolution endpoint result

Request

Send a POST 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 IDDescription
RealESRGAN_x4plus4x upscaling model
RealESRGAN_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": "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
key
string
required

Your API Key used for request authorization

init_image
string<uri>
required

The URL of the image that you want to upscale

model_id
enum<string>
default:realesr-general-x4v3
Available options:
RealESRGAN_x4plus,
RealESRGAN_x4plus_anime_6B,
RealESRGAN_x2plus,
realesr-general-x4v3,
ultra_resolution
scale
integer
default:3

A number for scaling the image

face_enhance
boolean
default:false

A boolean flag for face enhancement feature

webhook
string<uri>

URL to receive POST API call when complete

track_id
integer

ID for webhook identification

Response

200 - application/json

Super resolution response

status
enum<string>
Available options:
success
generationTime
number

Time taken to generate the image in seconds

id
integer

Unique identifier for the generation request

output
string<uri>[]

Array of generated image URLs

Array of proxy image URLs

meta
object

Metadata about the generation process