Flux Create (OpenAI dall-e-3 Format)
POST
/v1/images/generations
- Generate images from prompts
- Guide: Image generation
- Official: Images
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
model
string
Model used for image generation.
prompt
string
Required
Text description of the desired image. Maximum length is 1000 characters.
n
integer
Number of images to generate. Must be between 1 and 10.
size
string
Size of the generated image. Must be 256x256, 512x512, or 1024x1024.
quality
string
Quality of the generated image. hd creates images with finer details. Only supported for dall-e-3.
response_format
string
Format of the generated image. Must be url or b64_json.
style
string
Style.
user
string
A unique identifier representing your end user.
aspect_ratio
string
Required
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
created
integer
data
object[]