Chỉnh sửa hình ảnh với Bria
Sử dụng Bria Image Editing API qua CometAPI để erase, gen_fill, expand, enhance, upscale hoặc thay thế nền bằng POST /bria/image/edit/.
Tổng quan
Bria’s Image Editing API cung cấp một bộ công cụ toàn diện để chỉnh sửa 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ợ
Ủ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.