PixelPanda Python SDK
Python client for the PixelPanda API — the processing layer for AI-generated images. Upscale Midjourney art for print, strip backgrounds, enhance faces, reverse-engineer any image into prompts, and generate product photography — all from code.
Install
pip install git+https://github.com/RyanKramer/pixelpanda-python.git
Quickstart
from pixelpanda import PixelPanda
pp = PixelPanda(api_key="pk_live_...") # or set PIXELPANDA_API_KEY
# Upscale AI art to print resolution (2x/4x = 1 credit, 8x = 2)
result = pp.upscale("midjourney_art.png", scale=4)
print(result["result_url"])
# Remove a background → transparent PNG (1 credit)
result = pp.remove_background("product.jpg")
# Reverse-engineer an image into prompts (1 credit)
result = pp.image_to_prompt("https://example.com/style-reference.jpg")
print(result["prompts"]["midjourney"])
# Generate product scene photography (1 credit/scene)
product = pp.upload_product("product.jpg")
job = pp.generate_scenes(product["uuid"], num_scenes=6) # blocks until done
Every method accepts a local path, raw bytes, or a public URL.
API surface
| Method | Endpoint | Credits |
|---|---|---|
upscale(image, scale, quality) |
POST /api/v2/upscale |
1 (2x/4x), 2 (8x) |
enhance(image) |
POST /api/v2/enhance |
1 |
image_to_prompt(image) |
POST /api/v2/image-to-prompt |
1 |
remove_background(image) |
POST /api/v1/remove-background |
1 |
upload_product(image) |
POST /api/v2/products |
free |
generate_scenes(uuid, n, wait=True) |
POST /api/v2/generate/scenes |
1/scene |
get_job(id) / wait_for_job(id) |
GET /api/v2/jobs/{id} |
free |
Get an API key
Sign up at pixelpanda.ai and grab your key from the dashboard — the $10 one-time pack (50 credits, no subscription) is the cheapest way to test. Full docs: pixelpanda.ai/developers · Image Generation API · Background Removal API
License
MIT
Metadata
Release files for pixelpanda 0.1.0
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 |
|---|---|---|---|---|
| pixelpanda-0.1.0.tar.gz | 5.3 kB | Without provenance | Details for pixelpanda-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pixelpanda-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pixelpanda-0.1.0-py3-none-any.whl |
Total release size: 11.2 kB
Release files / pixelpanda-0.1.0.tar.gz
| Download URL | pixelpanda-0.1.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7770a50c28be59e8c8ed74765297757df8d83df92a6b7ae64348329653a33bc0
|
|
BLAKE2b-256 checksum How to use checksums |
38325071e75686ed6563a34e45fe133ee87b824dcab048c639c4207aede1ce8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Release files / pixelpanda-0.1.0-py3-none-any.whl
| Download URL | pixelpanda-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee58014b47971d9acc23e2513f40a6651af0d21d5a7e12e5dba13dbc29d364b1
|
|
BLAKE2b-256 checksum How to use checksums |
ff89585b63da04bbc4eb7fe5f4dbfe7ac980b29fb4d6f49b907b784cba64b284
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Security for pixelpanda 0.1.0
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.