{"info":{"title":"black-forest-labs/flux-kontext/pro","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Edit Image","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"flux_kontext_pro_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":8,"description":"Random seed. The same seed, prompt, and image produce the same result."},"prompt":{"type":"string","title":"Prompt","x-order":0,"description":"The edit instruction. Describe the change to apply to the source image (e.g. 'put a donut next to the flour') and name anything that should stay the same."},"image_url":{"type":"string","title":"Image URL","format":"uri","x-order":1,"minLength":1,"description":"The source image to edit. Unmentioned regions are kept consistent while the described change is applied."},"num_images":{"type":"integer","title":"Num Images","default":1,"maximum":4,"minimum":1,"x-order":3,"description":"The number of edited image variations to generate. Each generated image is billed separately."},"aspect_ratio":{"anyOf":[{"$ref":"#/components/schemas/AspectRatioEnum"},{"type":"null"}],"title":"Aspect Ratio","x-order":4,"description":"Force the output aspect ratio. Leave unset to match the source image's aspect ratio."},"output_format":{"allOf":[{"$ref":"#/components/schemas/OutputFormatEnum"}],"title":"Output Format","default":"jpeg","x-order":6,"description":"The format of the generated image."},"enhance_prompt":{"type":"boolean","title":"Enhance Prompt","default":false,"x-order":7,"description":"Whether to automatically enhance the prompt for potentially better results."},"guidance_scale":{"type":"number","title":"Guidance Scale","default":3.5,"maximum":20,"minimum":1,"x-order":2,"description":"How strongly the result follows the edit instruction. Raise for stronger adherence; lower if the edit looks over-applied."},"safety_tolerance":{"allOf":[{"$ref":"#/components/schemas/SafetyToleranceEnum"}],"title":"Safety Tolerance","default":"2","x-order":5,"description":"Content-moderation strictness from '1' (strictest) to '6' (most permissive)."}},"x-fal-order-properties":["prompt","image_url","guidance_scale","num_images","aspect_ratio","safety_tolerance","output_format","enhance_prompt","seed"]},"Output":{"type":"array","items":{"type":"string","format":"uri"},"title":"Output","description":"The edited image files."},"AspectRatioEnum":{"enum":["21:9","16:9","4:3","3:2","1:1","2:3","3:4","9:16","9:21"],"type":"string","title":"AspectRatioEnum","description":"The output aspect ratio."},"OutputFormatEnum":{"enum":["jpeg","png"],"type":"string","title":"OutputFormatEnum","description":"The format of the generated image."},"SafetyToleranceEnum":{"enum":["1","2","3","4","5","6"],"type":"string","title":"SafetyToleranceEnum","description":"Content-moderation strictness level."}}}}