AI Image Editing API

How to change a color in an image via API via API

Need to swap a product or clothing color via text prompt? PixelAPI's ai image editing api handles it in under 8 seconds at $0.020 per edit.

The 3-step API call

1. Sign up at pixelapi.dev — get 500 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 "[email protected]" \
  -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.020 per edit. The first 100 calls are free on signup. Higher volume → lower per-call rate (Pro plan = 60K credits for $50, Scale = 300K credits for $200).

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