Skip to content

Create DALL·E 3

POST
/v1/images/generations
  • Given a prompt and/or input image, the model will generate a new image
  • Guide: Image generation
  • Official documentation: Images

Authorizations

bearer
Type
HTTP (bearer)

Request Body

application/json
object

Model used for image generation.

Text description of the desired image. Maximum length is 1000 characters.

Number of images to generate. Must be between 1 and 10.

Size of the generated image. For dall-e-3: 1024x1024, 1792x1024, or 1024x1792.

Quality of the generated image. hd creates images with finer details and greater consistency. Only supported for dall-e-3.

Format of the generated image. Must be url or b64_json.

Style of the generated image. Only supported for dall-e-3. Must be vivid or natural. vivid tends to produce hyper-real and dramatic images, natural produces more natural-looking images.

A unique identifier representing your end user, which can help OpenAI monitor and detect abuse.

Responses

Success

application/json
object
object[]

Playground

Authorization
Body

Samples