{"info":{"title":"qwen/qwen-image","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Generate","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"qwen_image_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":{"type":"integer","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. Put any words you want rendered inside the image in quotes."},"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."},"num_images":{"type":"integer","title":"Number of Images","default":1,"maximum":4,"minimum":1,"x-order":2,"description":"The number of images to generate."},"guidance_scale":{"type":"number","title":"Guidance Scale","default":2.5,"maximum":20,"minimum":0,"x-order":4,"description":"The CFG (Classifier Free Guidance) scale. Higher values increase adherence to the prompt."},"num_inference_steps":{"type":"integer","title":"Num Inference Steps","default":30,"maximum":250,"minimum":2,"x-order":3,"description":"The number of inference steps to perform. More steps can improve detail at the cost of speed."}},"x-fal-order-properties":["prompt","image_size","num_images","num_inference_steps","guidance_scale","seed"]},"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}}},"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."}}}}