Flux Image Generation API Documentation
Use the Flux image generation API to create high-quality images from text prompts for creative, product, and automated visual workflows.
Authorizations
You can obtain your API key from the TTAPI Dashboard.
Body
Note: The synchronous response from the Flux image generation endpoint is not the final result of the task. The final result needs to be received via asynchronous notification using the hookUrl parameter, or by querying through the Flux fetch task result [blocked] endpoint.
Image description. Note: Flux supports multilingual understanding, but English performs best in testing.
Model version
flux1-dev, flux1-pro, flux-kontext-pro, flux-kontext-max, flux-2-pro, flux-2-flex, flux-2-max, flux-2-klein-4b, flux-2-klein-9b "flux1-dev"
Image size
1024x1024, 1024x1792, 1792x1024 "1024x1024"
Aspect ratio
21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21 "1:1"
Callback notification URL