Bria AI Edit & Auto Download

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

Replace Object by Text

AI-generated

Summary

Replaces a specified object within the input image using a text prompt. Sends the image and prompt to Bria AI, polls for completion, and returns the generated image as a binary PNG along with the full response data.

Inputs

  • imageUrl (required) — The URL of the image. Alternatively, you can pass a base64 encoded string.
  • instruction (required) — The text prompt describing the object to replace and the replacement.
  • maxRetries — Maximum number of times to poll the status URL.
  • waitTime — Time to wait between polling attempts in milliseconds.

Output shape

Binary image (PNG) under the key data and JSON metadata under json containing the full Bria AI response.

If generation does not complete within maxRetries attempts, the node throws an error.

Examples

Example 1: Replace the foreground object in an image with a 'red robot'.

Set imageUrl to the source image, instruction to 'red robot', leave maxRetries and waitTime at defaults.

Links

Discussion