Image Editing
Use Bria Image Editing API via CometAPI to erase, gen_fill, expand, enhance, upscale, or replace backgrounds with POST /bria/image/edit/.
Overview
Bria’s Image Editing API provides a comprehensive suite of tools for manipulating and enhancing images.request_id to query results via the Query Status endpoint.The sync parameter is fixed on this interface — you do not need to specify it.Supported operations
| Operation | Description | Documentation |
|---|---|---|
erase | Remove objects from images | Bria Erase Docs |
gen_fill | Generative fill for masked areas | Bria Gen Fill Docs |
expand | Expand image canvas | Bria Expand Docs |
enhance | Enhance image quality | Bria Enhance Docs |
increase_resolution | Upscale image resolution | Bria Upscale Docs |
replace_background | Replace image background | Bria Background Docs |
Authorizations
Bearer token authentication. Use your CometAPI key.
Headers
Must be application/json.
Path Parameters
Editing action to perform. Supported values: erase, gen_fill, expand, enhance, increase_resolution, replace_background.
Body
Source image as a public URL or base64-encoded data URI. Accepted formats: JPEG, PNG, WebP. Maximum 12 MB.
Mask image as a public URL or base64. White areas mark the region to edit; black areas are preserved. Required for erase, gen_fill, and expand actions.
Text description of the desired edit. Required for gen_fill and replace_background actions.
Number of result variants to generate. Default: 1.
When true, the response blocks until results are ready. When false (default), returns immediately with placeholder URLs that can be polled.
Response
Success
The response is of type object.