图像编辑
通过 CometAPI 使用 Bria 图像编辑 API,借助 POST /bria/image/edit/ 执行 erase、gen_fill、expand、enhance、upscale 或替换背景。
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.
概述
Bria 的图像编辑 API 提供了一套全面的工具,用于处理和增强图像。request_id 通过 查询状态 端点查询结果。此接口中的 sync 参数是固定的——你无需指定它。支持的操作
| 操作 | 描述 | 文档 |
|---|---|---|
erase | 从图像中移除对象 | Bria Erase 文档 |
gen_fill | 对蒙版区域进行生成式填充 | Bria Gen Fill 文档 |
expand | 扩展图像画布 | Bria Expand 文档 |
enhance | 提升图像质量 | Bria Enhance 文档 |
increase_resolution | 提高图像分辨率 | Bria Upscale 文档 |
replace_background | 替换图像背景 | Bria Background 文档 |
授权
Bearer token authentication. Use your CometAPI key.
请求头
Must be application/json.
路径参数
Editing action to perform. Supported values: erase, gen_fill, expand, enhance, increase_resolution, replace_background.
请求体
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.
响应
Success
The response is of type object.