Bria AI Edit & Auto Download

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

Add Object by Text

AI-generated

Summary

Add an object to an image via text prompt, poll for Bria AI completion, and automatically 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

Item json with final API response data and binary with downloaded image data from the S3 pre-signed URL.

If the operation completes within the retry limit, the returned item contains json (full API response) and binary (image data). If completion fails, an error is thrown or an error JSON is returned based on continueOnFail settings.

Links

Discussion