Authentication is done using Bearer Token.
Format: Authorization: Bearer sk-xxxxxx
Control the content-moderation level for images generated by the GPT image models. Must be either low for less restrictive filtering or auto
The number of images to generate. Must be between 1 and 10
The format in which the generated images are returned. This parameter is only supported for the GPT image models. Must be one of png, jpeg, or webp.
The number of partial images to generate. This parameter is used for streaming responses that return partial images. Value must be between 0 and 3. When set to 0, the response will be a single image sent in one streaming event.
The quality of the image that will be generated. auto (default value) will automatically select the best quality for the given model. high, medium and low are supported for the GPT image models. hd and standard are supported for dall-e-3. standard is the only option for dall-e-2.
The format in which generated images with dall-e-2 and dall-e-3 are returned. Must be one of url or b64_json. URLs are only valid for 60 minutes after the image has been generated. This parameter isn't supported for the GPT image models, which always return base64-encoded images.
The size of the generated images. Must be one of 1024x1024, 1536x1024 (landscape), 1024x1536 (portrait), or auto (default value) for the GPT image models, one of 256x256, 512x512, or 1024x1024 for dall-e-2, and one of 1024x1024, 1792x1024, or 1024x1792 for dall-e-3.