Image Models
ESRGAN Upscaler

In order to deploy the model you can use the identifier below:

  • ESRGAN Upscaler: esrgan-upscaler

Real-ESRGAN aims at developing Practical Algorithms for General Image/Video Restoration. The model extends the powerful ESRGAN to a practical restoration application (namely, Real-ESRGAN), which is trained with pure synthetic data.

You can follow this example of how to call the deployed endpoint:

Request Parameters

  curl --location --request POST 'https://run.cerebrium.ai/esrgan-upscaler-webhook/predict' \
      --header 'Authorization: <API_KEY>' \
      --header 'Content-Type: application/json' \
      --data-raw '{
        "image": <BASE_64_STRING>,
        "file_url": "https://your-url.com",
        "upscale": 4,
        "face_enhance": true
        "webhook_endpoint": "https://your-url.com"
      }'
Authorizationrequired
string

This is the Cerebrium API key used to authenticate your request. You can get it from your Cerebrium dashboard.

imageoptional
string

A base64 encoded string of the image you would like to upscale.

file_urloptional
string

A publicly accessible url of a image you would like to upscale

upscaleoptional
integer

A integer specifying how big you would like to upscale the image. Default is 4x.

face_enhanceoptional
boolean

A boolean value if you are upscaling a face in your image

webhook_endpointoptional
string

The url endpoint you would like us to send the image results to once it has finished generating

{
    "run_id": "<UUID_STRING>",
    "message": "Successfully generated image",
    "result": [<BASE_64_STRING>]
}

Response Parameters

run_idrequired
string

A unique identifier for the run that you can use to associate prompts with webhook endpoints.

messagerequired
string

Whether of not the response was successful

resultrequired
string

An array of base64 encoded strings of the image that you can convert into an image