{"info":{"title":"openai/gpt-image-2","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Generate","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"gpt_image_2_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":{"prompt":{"type":"string","title":"Prompt","x-order":0,"maxLength":32000,"minLength":2,"description":"The text prompt describing the image to generate. Put any words you want rendered inside the image in quotes."},"image_size":{"$ref":"#/components/schemas/ImageSizeEnum","title":"Image Size","default":"landscape_4_3","x-order":1,"description":"The aspect ratio and framing of the generated image."},"num_images":{"type":"integer","title":"Number of Images","default":1,"maximum":4,"minimum":1,"x-order":2,"description":"The number of images to generate."},"output_format":{"$ref":"#/components/schemas/OutputFormatEnum","title":"Output Format","default":"png","x-order":3,"description":"The format of the generated image."}},"x-fal-order-properties":["prompt","image_size","num_images","output_format"]},"Output":{"type":"array","items":{"type":"string","format":"uri"},"title":"Output","description":"The generated image files."},"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","webp"],"type":"string","title":"OutputFormatEnum","description":"The format of the generated image."}}}}