Editing
Crop out foreground
Changed onDescription
The Crop Route is used to remove the background from an image and crop tightly around the foreground or remaining region of interest. It supports both images with and without a background.
Content Moderation
This endpoint includes granular content moderation controls to ensure safe usage across all stages of processing:
- Input Image Moderation – Scans the uploaded image and stops processing if inappropriate or restricted content is detected.
- Output Image Moderation – Evaluates the generated image and blocks the response if it violates safety guidelines.
post/crop_foreground
Request
- Base URL: https://engine.prod.bria-api.com/v2/image/edit
- URL: https://engine.prod.bria-api.com/v2/image/edit/crop_foreground
- Auth: API key in header api_token
Request body
Response
Successful operation (Synchronous Success)
Changes
- warning
deleted the
headerrequest parameterapi_token - info
api tag
Editingadded - info
api tag
v2 endpointsremoved
- warning