Fashion Diffusion

Create faster in the app

Download App
Fashion Diffusion - AI Virtual Try-On and Fashion Design Tool

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",
    "resolution": "2K",
    "ratio": "auto",
    "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",
  "resolution": "2K",
  "ratio": "auto",
  "patternMirror": "tile"
}
ParameterSupported valuesDefault
areaEntire Product or custom textEntire Product
modelstandard, prostandard
resolution2K, 4K2K
ratioauto, 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9auto
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.