Models
Generate or edit an image with FLUX.2 [flex]
Changed onSubmits an image generation or editing task with FLUX.2 [flex]. Specialized for typography and text rendering, and for preserving small details. Supports text-to-image and image-to-image editing workflows.
post/v1/flux-2-flex
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,
"guidance": 5,
"steps": 50
}Response
Successful Response
Changes
- breaking
added the pattern
^[^\x00]*$to the request property/
- breaking
- info
the
request property's max was increased from5.00to7.00
- info