Skip to main content

Super Resolution Endpoint

Overview

Stable Diffusion V3 APIs Super Resolution API returns a super resolution version of an image that is passed to the url attribute.

Super Resolution endpoint result

Request

--request POST 'https://stablediffusionapi.com/api/v3/super_resolution' \

Send a POST request to https://stablediffusionapi.com/api/v3/super_resolution endpoint to return the corresponding super resolution image of the image passed.

Watch the how-to video to see it in action.

Body Attributes

ParameterDescription
keyYour API Key used for request authorization
urlURL of the image that you want in super resolution
scaleA number for scaling the image
webhookSet an URL to get a POST API call once the image generation is complete.
face_enhanceA boolean flag (true/false) for face enhancement feature

Example

Body

Body Raw
{
"key": "",
"url": "https://stable-diffusion-api.s3.amazonaws.com/generations/1668922501_1-0.png",
"scale": 3,
"webhook": null,
"face_enhance": false
}

Request

var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");

var raw = JSON.stringify({
"key": "",
"url": "https://stable-diffusion-api.s3.amazonaws.com/generations/1668922501_1-0.png",
"scale": 3,
"webhook": null,
"face_enhance": false
});

var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};

fetch("https://stablediffusionapi.com/api/v3/super_resolution", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));

Response

{
"status": "success",
"generationTime": 12.782328367233276,
"id": 2912600,
"output":"https://pub-8b49af329fa499aa563997f5d4068a4.r2.dev/generations/1675767485_out.png"
}