Upscale

Upscale an existing image to a higher quality and resolution.

POST https://api.apiframe.pro/ideogram-upscale

Headers

Name
Value

Content-Type

application/json

Authorization*

Your APIFRAME API Key

Body

Name
Type
Description

image_url*

string

the url of the image to remix

prompt*

string

the text prompt to describe the image to generate

resemblance*

integer

an integer between 1 and 100

detail

integer

an integer between 1 and 100

seed

integer

The seed for the generation

magic_prompt_option

string

It can be 'AUTO', 'ON', or 'OFF' 'AUTO' by default.

Response

// Success, the image has been generated
{
    "task_id": "64cd7965-1b78-42c8-b929-9d7751a2e149",
    "image_urls": [
      "https://cdn.apiframe.pro/images/xxxxxxxxxxxxxx.png"
    ],
    "status": "finished",
    "task_type": "ideogram-upscale",
    "seed": 12345
}

Code samples

const axios = require('axios');
const data = JSON.stringify({
  "prompt": "a sunflower field in the wind",
  "image_url": "https://.....................x.png",
  "resemblance": 50,
});

const config = {
  method: 'post',
  maxBodyLength: Infinity,
  url: 'https://api.apiframe.pro/ideogram-upscale',
  headers: { 
    'Content-Type': 'application/json', 
    'Authorization': 'YOUR_API_KEY'
  },
  data : data
};

axios.request(config)
.then((response) => {
  console.log(JSON.stringify(response.data));
})
.catch((error) => {
  console.log(error);
});

Last updated

Was this helpful?