Skip to main content

image-upscaling-api

A simple Python wrapper for the image-upscaling.net upscaling API.

Installation

pip install image-upscaling-api

Documentation

Examples

1. Basic File Upscaling

  • Uploads an image from disk and saves it back to disk.
  • upscaled by 4x using the "plus" model
  • The upscaler encodes your image as png but you can save it as any opencv supported extension.
from image_upscaling_api import UpscalerAPI

api = UpscalerAPI(client_id="a9898cb899c1542468b8555e59dfa331")

# Upload (scale: 4, model: plus)
img_id = api.upload("baboon.png", model="plus", scale=4, face_enhance=False)

# Download and save as jpg
api.wait_and_download(img_id, save_path="./baboon_upscaled.jpg")

2. OpenCV & Diffuser

  • uses opencv images for upload and download
  • uses diffuser model with fixed output resolution (-1 = 4MPx)
  • no save_path -> image is returned as opencv image
from image_upscaling_api import UpscalerAPI
import cv2

api = UpscalerAPI(client_id="a9898cb899c1542468b8555e59dfa331")

image = cv2.imread("photo1.jpg")

# Upload with diffuser-lite and custom prompt
img_id = api.upload(image, model="diffuser-lite", scale=-1, prompt="", creativity=0.1)

# Download back into numpy array
upscaled = api.wait_and_download(img_id)
cv2.imwrite("upscaled_photo1.png", upscaled)

Github

Find the source code here: [dercodeKoenig/image-upscaling.net_API]

License

MIT

Metadata

Release files for image-upscaling-api 2026.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for image-upscaling-api 2026.0.1
File Size Uploaded
image_upscaling_api-2026.0.1.tar.gz 77.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for image-upscaling-api 2026.0.1
File Interpreter ABI Platform
image_upscaling_api-2026.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 81.7 kB

Release files / image_upscaling_api-2026.0.1.tar.gz

Download URL image_upscaling_api-2026.0.1.tar.gz
Size 77.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4e22a54628750bbc8ef19cd9fd3b2615cca249ff1dfbeefcfb4b5120b1307d94
BLAKE2b-256 checksum
How to use checksums
a14498ac7de2c881fcc99eceb57b233335ccd619ee44386132e9de3db60c53e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7

Release files / image_upscaling_api-2026.0.1-py3-none-any.whl

Download URL image_upscaling_api-2026.0.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d4e0122e9b28fd7247f68985d56d6f7b0a7e050e5ae8d6ae9452d8960c71018
BLAKE2b-256 checksum
How to use checksums
941cd5ba32552d5f56f3ba105a49582fec960197754977e7477e04873a915d6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page