{"info":{"title":"qwen/qwen-image-edit","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Edit","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"qwen_image_edit","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Input"}}},"required":true}}}},"openapi":"3.1.0","components":{"schemas":{"Input":{"type":"object","title":"Input","required":["prompt","image_url"],"properties":{"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","x-order":6,"description":"The same seed and the same prompt given to the same version of the model will output the same image every time."},"prompt":{"type":"string","title":"Prompt","x-order":0,"description":"The edit instruction describing the change to apply to the input image. To edit text in the image, quote the exact replacement words."},"image_url":{"type":"string","title":"Image URL","format":"uri","x-order":1,"description":"The URL of the image to edit."},"image_size":{"anyOf":[{"$ref":"#/components/schemas/ImageSize"},{"$ref":"#/components/schemas/ImageSizeEnum"}],"title":"Image Size","x-order":2,"description":"The size of the edited image. Leave unset to preserve the input image's dimensions, or use a preset string (e.g. 'landscape_16_9') or a custom {width, height} object."},"num_images":{"type":"integer","title":"Num Images","default":1,"maximum":4,"minimum":1,"x-order":11,"description":"The number of images to generate. Each generated image is billed."},"acceleration":{"allOf":[{"$ref":"#/components/schemas/AccelerationEnum"}],"title":"Acceleration","default":"regular","x-order":10,"description":"Acceleration level for image editing. Options: 'none', 'regular', 'high'. Higher acceleration increases speed."},"output_format":{"allOf":[{"$ref":"#/components/schemas/OutputFormatEnum"}],"title":"Output Format","default":"png","x-order":8,"description":"The format of the edited image."},"guidance_scale":{"type":"number","title":"Guidance Scale","default":4,"maximum":20,"minimum":0,"x-order":4,"description":"The CFG (Classifier Free Guidance) scale. Higher values increase adherence to the prompt."},"negative_prompt":{"type":"string","title":"Negative Prompt","default":" ","x-order":9,"description":"The negative prompt to use. Use it to address details that you don't want in the image."},"num_inference_steps":{"type":"integer","title":"Num Inference Steps","default":30,"maximum":50,"minimum":2,"x-order":3,"description":"The number of inference steps to perform. More steps can improve detail at the cost of speed."},"enable_safety_checker":{"type":"boolean","title":"Enable Safety Checker","default":true,"x-order":7,"description":"If set to true, the safety checker will be enabled."}},"x-fal-order-properties":["prompt","image_url","image_size","num_inference_steps","guidance_scale","seed","enable_safety_checker","output_format","negative_prompt","acceleration","num_images"]},"Output":{"type":"array","items":{"type":"string","format":"uri"},"title":"Output","description":"The edited image files."},"ImageSize":{"type":"object","title":"ImageSize","properties":{"width":{"type":"integer","title":"Width","default":512,"maximum":14142,"description":"The width of the generated image.","exclusiveMinimum":0},"height":{"type":"integer","title":"Height","default":512,"maximum":14142,"description":"The height of the generated image.","exclusiveMinimum":0}}},"ImageSizeEnum":{"enum":["square_hd","square","portrait_4_3","portrait_16_9","landscape_4_3","landscape_16_9"],"type":"string","title":"ImageSizeEnum","description":"Predefined image sizes."},"AccelerationEnum":{"enum":["none","regular","high"],"type":"string","title":"AccelerationEnum","description":"The acceleration level to use."},"OutputFormatEnum":{"enum":["jpeg","png"],"type":"string","title":"OutputFormatEnum","description":"The format of the generated image."}}}}