Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pixelpanda-0.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pixelpanda-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file pixelpanda-0.1.0.tar.gz.

File metadata

  • Download URL: pixelpanda-0.1.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for pixelpanda-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7770a50c28be59e8c8ed74765297757df8d83df92a6b7ae64348329653a33bc0
MD5 9a10af1f149ed7abf3708aa8ead99156
BLAKE2b-256 38325071e75686ed6563a34e45fe133ee87b824dcab048c639c4207aede1ce8e

See more details on using hashes here.

File details

Details for the file pixelpanda-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pixelpanda-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for pixelpanda-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee58014b47971d9acc23e2513f40a6651af0d21d5a7e12e5dba13dbc29d364b1
MD5 fa82011e8dc43b05485e5b7aba8d41b1
BLAKE2b-256 ff89585b63da04bbc4eb7fe5f4dbfe7ac980b29fb4d6f49b907b784cba64b284

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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