Apply Fabric
Apply a fabric or pattern image to a product or model image. A mask can optionally limit the painted area.
curl -X POST \
"https://www.fashiondiffusion.ai/api/public/v1/apply-fabric/tasks" \
-H "Authorization: Bearer fd_live_xxx" \
-H "Content-Type: application/json" \
--data-raw '{
"fabricImageUrl": "https://cdn.example.com/fabric.jpg",
"modelImageUrl": "https://cdn.example.com/product.jpg",
"area": "Entire Product",
"model": "standard"
}'// Base64 input (use both Base64 fields instead of URL fields)
{
"fabricImageBase64": "data:image/jpeg;base64,/9j/4AAQSk...",
"modelImageBase64": "data:image/png;base64,iVBORw0KGgo...",
"area": "Tops",
"patternMirror": "tile"
}| Parameter | Supported values | Default |
|---|---|---|
| area | Entire Product or custom text | Entire Product |
| model | standard, pro | standard |
| patternMirror | tile, horizontal_vertical | tile |
Provide fabricImageUrl and modelImageUrl (or their Base64 equivalents). Use area, notes, fabricAdjustUrl, and pattern settings to match the Playground controls. model: standard/pro; patternMirror: tile/horizontal_vertical.