Edit Image
Edit existing images with natural language instructions.
POST
/v1/images/editAPI KeyEdit an image using an instruction and reference image(s).
Parameters
instructionstringrequiredHow to edit the imageimage_urlsstring[]requiredURLs of images to edit (max 5)modelstringModel IDsizestring1K, 2K, or 4KExample
curl -X POST https://api.picxstudio.com/v1/images/edit \
-H "Authorization: Bearer pxsk_your_key" \
-H "Content-Type: application/json" \
-d '{"instruction":"add a rainbow in the sky","image_urls":["https://example.com/img.jpg"],"size":"2K"}'