Flux Kontext
Generate or edit images using Flux Kontext model (async)
- Context Understanding - Modify existing images through text instructions without complex workflows
- Character Consistency - Maintain visual features of characters/objects across multiple scenes
- Local Editing - Precisely modify specific areas of an image without affecting other parts
- Fast Iteration - Generate 1MP images in 3-5 seconds, 8x faster than GPT-Image
Authorizations
Please use your API Token for authentication
Body
Task parameters
Prompt (required, English supported)
1"a beautiful landscape with mountains"
aspect ratio(optional,default 16:9)
auto, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 "16:9"
Enable automatic translation (optional, default true)
true
Input image URL (optional, for edit mode)
"https://example.com/input.jpg"
modelversion(optional,default flux-kontext-pro)
flux-kontext-pro, flux-kontext-max "flux-kontext-pro"
outputformat(optional,default jpeg)
jpeg, png "jpeg"
Enable prompt enhancement (optional, default false)
false
Safety tolerance level (optional, 0-6, default 2)
0 <= x <= 62
Use China mainland server for upload (optional)
false
Watermark identifier (optional)
""
Response
OK
Task ID
"01234567-89ab-cdef-0123-456789abcdef"