{"info":{"title":"Upscale Image","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Upscale Image","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"upscale_image","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"],"properties":{"model":{"allOf":[{"$ref":"#/components/schemas/Model"}],"title":"Model","default":"Standard V2","x-order":1,"description":"Model to use for image enhancement."},"image_url":{"type":"string","title":"Image Url","format":"uri","x-order":0,"description":"Url of the image to be upscaled"},"crop_to_fill":{"type":"boolean","title":"Crop To Fill","default":false,"x-order":3},"output_format":{"allOf":[{"$ref":"#/components/schemas/OutputFormat"}],"title":"Output Format","default":"jpeg","x-order":4,"description":"Output format of the upscaled image."},"upscale_factor":{"type":"number","title":"Upscale Factor","default":2,"maximum":4,"minimum":1,"x-order":2,"description":"Factor to upscale the video by (e.g. 2.0 doubles width and height)"},"face_enhancement":{"type":"boolean","title":"Face Enhancement","default":true,"x-order":6,"description":"Whether to apply face enhancement to the image."},"subject_detection":{"allOf":[{"$ref":"#/components/schemas/SubjectDetection"}],"title":"Subject Detection","default":"All","x-order":5,"description":"Subject detection mode for the image enhancement."},"face_enhancement_strength":{"type":"number","title":"Face Enhancement Strength","default":0.8,"maximum":1,"minimum":0,"x-order":8,"description":"Strength of the face enhancement. 0.0 means no enhancement, 1.0 means maximum enhancement. Ignored if face ehnancement is disabled."},"face_enhancement_creativity":{"type":"number","title":"Face Enhancement Creativity","default":0,"maximum":1,"minimum":0,"x-order":7,"description":"Creativity level for face enhancement. 0.0 means no creativity, 1.0 means maximum creativity. Ignored if face ehnancement is disabled."}}},"Model":{"enum":["Low Resolution V2","Standard V2","CGI","High Fidelity V2","Text Refine","Recovery","Redefine","Recovery V2"],"type":"string","title":"Model","description":"Model to use for image enhancement."},"Output":{"type":"string","title":"Output","format":"uri","description":"The upscaled image."},"OutputFormat":{"enum":["jpeg","png"],"type":"string","title":"Output Format","description":"Output format of the upscaled image."},"SubjectDetection":{"enum":["All","Foreground","Background"],"type":"string","title":"Subject Detection","description":"Subject detection mode for the image enhancement."}}}}