Skip to main content
POST
/
v3
/
async
/
flux-1-kontext-dev
FLUX.1 Kontext Dev
curl --request POST \
  --url https://api.myrouter.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 that improves prompt adherence and font generation consistency while maintaining efficient speed and suitability for editing tasks.

Request Headers

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

Request Body

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

Response

task_id
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.