Models
Generate or edit an image with FLUX.2 [klein] 9B (preview)
Changed onSubmits an image generation or editing task with the FLUX.2 [klein] 9B preview endpoint, where our latest quality and speed improvements land first. For stable production use, prefer FLUX.2 [klein] 9B (/flux-2-klein-9b).
post/v1/flux-2-klein-9b-preview
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
}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