{"info":{"title":"bria/genfill/v2","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Generate","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"bria_genfill_v2_generate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Input"}}},"required":true}}}},"openapi":"3.1.0","components":{"schemas":{"Input":{"type":"object","title":"Input","required":["instruction","image_url","mask_url"],"properties":{"seed":{"type":"integer","title":"Seed","default":5555,"x-order":3,"description":"Random seed for reproducibility. The same seed, instruction, image, and mask produce the same result."},"mask_url":{"type":"string","title":"Mask URL","x-order":2,"description":"A binary black-and-white mask the same size as the source image. White marks the region to fill; black is preserved."},"image_url":{"type":"string","title":"Image URL","x-order":1,"description":"The source image to edit."},"steps_num":{"type":"integer","title":"Steps","default":30,"maximum":50,"minimum":20,"x-order":4,"description":"Number of inference steps (20-50). Higher values can improve detail at the cost of latency."},"instruction":{"type":"string","title":"Instruction","x-order":0,"description":"Describe what should be generated inside the masked region of the source image."}},"x-fal-order-properties":["instruction","image_url","mask_url","seed","steps_num"]},"Output":{"type":"array","items":{"type":"string","format":"uri"},"title":"Output","description":"The generated image files."}}}}