Generate or edit images using Flux Kontext model (async)
Generate and edit images using Black Forest Labs’ FLUX.1 Kontext model with context-aware capabilities. Key Features:Documentation Index
Fetch the complete documentation index at: https://docs.sinancode.com/llms.txt
Use this file to discover all available pages before exploring further.
Please use your API Token for authentication
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)
""
OK
Task ID
"01234567-89ab-cdef-0123-456789abcdef"