{"info":{"title":"hidream/i1-full","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Generate","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"hidream_i1_full_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":6,"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."},"prompt":{"type":"string","title":"Prompt","x-order":0,"description":"The prompt to generate an image from."},"image_size":{"anyOf":[{"$ref":"#/components/schemas/ImageSize"},{"$ref":"#/components/schemas/ImageSizeEnum"}],"title":"Image Size","default":"square_hd","x-order":1,"description":"The size of the generated image."},"num_images":{"type":"integer","title":"Num Images","default":1,"maximum":4,"minimum":1,"x-order":2,"description":"The number of images to generate. Each generated image is billed."},"output_format":{"allOf":[{"$ref":"#/components/schemas/OutputFormatEnum"}],"title":"Output Format","default":"jpeg","x-order":3,"description":"The format of the generated image."},"guidance_scale":{"type":"number","title":"Guidance Scale","default":5,"maximum":20,"minimum":0,"x-order":7,"description":"The CFG 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":50,"maximum":50,"minimum":1,"x-order":5,"description":"The number of inference steps to perform."},"enable_safety_checker":{"type":"boolean","title":"Enable Safety Checker","default":true,"x-order":8,"description":"If set to true, the safety checker will be enabled."}},"x-fal-order-properties":["prompt","image_size","num_images","output_format","negative_prompt","num_inference_steps","seed","guidance_scale","enable_safety_checker","loras"]},"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}}},"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."},"weight_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Weight Name","description":"Optional specific weight file name within the LoRA repository."}}},"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."}}}}