Pengeditan gambar
Gunakan Bria Image Editing API melalui CometAPI untuk menghapus, gen_fill, memperluas, meningkatkan, upscale, atau mengganti latar belakang dengan POST /bria/image/edit/.
Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
Ringkasan
Bria’s Image Editing API menyediakan rangkaian alat yang komprehensif untuk memanipulasi dan meningkatkan gambar.request_id yang dikembalikan untuk mengambil hasil melalui endpoint Query Status.Parameter sync bersifat tetap pada antarmuka ini — Anda tidak perlu menentukannya.Operasi yang didukung
| Operation | Description | Documentation |
|---|---|---|
erase | Menghapus objek dari gambar | Bria Erase Docs |
gen_fill | Generative fill untuk area yang dimask | Bria Gen Fill Docs |
expand | Memperluas kanvas gambar | Bria Expand Docs |
enhance | Meningkatkan kualitas gambar | Bria Enhance Docs |
increase_resolution | Meningkatkan resolusi gambar | Bria Upscale Docs |
replace_background | Mengganti latar belakang gambar | Bria Background Docs |
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.