API For Image Upscaler
June 18, 2024Less than 1 minute
API For Image Upscaler
Image Upscaler Describe
Upscale and enlarge Images & Photos online free.
Dive into the realm of cutting-edge technology with our AI Image Upscaler.
Discover how you can effortlessly transform your images into stunning, high-definition masterpieces with just a few clicks.

Considerations
- Before using the API, make sure you have obtained the API key. Refer to the link below for instructions on how to obtain it. API For API Key Settings
 - All generated images will be automatically deleted after 24 hours. Please make sure to save the images you need to your local storage in a timely manner.
 - Tips: Your image will be enlarged to twice its original size.
 
Credits Consumption
Each time consumes 2 credits.
Header Attributes
| Parameter | Description | 
|---|---|
| Authorization | Your API Key used for request authorization. | 
Create Job
Request Url
--request POST https://developer.remaker.ai/api/remaker/v1/ai-enhance/create-jobBody Attributes
| Parameter | Type | Required | Description | 
|---|---|---|---|
| image_file | file[binary] | true | input_image | 
demo
import requests
url = "https://developer.remaker.ai/api/remaker/v1/ai-enhance/create-job"
headers = {
    'accept': 'application/json',
    'Authorization': 'your token',
}
files = {
    'image_file': open('demo.png', 'rb')
}
response = requests.request("POST", url, headers=headers, files=files)
print(response.text)Response
{
    "code": 100000,
    "result": {
        "job_id": "your-job-id"
    },
    "message": {
        "en": "Request Success."
    }
}Fetch Job
Request Url
--request GET https://developer.remaker.ai/api/remaker/v1/ai-enhance/your-job-idBody Attributes
| Parameter | Description | 
|---|---|
| job_id | job_id returned by create task | 
demo
import requests
url = 'https://developer.remaker.ai/api/remaker/v1/ai-enhance/your-job-id'
headers = {
    'accept': 'application/json',
    'Authorization': 'your token',
}
response = requests.get(url, headers=headers)
print(response.json())  # Print the response contentResponse
{
    "code": 100000,
    "result": {
        "output_image_url": [
            "https://image.remaker.ai/datarm/api/image-upscaler/api/2024-04-10/output/your-output-image.png"
        ],
        "input_image_url": [
            "https://image.remaker.ai/datarm/api/image-upscaler/api/2024-04-10/input/your-input-image.png"
        ],
        "job_id": "your-job-id",
        "message": ""
    },
    "message": {
        "en": "Image generated successfully."
    }
}
