Actions23
- Add Object by Text
- Blend Images
- Blur Background
- Colorize
- Crop out Foreground
- Enhance Image
- Erase (Mask-based)
- Erase Foreground
- Erase Object by Text
- Expand Image (Outpainting)
- Generate Structured Instruction
- Generative Fill
- Image Edit by Text (FIBO)
- Increase Resolution (Upscaling)
- Relight Image
- Remove Background
- Replace Background
- Replace Object by Text
- Reseason Image
- Restore Old Images
- Restyle Image
- Rewrite (Text in Image)
- Sketch to Image
Generative Fill
AI-generatedSummary
Generate a completed image via Bria AI's generative fill endpoint, polling for status and returning the result as binary image data with response metadata.
Inputs
- imageUrl (required) — The URL of the image. Alternatively, you can pass a base64 encoded string.
- instruction (required) — The text prompt, instruction, color, season, or style to apply.
- mask (required) — The URL of the mask image (white=erase, black=keep).
- version — Version of the generative fill model, default 2.
- maxRetries — Maximum number of times to poll the status URL, default 30.
- waitTime — Time to wait between polling attempts in milliseconds, default 3000.
Output shape
items with json and binary fields
Returns the final Bria AI response object as json and the generated image as PNG binary data under the 'data' key. Throws if generation does not complete within maxRetries.