Image Generation API
Generate AI product photography with one REST call. Upload a product photo — get studio scenes, lifestyle shots, and on-model imagery back. No templates to design.
import requests # Generate 6 AI scene photos for a saved product job = requests.post( "https://pixelpanda.ai/api/v2/generate/scenes", headers={"Authorization": "Bearer pk_live_xxx"}, json={"product_uuid": "prod_abc123", "num_scenes": 6} ).json() # {"job_id": "...", "status": "pending", # "poll_url": "/api/v2/jobs/...", "credits_reserved": 6}
One API key, the whole image pipeline
Upload a product once, get a UUID, and reuse it across every generation call. Async jobs with polling or webhooks.
Upload once, generate forever
The full workflow — save a product, generate scenes, collect results. Copy-paste and run.
import requests, base64, time API = "https://pixelpanda.ai/api/v2" HEADERS = {"Authorization": "Bearer pk_live_your_api_key"} # 1. Upload a product image — returns a reusable UUID with open("product.jpg", "rb") as f: b64 = base64.b64encode(f.read()).decode() product = requests.post(f"{API}/products", headers=HEADERS, json={ "image": b64, "filename": "product.jpg" }).json() # 2. Generate 6 AI scene images (async — returns a job) job = requests.post(f"{API}/generate/scenes", headers=HEADERS, json={ "product_uuid": product["uuid"], "num_scenes": 6 }).json() # 3. Poll until done (or pass webhook_url in step 2 instead) while True: status = requests.get( f"https://pixelpanda.ai{job['poll_url']}", headers=HEADERS ).json() if status["status"] in ("completed", "failed"): break time.sleep(5) print(status) # image URLs for all generated scenes
const fs = require('fs'); const API = 'https://pixelpanda.ai/api/v2'; const HEADERS = { 'Authorization': 'Bearer pk_live_your_api_key', 'Content-Type': 'application/json' }; // 1. Upload a product image — returns a reusable UUID const b64 = fs.readFileSync('product.jpg').toString('base64'); const product = await (await fetch(`${API}/products`, { method: 'POST', headers: HEADERS, body: JSON.stringify({ image: b64, filename: 'product.jpg' }) })).json(); // 2. Generate scenes — pass a webhook_url and skip polling const job = await (await fetch(`${API}/generate/scenes`, { method: 'POST', headers: HEADERS, body: JSON.stringify({ product_uuid: product.uuid, num_scenes: 6, webhook_url: 'https://yourapp.com/webhooks/pixelpanda' }) })).json(); console.log(job.job_id, job.poll_url); // Your webhook receives image URLs when generation completes
# 1. Upload a product image (base64) — returns a reusable UUID curl -X POST https://pixelpanda.ai/api/v2/products \ -H "Authorization: Bearer pk_live_your_api_key" \ -H "Content-Type: application/json" \ -d "{\"image\": \"$(base64 -i product.jpg)\", \"filename\": \"product.jpg\"}" # 2. Generate 6 AI scene images for that product curl -X POST https://pixelpanda.ai/api/v2/generate/scenes \ -H "Authorization: Bearer pk_live_your_api_key" \ -H "Content-Type: application/json" \ -d '{"product_uuid": "prod_abc123", "num_scenes": 6}' # 3. Poll the job for generated image URLs curl https://pixelpanda.ai/api/v2/jobs/JOB_ID \ -H "Authorization: Bearer pk_live_your_api_key"
AI generation, not template merges
Template APIs fill your data into fixed layouts. This API generates new photography — your product in scenes that never existed. Pay per image, no monthly minimum.
Template-merge API. Renders your data into layouts you design first.
- Template image & video rendering
- Zapier ecosystem
- No AI photo generation
- Output looks templated
- No background removal or upscaling
- $49/mo minimum for API access
AI generation API. Creates new product photography from one photo.
- AI scene & lifestyle generation
- On-model imagery & virtual try-on
- Background removal + 8x upscaling
- Batch API + webhooks
- $10 one-time pack to test — no subscription
- Credits never expire
Template toolkit for no-code image, video, and PDF automation.
- Template rendering
- Zapier / Make / Airtable
- No AI photo generation
- Output looks templated
- No image enhancement suite
- Render quotas per plan
Comparing template tools? See our breakdowns: Bannerbear alternatives · Placid alternatives · Abyssale alternatives
Built for e-commerce pipelines
The product in the output is your product — pixel-faithful — with AI-generated everything else.
Scene generation
Studio, lifestyle, and contextual scenes matched to your product category. Up to 12 scenes per call.
On-model imagery
AI avatars hold, use, or wear your product. Pick from a library of avatars or create your own via the API.
Asset library
Upload products and avatars once, reference them by UUID forever. No re-uploading per request.
Async + webhooks
Jobs return instantly with a poll URL. Or register a webhook and get notified when images are ready.
Batch processing
Up to 100 images per batch job, 30 outputs per generate call. Built for full-catalog runs.
Full image suite
Same key covers background removal, upscaling, and enhancement. One integration, all tools.
Common questions
Start generating images today
50 credits for $10, one-time. One API key. Production-ready in minutes.