You can call FLUX 3 Image for generation and multi-reference editing through AI Gateway with one API key and no Black Forest Labs account, using the model ID bfl/flux-3-image in AI SDK 7 or later.
Key takeaways · AI-distilled
FLUX 3 Image is one model for both text-to-image generation and image editing. On AI Gateway it runs as bfl/flux-3-image with an AI Gateway key, needs no Black Forest Labs account, and requires AI SDK 7 or later.
Editing accepts up to ten reference images, for combining subjects or changing composition. In the AI SDK you pass existing images in prompt.images together with a text instruction.
Output comes in five resolution tiers from 768 x 768 up to 4K, in square, portrait and landscape aspect ratios; the tier is set through the blackForestLabs provider option, for example resolution: '1k'.
The same key and model ID also work from the terminal through AI CLI: install it with npm install -g ai-cli, then run ai image with --model bfl/flux-3-image and an --output directory.