AI Image Editing API

How to modify an image background via API via API

Need to change scene backgrounds via prompt? PixelAPI's ai image editing api handles it in under 8 seconds at $0.01 per edit.

The 3-step API call

1. Sign up at pixelapi.dev — get 300 free credits, no card.
2. POST your input to /v1/image/edit.
3. Receive a public output URL in seconds.

Code sample

curl -X POST https://api.pixelapi.dev/v1/image/edit \
  -H "X-API-Key: $PIXELAPI_KEY" \
  -F "image=@photo.jpg" \
  -F "prompt=change the t-shirt color to navy blue"

Why this works for this use case

Prompt-driven edits that preserve context. Handles object replacement, color changes, background swaps, and inpainting in a single call. Output is production-ready, suitable for catalog work, ad creative, and consumer-facing apps.

Pricing

$0.01 per edit. The first 30 edits are free with the 300 signup credits. Higher volume → lower per-call rate (Pro plan = 60K credits for $50, Scale = 500K credits for $349).

Try free — 300 credits, no card See pricing REST API docs