Skip to main content
POST
Generate image

Authorizations

Authorization
string
header
required

Bearer authentication using API key

Body

application/json

Request payload

Request format for image generation models

aspect_ratio
enum<string>
required

Aspect ratio

Available options:
1:1,
16:9,
9:16,
4:3,
3:4,
3:2,
2:3,
4:5,
5:4,
21:9,
9:21,
2:1,
1:2
model
enum<string>
required

Model name to use for the request

Available options:
black-forest-labs/flux-kontext-t2i-max
prompt
string
required

Text prompt for generation

seed
integer

Random seed for generation

Required range: -1 <= x <= 9999999999

Response

200 - application/json

Successful response

Standard async task creation response

code
string
required

Status code returned by the service

Example:

"success"

data
object
required

Response payload containing task details

message
string
required

Additional information about the request result