Bria AI Edit & Auto Download

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

Sketch to Image

AI-generated

Summary

Convert a sketch image into a generated image using a text prompt, with automatic status polling and download.

Inputs

  • imageUrl (required) — The URL of the sketch image. Alternatively, a base64 encoded string.
  • instruction (required) — The text prompt describing the desired output from the sketch.
  • maxRetries — Maximum number of times to poll the status URL.
  • waitTime — Time to wait between polling attempts in milliseconds.

Output shape

Each workflow item carries two fields:

json: the final Bria AI response object after generation completes. binary: the generated image as PNG binary data stored under the key 'data'. If generation does not complete within maxRetries, an error is thrown and the workflow stops (unless continueOnFail is enabled).

Examples

Example 1: Generate a colored illustration from a line-drawn sketch.

Set imageUrl to the sketch URL, instruction to 'colorful watercolor style', leave maxRetries and waitTime at defaults.

Links

Discussion