Skip to main content
POST
Text-to-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-1-kontext-pro
Example:

"flux-1-kontext-pro"

prompt
string
required

Text description of the desired image. Must be in English.

Example:

"A cute baby polar bear"

n
integer
default:1

Number of images to generate. Only 1 is supported.

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

Output image size, e.g. 1024x1024.

Example:

"1024x1024"

output_format
enum<string>

Output image format.

Available options:
jpeg,
png
seed
integer

Random seed for reproducible generation.

Response

Image generated successfully

created
integer

Unix timestamp

Example:

1774002799

data
object[]