The AI Recolor API changes the color of a product in an image. Provide the source image together with the color you want and the part you want to recolor, and Fotor returns a recolored result.
Color Control: Pass any target color as a hex string (for example #f95350). Use prompt to describe what should be recolored (for example Clothes).
Flexible Input: userImageUrl accepts either a public image URL or an inline base64 image (data:image/jpeg;base64,...). Inline images are uploaded to Fotor storage before the task starts.
Asynchronous Task: The submission returns a taskId. Poll GET /v1/aiart/tasks/{taskId} until status changes from 0 (processing) to 1 (success) or 2 (failed). On success, resultUrl contains the recolored image.