Skip to content

Flux Create (OpenAI dall-e-3 Format)

POST
/v1/images/generations

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. Must be 256x256, 512x512, or 1024x1024.

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

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

Style.

A unique identifier representing your end user.

Aspect ratio. Enum values: 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21

Responses

Success

application/json
object
object[]

Playground

Authorization
Body

Samples