API for Image Edit

★ Premium Service — available on paid plans only

One REST endpoint for every photo edit you can describe: custom AI edits, garment unwrinkle and clothing recolor — an AI photo editor built for developers. Credits, not subscriptions — pay per edit, cancel anytime.

pay-per-edit credits
Premium Service · Works in production · Used by ecommerce, marketplaces, creator tools

Built for production teams

One endpoint replaces your hand-rolled editing pipeline — describe the edit, get the image back, simple per-call pricing.

⚡

Three modes, one call

Custom edit (describe it), unwrinkle garments, recolor clothing — one endpoint with a mode parameter.

💇

Edit in plain words

Describe the change — remove a stain, make a shirt navy, smooth wrinkles. The model edits only what you name.

📐

Keeps product detail

Edits preserve weave, stitching, logos and label text while changing only what you asked for.

🔌

Same edits in app + API

The tool lives in the web app (#tool-edit) and in the Lensora Android app — identical results and pricing.

💸

$0.372 per image

Pay-as-you-go with credits; Pro plans drop per-edit pricing further. No per-seat licenses.

🌐

One account, web + app + API

Same credits across pixelapi.dev, the Lensora mobile app, and the REST API. Switch channels freely.

Quickstart

Edit one image with a single POST — describe the edit, or pick unwrinkle / recolor mode. Output is a PNG with a transparent channel.

curl Python Node
# curl — multipart upload
curl -X POST https://api.pixelapi.dev/v1/image-edit \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "image_file=@input.jpg" \
  -o output.png

# curl — by URL
curl -X POST https://api.pixelapi.dev/v1/image-edit \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image_url":"https://example.com/photo.jpg"}' \
  -o output.png
# Python — requests
import requests

with open("input.jpg", "rb") as f:
    r = requests.post(
        "https://api.pixelapi.dev/v1/image-edit",
        headers={"Authorization": "Bearer YOUR_API_KEY"},
        files={"image_file": f},
        timeout=30,
    )
    r.raise_for_status()
    open("output.png", "wb").write(r.content)
// Node — fetch
const fs = require("fs");
const form = new FormData();
form.append("image_file", fs.createReadStream("input.jpg"));

const r = await fetch("https://api.pixelapi.dev/v1/image-edit", {
  method: "POST",
  headers: { "Authorization": "Bearer YOUR_API_KEY" },
  body: form,
});
fs.writeFileSync("output.png", Buffer.from(await r.arrayBuffer()));

PixelAPI vs manual editing

Same edit, two workflows. Time measured editing one catalogue photo by hand vs one API call.

PixelAPI Manual editing
Price per image (PAYG)$0.01$0.21
Price per image (subscription floor)$0.005$0.11
Premium Service: paid plans only Paid plans only50 (card required after)
Max resolution4K (4096²)4K (4096²)
Hair / fur alpha quality (100-image benchmark)9.1 / 109.0 / 10
Bulk endpointYes — 50 images / callNo batch endpoint
Drop-in compatible paramsYes — image_file / image_url–
Other tools in the same API14 (upscale, restore, face-detect, 3D, video…)1

FAQ

The questions teams ask most often about the Image Edit endpoint.

How much does the Image Edit API cost?

$0.372 per image (372 credits) on pay-as-you-go credits; Pro and Scale plans lower the per-credit cost. Available on paid plans only (Premium Service).

Do I need a credit card to try the API?

No. AI Image Edit is a Premium Service, available on paid plans only.

What input formats and resolutions are supported?

JPEG, PNG, and WebP up to 4K (4096×4096). Inputs can be multipart upload, direct URL, or base64. Output is always a PNG with a transparent alpha channel.

How is the alpha quality on hair and fur?

PixelAPI uses high-accuracy alpha matting that preserves individual hair strands, fur edges, and semi-transparent fabric. On our 100-image benchmark on garments and product shots the edit touches only what you describe — weave, text and logos survive.

Can I run this in production?

Yes. The API is rate-limited per plan (Starter 60 req/min, Pro 300 req/min, Scale 1500 req/min) and runs on autoscaling infrastructure with a 99.9% monthly uptime target. The bulk endpoint accepts up to 50 images per request.

Does it work on mobile?

Yes — the same tool ships in the Lensora Android app, with identical credits and pricing.

How is billing handled across web, mobile, and API?

One account, one credit balance. Whether you call the API directly, use the Lensora mobile app, or run the same workflow in the web dashboard, the same credits are debited. Plans bill via Razorpay (India and international) or Google Play (mobile).

AI Image Edit is a Premium Service

Available on paid plans. Same key works on web, mobile, and the REST API.

Start free with trial credits