Skip to main content
POST
cURL

Обзор

Bria Image Editing API предоставляет полный набор инструментов для обработки и улучшения изображений.
После успешного вызова API используйте возвращённый request_id для запроса результатов через endpoint Query Status.Параметр sync фиксирован для этого интерфейса — указывать его не нужно.

Поддерживаемые операции

Пожалуйста, обращайтесь к официальной документации за списком параметров, относящихся к каждой конкретной операции.

Авторизации

Authorization
string
header
обязательно

Bearer token authentication. Use your CometAPI key.

Заголовки

Content-Type
string

Must be application/json.

Параметры пути

action
string
обязательно

Editing action to perform. Supported values: erase, gen_fill, expand, enhance, increase_resolution, replace_background.

Тело

application/json
image
string

Source image as a public URL or base64-encoded data URI. Accepted formats: JPEG, PNG, WebP. Maximum 12 MB.

mask
string

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.

prompt
string

Text description of the desired edit. Required for gen_fill and replace_background actions.

num_results
integer

Number of result variants to generate. Default: 1.

sync
boolean

When true, the response blocks until results are ready. When false (default), returns immediately with placeholder URLs that can be polled.

Ответ

200 - application/json

Success

The response is of type object.