AI Gateway

FLUX.1 Fill [pro]

bfl/flux-pro-1.0-fill

A state-of-the-art inpainting model, enabling editing and expansion of real and generated images given a text description and a binary mask. 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.0-fill',
prompt: 'A red balloon on a wooden table.'
});