Edytuj obrazy za pomocą Bria
Użyj Bria Image Editing API przez CometAPI, aby usuwać, gen_fill, expand, enhance, upscale lub zastępować tła za pomocą POST /bria/image/edit/.
Przegląd
Bria Image Editing API zapewnia kompleksowy zestaw narzędzi do modyfikowania i ulepszania obrazów.request_id, aby pobrać wyniki za pośrednictwem endpointu Query Status.Parametr sync jest na tym interfejsie ustawiony na stałe — nie musisz go podawać.Obsługiwane operacje
Autoryzacje
Bearer token authentication. Use your CometAPI key.
Nagłówki
Must be application/json.
Parametry ścieżki
Editing action to perform. Supported values: erase, gen_fill, expand, enhance, increase_resolution, replace_background.
Treść
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.
Odpowiedź
Success
The response is of type object.