JavaScript SDK

npm install pixelpanda

The official Node.js client for the PixelPanda API. Background removal, print-resolution upscaling, AI editing, product photography and ad packs — typed, zero-dependency, and three lines from your first result.

0
Dependencies
TS
Typed API
10+
AI operations
import PixelPanda from "pixelpanda"; const pp = new PixelPanda("pk_live_..."); // or PIXELPANDA_API_KEY env // Upscale AI art to print resolution const up = await pp.upscale("midjourney_art.png", { scale: 4 }); // Remove a background → transparent PNG const cut = await pp.removeBackground("product.jpg"); // Edit with a prompt (FLUX Kontext) await pp.edit("photo.jpg", "make the background pure white"); // One product image → four AI scene photos const job = await pp.generateProductPhotos("product.jpg", { numPhotos: 4 }); // Full ad pack from a product page URL const pack = await pp.createAdPack("https://mystore.com/products/mug");

The Fastest Way to Add AI Images to a Node App

Whether you're building an e-commerce backend, a print pipeline or an internal tool, the SDK wraps the whole PixelPanda API in typed methods that accept a file path, bytes or URL and hand back hosted result URLs.

Everything in the API, one import

Three Steps to First Result

1

Install

npm install pixelpanda — zero dependencies, ESM + CommonJS, full TypeScript types, Node 18+.

2

Authenticate

new PixelPanda(apiKey) or set PIXELPANDA_API_KEY. Free key at pixelpanda.ai — Profile, API Token.

3

Process

Pass a path, bytes or URL to upscale, removeBackground, edit, generateProductPhotos and more; get hosted result URLs back.

Frequently Asked Questions

How do I install the SDK?
npm install pixelpanda. Zero runtime dependencies, ESM and CommonJS builds, full TypeScript types, Node 18+.
What operations are supported?
Background removal, 2x/4x/8x upscaling, enhancement, prompt-based editing, image-to-prompt, product-scene generation, ad packs from a product URL, UGC video and job polling.
What inputs are accepted?
A local file path, raw bytes (Uint8Array/ArrayBuffer) or a public URL — encoding is handled automatically.
How much does it cost?
The SDK is free and MIT-licensed; API calls spend PixelPanda credits (most operations 1 credit).
Is the source available?
Yes — github.com/RyanKramer/pixelpanda-js, alongside a Python SDK and a dozen other integrations.

npm install pixelpanda

Grab a free API key and process your first image in under a minute.

Get an API Key

Explore More Resources

Browse our guides, tutorials, and tools

AI Ad Generator
Full ad packs — video, images, static ads, captions
AI UGC
Authentic UGC ads with AI creators
Tool Comparisons
See how PixelPanda compares to competitors
Best For Guides
Find the best AI tools for your use case
Alternative Guides
Compare top alternatives for every tool
Tutorials
Step-by-step guides for AI image creation
Industries
AI solutions for your specific industry
Product Photos
AI product photography for every platform
UGC Content
AI-generated UGC videos and photos
AI Headshots
Professional headshots for any platform
Free Tools
30+ free image editing tools, no signup
Statistics
Ecommerce, AI & marketing statistics library