{"info":{"title":"stability-ai/stable-diffusion-v3.5-medium","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Generate","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"stable_diffusion_v35_medium_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":5,"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."},"auto_fix":{"type":"boolean","title":"Auto Fix","default":true,"x-order":8,"description":"Automatically resize incompatible custom dimensions to the nearest supported size."},"image_size":{"anyOf":[{"$ref":"#/components/schemas/ImageSize"},{"$ref":"#/components/schemas/image_size_enum"}],"title":"Image Size","default":"landscape_4_3","x-order":1,"description":"The size of the generated image. Choose a preset (e.g. 'square_hd', 'portrait_16_9') or pass a custom {width, height} object."},"output_format":{"allOf":[{"$ref":"#/components/schemas/OutputFormatEnum"}],"title":"Output Format","default":"jpeg","x-order":6,"description":"The format of the generated image."},"guidance_scale":{"type":"number","title":"Guidance Scale","default":4.5,"maximum":20,"minimum":0,"x-order":3,"description":"The CFG (Classifier Free Guidance) scale. Higher values increase adherence to the prompt."},"negative_prompt":{"type":"string","title":"Negative Prompt","default":"","x-order":4,"description":"Describe what you do NOT want to appear in the image."},"num_inference_steps":{"type":"integer","title":"Num Inference Steps","default":40,"maximum":50,"minimum":1,"x-order":2,"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_size","num_inference_steps","guidance_scale","negative_prompt","seed","output_format","enable_safety_checker","auto_fix"]},"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":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}}},"image_size_enum":{"enum":["square_hd","square","portrait_4_3","portrait_16_9","landscape_4_3","landscape_16_9"],"type":"string","title":"image_size_enum","description":"Predefined image sizes."},"OutputFormatEnum":{"enum":["jpeg","png"],"type":"string","title":"OutputFormatEnum","description":"The format of the generated image."}}}}