Bria AI Edit & Auto Download

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

Image Edit by Text (FIBO)

AI-generated

Summary

Edit an image using a text prompt, poll Bria AI for completion, and auto-download the resulting image.

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.
  • maxRetries — Maximum number of times to poll the status URL.
  • waitTime — Time to wait between polling attempts in milliseconds.

Output shape

Each returned item contains json: finalData (the full Bria AI response) and binary: { data: } for non-structured_instruction operations.

If the operation does not complete within maxRetries, an error is thrown. For the 'edit' operation, the downloaded image is stored as binary data with PNG encoding via prepareBinaryData.

Links

Discussion