Skip to content

Create gpt-image-1.5

POST
/v1/images/generations
  • Generate images from a text prompt (gpt-image-1.5)
  • Supports setting the number of images n and output size size
  • Request body is application/json
  • Official docs: Images create

Authorizations

bearer
Type
HTTP (bearer)

Request Body

application/json
object

Model used to generate images, e.g. gpt-image-1.5.

A text description of the desired image. Maximum length is 1000 characters.

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

Generated image size. For GPT image models, must be one of 1024x1024, 1536x1024 (landscape), 1024x1536 (portrait), or auto (default). For dall-e-2 must be one of 256x256, 512x512, or 1024x1024. For dall-e-3 must be one of 1024x1024, 1792x1024, or 1024x1792.

Responses

application/json
object
object[]
Required
object
Required

Playground

Authorization
Body

Samples