{"info":{"title":"bria/eraser","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Erase","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"bria_eraser_erase","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Input"}}},"required":true}}}},"openapi":"3.1.0","components":{"schemas":{"Input":{"type":"object","title":"Input","required":["image_url","mask_url"],"properties":{"mask_url":{"type":"string","title":"Mask URL","format":"uri","x-order":1,"description":"A binary black-and-white mask the same size as the source image. White marks the area to clean/erase; black is preserved."},"image_url":{"type":"string","title":"Image URL","format":"uri","x-order":0,"description":"The source image to erase from."},"mask_type":{"allOf":[{"$ref":"#/components/schemas/MaskTypeEnum"}],"title":"Mask Type","default":"manual","x-order":2,"description":"How the mask was produced: 'manual' for user-generated masks, 'automatic' for algorithm-generated masks like SAM."},"preserve_alpha":{"type":"boolean","title":"Preserve Alpha","default":false,"x-order":3,"description":"Attempts to preserve the alpha channel of the input image. Enable only for images with transparency."}},"x-fal-order-properties":["image_url","mask_url","mask_type","preserve_alpha"]},"Output":{"type":"string","title":"Output","format":"uri","description":"The erased output image."},"MaskTypeEnum":{"enum":["manual","automatic"],"type":"string","title":"MaskTypeEnum"}}}}