FLUX.1 Kontext dev is a model with greatly improved prompt adherence and typography generation meet premium consistency for editing without compromise on speed.
Bearer authentication format, for example: Bearer {{API Key}}.
Request Body
The prompt to generate an image from.
The images to generate an image from. Limit to a maximum of 4 images.
Whether to enable fast mode, which will generate videos more quickly but may reduce quality and lower the price.Default: false.
The size of the generated media in pixels (width*height). Range [256 ~ 1536 per dimension].
The number of inference steps to perform. Default is 28. Range [1 ~ 50].
The guidance scale to use for the generation. Default is 2.5. Range [1.0 ~ 20.0].
The number of images to generate. Default is 1. Range [1 ~ 4].
The random seed to use for the generation. Default is -1. -1 means a random seed will be used. Range [-1 ~ 2147483647].
The format of the output image. Default is jpeg.
Enum: jpeg, png, webp
Response
Use the task_id to request the Task Result API to retrieve the generated outputs.