Chỉnh sửa hình ảnh
Sử dụng API Chỉnh sửa hình ảnh Bria qua CometAPI để xóa, gen_fill, mở rộng, cải thiện, nâng cấp độ phân giải hoặc thay thế nền bằng 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.
Tổng quan
API Chỉnh sửa hình ảnh của Bria cung cấp một bộ công cụ toàn diện để thao tác và nâng cao chất lượng hình ảnh.request_id được trả về để truy vấn kết quả qua endpoint Query Status.Tham số sync được cố định trên giao diện này — bạn không cần chỉ định nó.Các thao tác được hỗ trợ
| Thao tác | Mô tả | Tài liệu |
|---|---|---|
erase | Xóa đối tượng khỏi hình ảnh | Bria Erase Docs |
gen_fill | Tô sinh nội dung cho các vùng được mask | Bria Gen Fill Docs |
expand | Mở rộng khung vẽ hình ảnh | Bria Expand Docs |
enhance | Cải thiện chất lượng hình ảnh | Bria Enhance Docs |
increase_resolution | Nâng cấp độ phân giải hình ảnh | Bria Upscale Docs |
replace_background | Thay thế nền hình ảnh | Bria Background Docs |
Ủy quyền
Bearer token authentication. Use your CometAPI key.
Tiêu đề
Must be application/json.
Tham số đường dẫn
Editing action to perform. Supported values: erase, gen_fill, expand, enhance, increase_resolution, replace_background.
Nội dung
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.
Phản hồi
Success
The response is of type object.