Fashion Diffusion

Create faster in the app

Download App

API

Public API documentation

Use the Fashion Diffusion Public API to submit Virtual Try-On, AI Inpainting, Recolor, and Apply Fabric tasks and query their results.

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"
}
ParameterSupported valuesDefault
areaEntire Product or custom textEntire Product
modelstandard, prostandard
patternMirrortile, horizontal_verticaltile

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.