{"info":{"title":"sczhou/codeformer","version":"1.0.0"},"paths":{"/":{"post":{"summary":"CodeFormer","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"codeformer","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Input"}}},"required":true}}},"/health-check":{"get":{"summary":"Healthcheck","responses":{"200":{"content":{"application/json":{"schema":{"title":"Response Healthcheck Health Check Get"}}},"description":"Successful Response"}},"operationId":"healthcheck_health_check_get"}}},"openapi":"3.1.0","components":{"schemas":{"Input":{"type":"object","title":"Input","required":["image_url"],"properties":{"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","x-order":6,"description":"Random seed for reproducible generation."},"aligned":{"type":"boolean","title":"Aligned","default":false,"x-order":4,"description":"Set to true only when the input is an already face-aligned crop; leave false for normal photos so faces are detected and aligned automatically."},"fidelity":{"type":"number","title":"Fidelity","default":0.5,"maximum":1,"minimum":0,"x-order":1,"description":"Balance between restoration quality and identity preservation. Lower values (toward 0) enhance more aggressively; higher values (toward 1) stay closer to the original face."},"image_url":{"type":"string","title":"Image URL","format":"uri","x-order":0,"description":"URL of the photo to restore — works best on faces that are blurry, low-resolution, compressed, scanned, or otherwise degraded."},"face_upscale":{"type":"boolean","title":"Face Upscale","default":true,"x-order":3,"description":"Whether detected faces should be upscaled."},"upscale_factor":{"type":"number","title":"Upscale Factor","default":2,"minimum":1,"x-order":2,"description":"Output enlargement ratio. The whole image is enlarged by this factor."},"only_center_face":{"type":"boolean","title":"Only Center Face","default":false,"x-order":5,"description":"Restore only the central face instead of every detected face."}},"x-fal-order-properties":["image_url","fidelity","upscale_factor","face_upscale","aligned","only_center_face","seed"]},"Output":{"type":"string","title":"Output","format":"uri","description":"URL of the restored, enhanced image."}}}}