Skip to main content
POST
/
v3
/
async
/
flux-1-kontext-dev
FLUX.1 Kontext Dev
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/flux-1-kontext-dev \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "prompt": "<string>",
  "images": [
    "<string>"
  ],
  "fast_mode": true,
  "size": "<string>",
  "num_inference_steps": 123,
  "guidance_scale": 123,
  "num_images": 123,
  "seed": 123,
  "output_format": "<string>"
}
'
{
  "task_id": "<string>"
}
FLUX.1 Kontext Dev is a model designed for editing needs, maintaining high efficiency and speed while improving prompt adherence and font generation consistency.

Request Headers

Content-Type
string
required
Enum value: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

prompt
string
required
The prompt used to generate the image.
images
string[]
A list of images used to generate the image. Supports up to 4 images.
fast_mode
boolean
Whether to enable ultra-fast mode. When enabled, generation is faster, but quality may be reduced and the price is lower.Default value: false.
size
string
The size of the generated media (pixels, width*height). Range for each dimension: [256 ~ 1536].
num_inference_steps
integer
Number of inference steps. Default value is 28. Value range: [1 ~ 50].
guidance_scale
number
Guidance scale, used to control generation. Default value is 2.5. Value range: [1.0 ~ 20.0].
num_images
integer
The number of images to generate. Default value is 1. Value range: [1 ~ 4].
seed
integer
Random seed. Default value is -1; -1 indicates using a random seed. Value range: [-1 ~ 2147483647].
output_format
string
The output image format. Default value is jpeg.
Options: jpeg, png, webp

Response Information

task_id
string
required
The task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to retrieve the generation result.