Authorizations
Please use your API Token for authentication
Body
Task parameters
Prompt (required, supports English)
"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"
Callback URL (optional)
"https://example.com/callback"
Enable auto translation (optional, default true)
true
Input image URL (optional, for editing mode)
"https://example.com/input.jpg"
Model version (optional, default flux-kontext-pro)
flux-kontext-pro, flux-kontext-max "flux-kontext-pro"
Output format (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"