Bria AI Edit & Auto Download

Autonomously executes Bria AI operations, polls the status, and downloads the generated image

Crop out Foreground

AI-generated

Summary

Crop the foreground of an image via Bria AI and return the resulting image as binary data.

Inputs

  • main (required) — The input item carrying the image URL via the imageUrl parameter.

Output shape

array

Returns an array of items. Each item contains json with the final API response metadata and binary with the cropped foreground image data prepared as image/png.

Examples

Example 1: Basic foreground crop

Provide an imageUrl and leave maxRetries and waitTime at their defaults. The node polls the Bria AI status endpoint until the crop operation completes, then returns the resulting image as binary data alongside response metadata.

Links

Discussion