Skip to content

Create gpt-image-2-all

POST
/v1/images/generations
  • Generate or composite images from prompt and reference image URL list image (gpt-image-2-all)
  • Up to 5 reference image URLs
  • Request body is application/json
  • Official docs: Images create

Authorizations

bearer
Type
HTTP (bearer)

Request Body

application/json
object

Model used to generate images.

Size of the generated image. For GPT image models, must be 1024x1024, 1536x1024 (landscape), or 1024x1536 (portrait).

Number of images to generate.

A text description of the desired image.

Reference images to edit or composite. Up to 5 image URLs.

Responses

application/json
object
object[]
Required

Playground

Authorization
Body

Samples