Actions23
- Add Object by Text
- Blend Images
- Blur Background
- Colorize
- Crop out Foreground
- Enhance Image
- Erase (Mask-based)
- Erase Foreground
- Erase Object by Text
- Expand Image (Outpainting)
- Generate Structured Instruction
- Generative Fill
- Image Edit by Text (FIBO)
- Increase Resolution (Upscaling)
- Relight Image
- Remove Background
- Replace Background
- Replace Object by Text
- Reseason Image
- Restore Old Images
- Restyle Image
- Rewrite (Text in Image)
- Sketch to Image
Sketch to Image
AI-generatedSummary
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.