Edit gambar dengan Bria
Gunakan Bria Image Editing API melalui CometAPI untuk erase, gen_fill, expand, enhance, upscale, atau mengganti background dengan POST /bria/image/edit/.
Ringkasan
Image Editing API dari Bria menyediakan rangkaian alat yang komprehensif untuk memanipulasi dan meningkatkan kualitas gambar.request_id yang dikembalikan untuk meminta hasil melalui endpoint Query Status.Parameter sync bersifat tetap pada antarmuka ini — Anda tidak perlu menentukannya.Operasi yang didukung
Otorisasi
Bearer token authentication. Use your CometAPI key.
Header
Must be application/json.
Parameter Path
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.
Respons
Success
The response is of type object.