- Text-to-image — POST JSON to
/v1/images/generations - Image editing — POST multipart form data to
/v1/images/edits
Key capabilities
- Image editing — Modify existing images with text instructions (e.g. “change the red car to blue”)
- Text-to-image — Generate images from text prompts
- Context-aware — Understands and preserves context from the reference image
- Reproducible — Use
seedfor deterministic generation
Quick example
Text-to-image
Image editing
Text-to-image parameters
Image editing parameters
Response
API Reference
View the interactive API playground for FLUX.1 Kontext [pro].