Extend a photo past its original edges and let AI paint in matching scenery. Turn a portrait crop into a landscape banner, fill an aspect ratio for ads, or recover a tight crop. Pick the direction and how far to extend.
POST https://api.pixelapi.dev/v1/image/outpaint
curl -X POST https://api.pixelapi.dev/v1/image/outpaint \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"image_url":"https://.../photo.jpg","direction":"all","extend_pixels":256,"prompt":"continue the beach scene"}'
direction: all, left, right, top, bottom.
curl https://api.pixelapi.dev/v1/image/JOB_ID \ -H "Authorization: Bearer YOUR_API_KEY"
Jobs run async on always-warm infrastructure — poll until status is completed. No cold starts.
Also see: Remove Object • AI Image Editor