Skip to main content
POST
FLUX.1 Kontext Dev
FLUX.1 Kontext Dev is a model that improves prompt adherence and font generation consistency while maintaining efficient speed and suitability for editing tasks.

Request Headers

string
required
Enum: application/json
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

string
required
The prompt used for image generation.
string[]
List of images used for image generation. Supports up to 4 images.
boolean
Whether to enable fast mode. When enabled, generation is faster but quality may be reduced and the price is lower.Default: false.
string
Size of the generated media (in pixels, width*height). Each dimension range: [256 ~ 1536].
integer
Number of inference steps. Default: 28. Range: [1 ~ 50].
number
Guidance scale for controlling generation. Default: 2.5. Range: [1.0 ~ 20.0].
integer
Number of images to generate. Default: 1. Range: [1 ~ 4].
integer
Random seed. Default: -1, where -1 means use a random seed. Range: [-1 ~ 2147483647].
string
Format of the output image. Default: jpeg.
Options: jpeg, png, webp

Response

string
required
The task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.