cURL
TTAPI Format
Flux Image Edits API Documentation
Use the Flux image edits API to modify existing images with prompt-based changes, partial redraws, and visual refinements for production workflows.
POST
cURL
Authorizations
You can obtain your API key from the TTAPI Dashboard.
Body
multipart/form-data
Reference images, supports multiple
Model version
Available options:
flux1-dev, flux1-schnell, 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 Example:
"flux1-dev"
Image description. Note: Flux supports multilingual understanding, but English performs best in testing.
Aspect ratio
Available options:
21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21 Example:
"1:1"
Callback notification URL
Last modified on March 21, 2026