Flux · Capability
Flux Image Editing API
REST API for editing and transforming existing images using Black Forest Labs' FLUX.1 Kontext models. The Kontext models accept an input image and a text prompt describing desired edits, returning a modified image. They support context-aware in-painting, object replacement, style transfer, background changes, and image-to-image transformations while preserving important visual context. Authentication requires an API key in the X-Key header. Requests are asynchronous and require polling for results.
What You Can Do
POST
Editimagekontextpro
— Edit image with FLUX.1 Kontext [pro]
/flux-kontext-pro
POST
Editimagekontextmax
— Edit image with FLUX.1 Kontext [max]
/flux-kontext-max
GET
Geteditresult
— Flux Poll for editing result
/get_result
MCP Tools
editimagekontextpro
Edit image with FLUX.1 Kontext [pro]
editimagekontextmax
Edit image with FLUX.1 Kontext [max]
geteditresult
Flux Poll for editing result
read-only
idempotent