Bria AI Edit & Auto Download

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

Rewrite (Text in Image)

AI-generated

Summary

Replaces specified text within an image using Bria AI's rewrite_text endpoint, polls for completion, and returns the modified image as binary data along with the final response metadata.

Inputs

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

Output shape

An item with binary image data and final response metadata.

If the operation completes successfully, the returned item contains the downloaded image as binary data under the 'data' key and the full Bria AI response under 'json'. If the operation fails or exceeds maxRetries, an error is thrown unless continueOnFail is enabled.

Links

Discussion