{"info":{"title":"black-forest-labs/flux-2/pro","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Generate","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"flux_2_pro_generate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Input"}}},"required":true}}}},"openapi":"3.1.0","components":{"schemas":{"Input":{"type":"object","title":"Input","required":["prompt"],"properties":{"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","x-order":2,"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 text prompt describing the image to generate."},"image_size":{"anyOf":[{"$ref":"#/components/schemas/ImageSize"},{"$ref":"#/components/schemas/ImageSizeEnum"}],"title":"Image Size","default":"landscape_4_3","x-order":1,"description":"The size of the generated image. Use a preset string (e.g. 'landscape_16_9') or a custom {width, height} object."},"output_format":{"allOf":[{"$ref":"#/components/schemas/OutputFormatEnum"}],"title":"Output Format","default":"jpeg","x-order":5,"description":"The format of the generated image."},"safety_tolerance":{"allOf":[{"$ref":"#/components/schemas/SafetyToleranceEnum"}],"title":"Safety Tolerance","default":"2","x-order":3,"description":"The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive."},"enable_safety_checker":{"type":"boolean","title":"Enable Safety Checker","default":true,"x-order":4,"description":"If set to true, the safety checker will be enabled."}},"x-fal-order-properties":["prompt","image_size","seed","safety_tolerance","enable_safety_checker","output_format"]},"Output":{"type":"array","items":{"type":"string","format":"uri"},"title":"Output","description":"The generated image files."},"ImageSize":{"type":"object","title":"ImageSize","properties":{"width":{"type":"integer","title":"Width","default":512,"maximum":2560,"minimum":256,"description":"The width of the generated image.","exclusiveMinimum":0},"height":{"type":"integer","title":"Height","default":512,"maximum":2560,"minimum":256,"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."},"OutputFormatEnum":{"enum":["jpeg","png"],"type":"string","title":"OutputFormatEnum","description":"The format of the generated image."},"SafetyToleranceEnum":{"enum":["1","2","3","4","5"],"type":"string","title":"SafetyToleranceEnum","description":"Safety tolerance level: 1 (most strict) to 5 (most permissive)."}}}}