Archived PixelAPI Guide — Current Tools Have Changed
PixelAPI packs 10 AI models into a single REST API. One API key, predictable credit-based pricing, predictable API access. This guide covers every model with working code examples.
Quick Reference: All 11 Models
| # | Model | Endpoint | Credits | Cost | Speed |
|---|---|---|---|---|---|
| 6 | Background Removal | POST /v1/edit/remove-background | 9 | $0.009 | ~3s |
| 7 | Background Replacement | POST /v1/edit/replace-background | 20 | $0.020 | ~10s |
| 8 | AI 4× upscaling | POST /v1/edit/upscale | 1.5 | $0.0015 | ~3s |
| 9 | Face Restore | POST /v1/edit/restore-face | 1.05 | $0.00105 | ~11s |
| 10 | Object Removal | POST /v1/edit/remove-object | 5 | $0.005 | ~4s |
Setup
Sign up at pixelapi.dev/app with Google. You get 5,000 free credits (24-hour trial) — no credit card needed.
import requests
API_KEY = "your_api_key_here"
BASE = "https://api.pixelapi.dev"
headers = {"Authorization": f"Bearer {API_KEY}"}
This historical tool — Discontinued
This historical tool has been discontinued. See the current tool catalogue for available editing workflows.
This historical tool — Discontinued
This historical tool has been discontinued. See the current tool catalogue for available editing workflows.
This historical tool — Discontinued
This historical tool has been discontinued. See the current tool catalogue for available editing workflows.
This historical tool — Discontinued
This historical tool has been discontinued. See the current tool catalogue for available editing workflows.
6. Background Removal
Upload an image, get back a transparent PNG with the background removed. Uses AI background removal, the current state-of-the-art segmentation model.
response = requests.post(f"{BASE}/v1/edit/remove-background",
headers=headers,
files={"image": open("product.jpg", "rb")})
# Returns transparent PNG
print(response.json()["output_url"])
Best for: E-commerce catalogs, product listings, clean cutouts.
Cost: 9 credits ($0.009) · Speed: ~3 seconds
7. Background Replacement
Removes the background and replaces it with an AI-generated scene from your text prompt, or a solid color.
# AI-generated background
response = requests.post(f"{BASE}/v1/edit/replace-background",
headers=headers,
files={"image": open("product.jpg", "rb")},
data={"prompt": "on a wooden table in a sunlit kitchen, warm tones"})
# Solid color background
response = requests.post(f"{BASE}/v1/edit/replace-background",
headers=headers,
files={"image": open("product.jpg", "rb")},
data={"background_color": "#F5F5F5"})
Best for: Lifestyle product photos, consistent catalog backgrounds.
Cost: 5 credits ($0.005) · Speed: ~10 seconds
8. AI 4× upscaling
Upscale images to 4x their original resolution using AI upscaling. Turns 256×256 into 1024×1024 with AI-enhanced detail.
response = requests.post(f"{BASE}/v1/edit/upscale",
headers=headers,
files={"image": open("thumbnail.jpg", "rb")})
Best for: Enhancing thumbnails for print, upscaling old/low-res images.
Cost: 1.5 credits ($0.0015) · Speed: ~3 seconds
9. Face Restore
Enhance and restore faces in photos. Fixes blurry, compressed, or old photos with face detail enhancement.
response = requests.post(f"{BASE}/v1/edit/restore-face",
headers=headers,
files={"image": open("old_photo.jpg", "rb")})
Best for: Old photo restoration, face enhancement in low-quality images.
Cost: 1.05 credits ($0.00105) · Speed: ~11 seconds
10. Object Removal
Remove unwanted objects from images. Provide the image and a mask indicating what to remove — AI object removal fills the area naturally.
response = requests.post(f"{BASE}/v1/edit/remove-object",
headers=headers,
files={
"image": open("photo.jpg", "rb"),
"mask": open("mask.png", "rb")
})
Best for: Cleaning up product photos, removing watermarks, removing distractions.
Cost: 5 credits ($0.005) · Speed: ~4 seconds
This historical tool — Discontinued
This historical tool has been discontinued. See the current tool catalogue for available editing workflows.
Pricing
| Plan | Price | Credits | Images (at 3 credits each) |
|---|---|---|---|
| Free | $0 | 100 | ~33 |
| Starter | $10/mo | 10,000 | ~3,333 |
| Pro | $50/mo | 60,000 | ~20,000 |
| Scale | $349/mo | 300,000 | ~100,000 |
India pricing (Razorpay): ₹200/2K credits · ₹1,000/12K credits · ₹5,000/75K credits
Get Started
5,000 free credits (24-hour trial) on signup. No credit card required. Sign up here →
Full API documentation: pixelapi.dev/docs