画像編集
CometAPI 経由で Bria Image Editing 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 の Image Editing API は、画像の編集と強化のための包括的なツール群を提供します。request_id を使用して、Query Status エンドポイント経由で結果を照会してください。このインターフェースでは sync パラメータは固定されているため、指定する必要はありません。サポートされる操作
| Operation | Description | Documentation |
|---|---|---|
erase | 画像からオブジェクトを削除 | Bria Erase Docs |
gen_fill | マスクされた領域に対する生成補完 | Bria Gen Fill Docs |
expand | 画像キャンバスを拡張 | Bria Expand Docs |
enhance | 画像品質を向上 | Bria Enhance Docs |
increase_resolution | 画像解像度をアップスケール | Bria Upscale Docs |
replace_background | 画像の背景を置換 | Bria Background Docs |
承認
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.