Image Upscale API is a powerful tool designed to upscale the resolution and size of an image by 2x , 4x and 8x.
Developer portal : https://api.market/store/magicapi/upscaler
About
Our Image Upscaling API streamlines the process of enhancing image resolution and size by factors of 2x, 4x, and 8x using advanced Super-Resolution models. Tailored for developers, designers, and content creators, this API offers a convenient solution for improving image quality without compromising details.
Integrating our API into your workflow is seamless. Simply send a POST request to the respective endpoint—/upscale2x/
, /upscale4x/
, or /upscale8x/
—with the URL of the image to be upscaled in the request body. The API then applies the chosen upscaling factor to enhance the image resolution.
The output format of the API response is a JPEG image, preserving the upscaled version of the input image. This standardized format ensures compatibility with a wide range of applications and platforms, facilitating easy integration into your projects.
Use cases for our Image Upscaling API encompass various scenarios, including:
- Enhancing image quality for digital media platforms
- Preparing images for high-definition displays or printing
- Improving image details for machine learning training datasets
- Enhancing visual content for marketing materials and presentations
By automating the image upscaling process, our API saves valuable time and resources, empowering you to deliver visually stunning content efficiently. Whether you’re developing a photo editing application, optimizing website images, or enhancing machine learning datasets, our Image Upscaling API provides the functionality you need to achieve exceptional results. Elevate your image processing capabilities and unlock new possibilities with our Image Upscaling API.
Request and Response
CURL Request
curl -X 'POST' \
'https://api.magicapi.dev/api/v1/magicapi/upscaler/upscale2x/' \
-H 'accept: image/jpeg' \
-H 'x-magicapi-key: API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://production-media.paperswithcode.com/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg"
}'
Python Request
import http.client
conn = http.client.HTTPSConnection("api.magicapi.dev")
payload = "{\"url\":\"https://production-media.paperswithcode.com/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg\"}"
headers = {
'x-magicapi-key': "SOME_STRING_VALUE",
'content-type': "application/json"
}
conn.request("POST", "/api/v1/magicapi/upscaler/upscale2x/", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
No Comments
Leave a comment Cancel