Models
Edit or create an image with FLUX.1 Kontext [pro]
Changed onSubmits an image creation task with FLUX.1 Kontext [pro]. For image editing, prefer FLUX.2 [pro] (/flux-2-pro) or FLUX.2 [flex] (/flux-2-flex) which are the recommended default models for editing workflows.
post/v1/flux-kontext-pro
Request
- Base URLhttps://api.bfl.ai
- AuthAPI key in header x-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"prompt": "ein fantastisches bild",
"seed": 42,
"safety_tolerance": 2
}Response
Successful Response
Changes
- breaking
added the pattern
^[^\x00]*$to the request property/
- breaking
- info
added the new optional request property
- info