Skip to main content
POST
Generate an image

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required

model ID

Available options:
flux-2-pro
Example:

"flux-2-pro"

prompt
string
required

Image description text.

Example:

"An adorable polar bear cub"

n
integer
default:1

Number of images to generate.

Required range: 1 <= x <= 4
size
string

Output image size, e.g. 1024x1024. Supports up to 4MP.

Example:

"1024x1024"

output_format
enum<string>

Output image format.

Available options:
jpeg,
png
Example:

"jpeg"

seed
integer

Random seed, used to reproduce generation results.

Response

Image generated successfully

created
integer

Creation timestamp

data
object[]