{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"prompt":{"type":"string","maxLength":32000,"description":"Text description of the image, or of the edit when images are given, up to 32,000 characters. Refer to reference images by their order, e.g. \"image 1\"."},"images":{"description":"Reference images for image editing and multi-reference generation, 1 to 16: https URLs or data:image/<format>;base64 URIs (JPG, PNG, WEBP, HEIC or HEIF; 128 to 8192 px per side; long side at most 4x the short side). When set, the request is an image edit.","minItems":1,"maxItems":16,"type":"array","items":{"type":"string","minLength":1}},"n":{"default":1,"description":"Number of images to generate, 1 to 10","type":"integer","minimum":1,"maximum":10},"size":{"description":"Exact output size as WIDTHxHEIGHT, e.g. 2720x1536: area 655,360 to 20,000,000 pixels, aspect ratio between 1:3 and 3:1. Cannot be combined with aspect_ratio or area.","type":"string"},"aspect_ratio":{"description":"Output aspect ratio when size is not set: auto (default, chosen from the prompt) or X:Y with X and Y from 1 to 300, between 1:3 and 3:1, e.g. 16:9 or 21:9","type":"string"},"area":{"description":"Output area level when size is not set, targeting 1024x1024, 2048x2048 or 4096x4096 pixels at the chosen aspect ratio. Defaults to 4K.","type":"string","enum":["1K","2K","4K"]},"disable_prompt_enhanced":{"description":"Text-to-image only: use the prompt as written instead of the enhanced prompt. Requires size or an X:Y aspect_ratio.","type":"boolean"},"output_format":{"description":"Output image format. Defaults to jpeg.","type":"string","enum":["jpeg","png","webp"]},"output_compression":{"description":"JPEG or WEBP quality, 0 to 100 (default 95); ignored for png","type":"integer","minimum":0,"maximum":100}},"required":["prompt","n"],"additionalProperties":false}