AI Gateway

FLUX1.1 [pro]

bfl/flux-pro-1.1

FLUX1.1 [pro] is the standard for text-to-image generation with fast, reliable and consistently stunning results. This provider gives the option to change the moderation level for inputs and outputs. The control is under safety tolerance and is by default 2 on a range from 0 (more strict) through 6 (more permissive).

index.ts
import { experimental_generateImage as generateImage } from 'ai';
const result = await generateImage({
model: 'bfl/flux-pro-1.1',
prompt: 'A red balloon on a wooden table.'
});