Recolor
Change the color of a product image while preserving its texture and construction.
curl -X POST \
"https://www.fashiondiffusion.ai/api/public/v1/recolor/tasks" \
-H "Authorization: Bearer fd_live_xxx" \
-H "Content-Type: application/json" \
--data-raw '{
"imageUrl": "https://cdn.example.com/product.jpg",
"color": "#1A2B3C",
"area": "Entire Product",
"model": "standard"
}'// Base64 input (use imageBase64 instead of imageUrl)
{
"imageBase64": "data:image/png;base64,iVBORw0KGgo...",
"color": "#1A2B3C",
"area": "Sleeves"
}| Parameter | Supported values | Default |
|---|---|---|
| color | 6-digit hex, e.g. #1A2B3C | required |
| area | Entire Product, Tops, Bottoms, Sleeves, custom text | Entire Product |
| model | standard, pro | standard |
Provide imageUrl (or imageBase64), a 6-digit hex color, and an area such as Entire Product, Tops, Bottoms, Sleeves, or custom text. model: standard/pro.