Background Removal API
Background Removal API for Next.js
Next.js developers can call PixelAPI directly from API routes or server components, with full TypeScript support and edge-runtime compatibility.
Quickstart: PixelAPI + Next.js
Sign up at pixelapi.dev/app for an API key (5,000 free credits (7-day first-time trial)). Then call:
curl -X POST https://api.pixelapi.dev/v1/image/remove-background \
-H "X-API-Key: $PIXELAPI_KEY" \
-F "image=@product.jpg"
# response: { "output_url": "https://...transparent.png", "credits_used": 12 }
Why Next.js teams choose PixelAPI
- $0.012 per image — fits any Next.js budget, even thousand-product catalogs.
- 5,000 free credits (7-day first-time trial) — test on real Next.js product data without card.
- REST API — works from any Next.js runtime (server-side function, cloud function, webhook).
- 14 other AI tools bundled — same API for image gen, upscale, face restore, etc.
- predictable API access — managed API service, sub-3-second response.
Common Next.js integration patterns
- On-upload trigger — when a Next.js user uploads a product image, fire PixelAPI in the background and store the cleaned PNG.
- Overnight bulk job — process the day's new uploads via a cron job hitting PixelAPI in a loop.
- Webhook — let your Next.js backend POST images to PixelAPI and receive transparent PNG URLs back.
Pricing
$0.012 per image, with bulk discounts (Pro = $0.012/image at 6K/mo; Scale = $0.012/image at 30K/mo). India billing in INR with GST invoice; international billing in USD via PayPal/Stripe.