{"info":{"title":"philz1337x/clarity-upscaler","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Clarity Upscaler","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"clarity_upscaler","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","minimum":0},{"type":"null"}],"title":"Seed","x-order":8,"description":"Random seed for reproducible generation."},"prompt":{"type":"string","title":"Prompt","default":"masterpiece, best quality, highres","x-order":1,"description":"Optional prompt that steers the kind of detail Clarity synthesizes while upscaling."},"image_url":{"type":"string","title":"Image URL","format":"uri","x-order":0,"description":"The URL of the image to upscale."},"creativity":{"type":"number","title":"Creativity","default":0.35,"maximum":1,"minimum":0,"x-order":3,"description":"Denoise strength of the sampling: higher values invent more new detail, lower values stay closer to the source."},"resemblance":{"type":"number","title":"Resemblance","default":0.6,"maximum":1,"minimum":0,"x-order":4,"description":"Strength of the ControlNet holding the result to the original structure: higher values stay more faithful to the input."},"guidance_scale":{"type":"number","title":"Guidance Scale","default":4,"maximum":20,"minimum":0,"x-order":5,"description":"Classifier-free guidance scale for the diffusion sampling."},"upscale_factor":{"type":"number","title":"Upscale Factor","default":2,"maximum":4,"minimum":1,"x-order":2,"description":"How much to enlarge the image, from 1x to 4x. Output area and cost scale with this factor squared."},"negative_prompt":{"type":"string","title":"Negative Prompt","default":"(worst quality, low quality, normal quality:2)","x-order":7,"description":"Text describing detail to avoid synthesizing."},"num_inference_steps":{"type":"integer","title":"Num Inference Steps","default":18,"maximum":50,"minimum":4,"x-order":6,"description":"Number of diffusion steps. More steps can add detail at the cost of speed."},"enable_safety_checker":{"type":"boolean","title":"Enable Safety Checker","default":true,"x-order":9,"description":"Whether to run the safety checker on the output."}},"x-fal-order-properties":["image_url","prompt","upscale_factor","creativity","resemblance","guidance_scale","num_inference_steps","negative_prompt","seed","enable_safety_checker"]},"Output":{"type":"string","title":"Output","format":"uri","description":"URL of the upscaled image."}}}}