Skip to main content
Version: 1.1.0

Create upscaling artwork

POST 

https://api.tengr.ai/v1/artworks/upscaling

Create high-resolution artwork by utilizing upscaling techniques.

Request

Body

required

    imageUrl urirequired

    The URL of the image to be upscaled. The image's total area (width × height) must not exceed 1,478,656 pixels (e.g., 1216 × 1216). Accepted image formats: JPEG, JPG, PNG, and WebP.

    scaleFactor integer

    Possible values: >= 2 and <= 8

    Default value: 2

Responses

Response indicating that the artwork was successfully created.

Schema

    id uuidrequired
    artworkType stringrequired

    Possible values: [upscaling]

    parameters

    object

    required

    imageUrl uri

    The URL of the image to be upscaled. The image's total area (width × height) must not exceed 1,478,656 pixels (e.g., 1216 × 1216). Accepted image formats: JPEG, JPG, PNG, and WebP.

    scaleFactor integer

    Possible values: >= 2 and <= 8

    Default value: 2

    duration numberrequired
    results string[]required
    status stringrequired

    Possible values: [done, failed]

    createdAt date-timerequired
const axios = require('axios');
let data = JSON.stringify({
"imageUrl": "string",
"scaleFactor": 2
});

let config = {
method: 'post',
maxBodyLength: Infinity,
url: 'https://api.tengr.ai/v1/artworks/upscaling',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Authorization': 'Bearer <TOKEN>'
},
data : data
};

axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Request Collapse all
Base URL
https://api.tengr.ai
Auth
Body required
{
  "imageUrl": "string",
  "scaleFactor": 2
}
ResponseClear

Click the Send API Request button above and see the response here!