{"info":{"title":"stability-ai/stable-diffusion-v3.5-large","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_large_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."},"loras":{"type":"array","items":{"$ref":"#/components/schemas/LoraWeight"},"title":"LoRAs","default":[],"x-order":9,"description":"Optional list of LoRA weights to apply. Each entry references a LoRA path and an optional scale."},"prompt":{"type":"string","title":"Prompt","x-order":0,"description":"The text prompt describing the image to generate."},"controlnet":{"anyOf":[{"$ref":"#/components/schemas/ControlNet"},{"type":"null"}],"title":"ControlNet","x-order":8,"description":"Optional ControlNet conditioning. Provide a control model path and a control image to guide structure/composition."},"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."},"ip_adapter":{"anyOf":[{"$ref":"#/components/schemas/IPAdapter"},{"type":"null"}],"title":"IP-Adapter","x-order":10,"description":"Optional IP-Adapter image prompting. Provide an adapter path and a reference image to condition generation on that image."},"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":3.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":28,"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","controlnet","loras","ip_adapter"]},"Output":{"type":"array","items":{"type":"string","format":"uri"},"title":"Output","description":"The generated image files."},"IPAdapter":{"type":"object","title":"IPAdapter","required":["path","image_encoder_path","image_url","scale"],"properties":{"path":{"type":"string","title":"Path","description":"URL or HuggingFace path to the IP-Adapter weights."},"scale":{"type":"number","title":"Scale","description":"How strongly the IP-Adapter conditioning is applied."},"image_url":{"type":"string","title":"Image URL","format":"uri","description":"URL of the reference image used for IP-Adapter conditioning."},"subfolder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subfolder","description":"Optional subfolder within the IP-Adapter repository."},"weight_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Name","description":"Optional specific weight file name within the IP-Adapter repository."},"mask_image_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}],"title":"Mask Image URL","description":"Optional URL of a mask image restricting where IP-Adapter conditioning applies."},"mask_threshold":{"type":"number","title":"Mask Threshold","default":0.5,"maximum":0.99,"minimum":0.01,"description":"Threshold used to binarize the IP-Adapter mask."},"image_encoder_path":{"type":"string","title":"Image Encoder Path","description":"URL or HuggingFace path to the image encoder."},"image_encoder_subfolder":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Encoder Subfolder","description":"Optional subfolder within the image encoder repository."},"image_encoder_weight_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Encoder Weight Name","description":"Optional specific weight file name within the image encoder repository."}}},"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}}},"ControlNet":{"type":"object","title":"ControlNet","required":["path","control_image_url"],"properties":{"path":{"type":"string","title":"Path","description":"URL or HuggingFace path to the ControlNet model."},"end_percentage":{"type":"number","title":"End Percentage","default":1,"maximum":1,"minimum":0,"description":"Fraction of the denoising process at which ControlNet conditioning ends."},"start_percentage":{"type":"number","title":"Start Percentage","default":0,"maximum":1,"minimum":0,"description":"Fraction of the denoising process at which ControlNet conditioning starts."},"control_image_url":{"type":"string","title":"Control Image URL","format":"uri","description":"URL of the control image that guides the generation."},"conditioning_scale":{"type":"number","title":"Conditioning Scale","default":1,"maximum":2,"minimum":0,"description":"How strongly the ControlNet conditioning is applied."}}},"LoraWeight":{"type":"object","title":"LoraWeight","required":["path"],"properties":{"path":{"type":"string","title":"Path","description":"URL or HuggingFace path to the LoRA weights."},"scale":{"type":"number","title":"Scale","default":1,"maximum":4,"minimum":0,"description":"How strongly the LoRA is applied."}}},"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."}}}}