{"message":"Image Generation API with OpenCV","version":"1.0.0","endpoints":{"/":"API information","/health":"Health check","/process-image":"Process uploaded image with OpenCV","/generate-dummy":"Generate a dummy processed image","/generate-mockup":"Generate single mockup with design and configuration","/generate-batch-mockups":"Generate multiple mockups with different colors (batch). Supports headless, onlyUpload, and uploadToR2 modes","/generate-batch-mockups-stream":"Generate multiple mockups with streaming (SSE). Supports headless, onlyUpload, and uploadToR2 modes","/apply-print-effect":"Apply puff print or embroidery effects to design images","/validate-embroidery-design":"Validate design for embroidery production (checks gradients, complexity, line thickness, colors)","/design-quality-check":"Evaluate print-readiness: bounding box, DPI, alpha fringe, stroke thickness","/clear-cache":"Clear image cache"},"modes":{"headless":"Set headless=true to fetch design images from R2 bucket instead of request body. Requires designImageReferences array with merchandiseProductId and mainMockupPrintAreaId","onlyUpload":"Set onlyUpload=true to return only stats (totalGenerated, totalFailed, processingTime) without streaming individual mockup images","uploadToR2":"Set uploadToR2=true to upload generated mockups to R2 bucket. Requires storeNumber and merchandiseProductId. Key format: store/{storeNumber}/merchandise/{merchId}/{storeBaseImageId}_{printSideId}_{colorId}.webp"}}