| prompt |
string |
A text description of the desired image(s). The maximum length is 1000 characters for DALL-E 2 and 32000 characters for gpt-image-1. |
| model |
string |
The model to use for image generation. Defaults to dall-e-2. |
| n |
integer |
The number of images to generate. Must be between 1 and 10. For DALL-E 3, only n=1 is supported. |
| quality |
string |
The quality of the image. hd creates images with finer details and greater consistency. For gpt-image-1 use low, medium, high, or auto. |
| response_format |
string |
The format in which the generated images are returned. Must be one of url or b64_json. URLs are only valid for 60 minutes. |
| size |
string |
The size of the generated images. Must be one of the supported sizes for the model being used. |
| style |
string |
The style of the generated images. Vivid generates hyper-real and dramatic images. Natural produces more natural, less hyper-real images. Only supported for DALL-E 3. |
| user |
string |
A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. |