Generate or edit images using the Flux Dev model based on text prompts. Official documentation
You can obtain your API key from the TTAPI Dashboard.
Image description. Note: Flux supports multilingual understanding, but English performs best in testing.
Reference image, base64 encoded
Width of generated image. Range: 256-1440, must be a multiple of 32. Default: 1024
Height of generated image. Range: 256-1440, must be a multiple of 32. Default: 768
Random seed
Output format
jpeg, png "jpeg"
Whether to enable prompt upsampling. true - yes, false - no
false, true "false"
Safety tolerance level for input and output adjustment. Range: 0-6, where 0 is strictest and 6 is most permissive. Default: 2
"2"
Number of steps in image generation process. Range: 1-50. Default: 40
"40"
Guidance scale for image generation. Higher guidance increases prompt adherence at the cost of realism. Range: 1.5-5. Default: 2.5
"2.5"
Asynchronous callback URL