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 | Provenance | Actions |
|---|---|---|---|---|
| image_upscaling_api-2026.0.1.tar.gz | 77.7 kB | Without provenance | Details for image_upscaling_api-2026.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| image_upscaling_api-2026.0.1-py3-none-any.whl | Python 3 | none | any | Details for image_upscaling_api-2026.0.1-py3-none-any.whl |
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
|
Security for image-upscaling-api 2026.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.