Image Editing
/- Sketch to Image
Image Edit by Text
Generate Structured Instruction
Add Object by Text
Replace Object by Text
Erase Object by Text
Image Blending
Reseason Image
Rewrite
Restore Old Images
Colorize
Restyle Image
Relight Image
Eraser
Generative Fill
Remove Background
Replace Background
Erase Foreground
Blur Background
Expand Image
Enhance Image
Increase Resolution
Crop out foreground
Sketch to Image
Description
Convert a line drawing or sketch into a photorealistic colored image.
| Input Image | Output Image |
|---|---|
![]() | ![]() |
The source image to be handled by the API.
Supported input types:
- Base64-encoded string - URL pointing to an image file that is publicly accessible and available at the time of processing.
Accepted formats: JPEG, JPG, PNG, WEBP.
Optional URL for receiving the result via webhook when the async job completes. See Webhooks.
POST
curl -i -X POST \
https://engine.prod.bria-api.com/v2/image/edit/sketch_to_colored_image \
-H 'Content-Type: application/json' \
-H 'api_token: string' \
-d '{
"image": "string",
"webhook_url": "http://example.com"
}'Response
{ "result": { "image_url": "string", "seed": 0, "structured_instruction": "string" }, "request_id": "string", "warning": "string" }

.png)