{"info":{"title":"openai/gpt-image-2/edit","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Edit","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Output"}}},"description":"Successful Response"}},"operationId":"gpt_image_2_edit","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Input"}}},"required":true}}}},"openapi":"3.1.0","components":{"schemas":{"Input":{"type":"object","title":"Input","required":["prompt","image_urls"],"properties":{"prompt":{"type":"string","title":"Prompt","x-order":0,"maxLength":32000,"minLength":2,"description":"The text prompt describing the edits to apply to the reference image(s). Put any words you want rendered inside the image in quotes."},"mask_url":{"type":"string","title":"Mask URL","format":"uri","x-order":3,"description":"Optional inpainting mask constraining which region of the image is edited. White areas mark where changes are allowed."},"image_size":{"$ref":"#/components/schemas/ImageSizeEnum","title":"Image Size","default":"landscape_4_3","x-order":2,"description":"The aspect ratio and framing of the edited image."},"image_urls":{"type":"array","items":{"type":"string","format":"uri"},"title":"Image URLs","x-order":1,"description":"One or more reference images to edit (up to 16). Elements from multiple images can be combined into a single edited result."},"num_images":{"type":"integer","title":"Number of Images","default":1,"maximum":4,"minimum":1,"x-order":4,"description":"The number of images to generate."},"output_format":{"$ref":"#/components/schemas/OutputFormatEnum","title":"Output Format","default":"png","x-order":5,"description":"The format of the generated image."}},"x-fal-order-properties":["prompt","image_urls","image_size","mask_url","num_images","output_format"]},"Output":{"type":"array","items":{"type":"string","format":"uri"},"title":"Output","description":"The edited 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."}}}}