image-upscaling-api
A simple Python wrapper for the image-upscaling.net upscaling API.
Installation
pip install image-upscaling-api
Documentation
-
Full API Documentation: image-upscaling.net/api.html
-
Help on Model & Scale Config: get_upscalers_config
-
Client ID: 32 digits, 0-9, a-z, A-Z
You can find your client id here: image-upscaling.net/account
If you have an account with positive balance, you need to use your linked client id from the account page to use your balance in this api.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| image_upscaling_api-2026.0.1.tar.gz | 77.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|