Skip to main content
It is compatible with the official format and can be called directly using the official format. Please check directlyofficial documentation
curl --request POST \
--url https://BASE_URL/flux/v1/flux-kontext-pro \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer API_KEY' \
--data '{
"prompt": "a fantastic picture",
"input_image": "<string>",
"input_image_2": "<string>",
"input_image_3": "<string>",
"input_image_4": "<string>",
"seed": 42,
"aspect_ratio": "<string>",
"output_format": "jpeg",
"webhook_url": "<string>",
"webhook_secret": "<string>",
"prompt_upsampling": false,
"safety_tolerance": 2
}'
  1. need to be inBASE_URLadded after/flux
  2. The flux model is also compatible withOpenAI生图接口