Endpoints that are part of BRIA API version 2.
- Increase Resolution
Overview
Bria's Image Editing API equips builders with a comprehensive suite of tools for manipulating and enhancing images, ranging from open-ended textual edits to specialized, task-specific operations.
General Image Editing (FIBO Edit)
Powered by the FIBO models family, our newest endpoints enable open-ended editing using natural language instructions. This allows for:
- Global Edits: Modify the style, lighting, or atmosphere of an entire image via text prompts.
- Localized Edits: Use native masking support to precisely alter specific regions while preserving the rest of the image.
- Structured Control: Convert text instructions into structured JSON for deterministic and auditable results.
Specialized Capabilities
For focused, high-volume tasks, the API provides optimized endpoints for specific editing capabilities:
- Background Operations: Removal, replacement, and blur.
- Content Manipulation: Eraser (object removal) and generative fill.
- Image Transformation: Expansion (outpainting), resolution increase (upscaling), and automatic cropping.
- Object & Person Tools: Person modification and automatic mask generation.
Asynchronous Requests and the Status Service Bria API v2 endpoints process requests asynchronously by default. When you make an asynchronous request, the API immediately returns a request_id and a status_url instead of the final result. Use the Status Service to track the request's progress until it reaches a completed state.
See the full guide at Status Service Documentation for complete details and usage examples.
Request
Description
Generatively enhances and upscales an input image to 4MP. This endpoint processes an existing image to improve fidelity, fix visual artifacts, and refine textures. The output is automatically standardized to a 4 megapixel resolution, regardless of the input dimensions.
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.
Note: use Increase Resolution route to increase resolution without impacting details.
The source image to be handled by the API.
Supported input types:
- Base64-encoded string
- URL pointing to an image file that is publicly accessible and available at the time of processing.
Accepted formats: JPEG, JPG, PNG, WEBP.
Optional seed for controlling generation randomness. You can recreate the same result in the future by using the same seed with the same input parameters.
Controls whether the alpha channel values from the input image are retained in the output, if the input includes an alpha channel.
Specifies the response mode.
- When
false(default), the request is processed asynchronously: the API immediately returns a status URL to track progress. - When
true, the request is processed synchronously: the API hold the connection open until the proccess is complete and then returns the final image URL in the response.
When enabled, applies content moderation to input visual.
Expected behavior:
- Processing stops if the image fails moderation.
- Returns a 422 error with details about which parameter failed.
- https://engine.prod.bria-api.com/v2/image/edit/enhance
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://engine.prod.bria-api.com/v2/image/edit/enhance \
-H 'Content-Type: application/json' \
-H 'api_token: string' \
-d '{
"image": "example"
}'{ "result": { "image_url": "string", "seed": "string" }, "request_id": "string" }
Request
Description
The Increase Resolution Route is used to upscale the resolution of any image.
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.
Constraints
The Bria API currently supports only JPEG and PNG files in RGB, RGBA, or CMYK color modes. When the file is of a different type or color mode, the status code 415 will be returned.
It's possible to increase the resolution of an image up to a total area of 8192x8192 pixels.
Unlike the Enhance Image route, this endpoint does not add new details — it increases resolution using a dedicated upscaling method that preserves the original image content without regeneration.
The source image to be handled by the API.
Supported input types:
- Base64-encoded string
- URL pointing to an image file that is publicly accessible and available at the time of processing.
Accepted formats: JPEG, JPG, PNG, WEBP.
Controls whether the alpha channel values from the input image are retained in the output, if the input includes an alpha channel.
- When true: The output image maintains the original transparency of fully and partially transparent pixels.
- When false: The output image is fully opaque.
- Has no effect if the input image does not include an alpha channel.
The resolution multiplier. The possible value are 2,4. It's possible to increase the resolution of an image up to a total area of 8,192x8,192 pixels.
Specifies the response mode.
- When
false(default), the request is processed asynchronously: the API immediately returns a status URL to track progress. - When
true, the request is processed synchronously: the API hold the connection open until the proccess is complete and then returns the final image URL in the response.
When enabled, applies content moderation to input visual.
Expected behavior:
- Processing stops if the image fails moderation.
- Returns a 422 error with details about which parameter failed.
- https://engine.prod.bria-api.com/v2/image/edit/increase_resolution
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://engine.prod.bria-api.com/v2/image/edit/increase_resolution \
-H 'Content-Type: application/json' \
-H 'api_token: string' \
-d '{
"image": "example"
}'{ "result": { "image_url": "string" }, "request_id": "string" }
Request
Description
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.
The source image to be handled by the API.
Supported input types:
- Base64-encoded string
- URL pointing to an image file that is publicly accessible and available at the time of processing.
Accepted formats: JPEG, JPG, PNG, WEBP.
Cropping the object with padding around it. Currently, padding is applied to all four borders of the remaining region. This parameter is optional.
When true, forces background detection and removal, even if the original image already contains an alpha channel. Useful for refining existing foreground/background separation or ignoring unnecessary alpha channels.
Controls whether the alpha channel values from the input image are retained in the output, if the input includes an alpha channel.
- When true: The output image maintains the original transparency of fully and partially transparent pixels.
- When false: The transparency values from the input are not preserved, but the output may still include an alpha channel (e.g., around the cropped area).
- Has no effect if the input image does not include an alpha channel.
Specifies the response mode.
- When
false(default), the request is processed asynchronously: the API immediately returns a status URL to track progress. - When
true, the request is processed synchronously: the API hold the connection open until the proccess is complete and then returns the final image URL in the response.
When enabled, applies content moderation to input visual.
Expected behavior:
- Processing stops if the image fails moderation.
- Returns a 422 error with details about which parameter failed.
- https://engine.prod.bria-api.com/v2/image/edit/crop_foreground
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://engine.prod.bria-api.com/v2/image/edit/crop_foreground \
-H 'Content-Type: application/json' \
-H 'api_token: string' \
-d '{
"image": "example"
}'{ "result": { "image_url": "string" }, "request_id": "string" }