# Image Editing API Reference

Edit existing images: instruction-based editing with FIBO Edit, background removal and replacement, erasing, generative fill, expansion, upscaling, restyling, relighting and more. All endpoints are asynchronous by default and return a `request_id` and `status_url` (see the [status endpoint](/status) and [webhooks](/getting-started/async-requests#webhooks)); pass `sync: true` for a blocking call. Authenticate with the `api_token` header.



## Servers

```
https://engine.prod.bria-api.com/v2/image/edit
```

## Security

### api_token

[object Object]

Type: apiKey
In: header
Name: api_token

## Download OpenAPI description

 - [Image Editing API Reference](https://docs.bria.ai/_bundle/image-editing.yaml)

## Transformations

 - [POST /image/edit](https://docs.bria.ai/image-editing/editing/edit-image.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/fibo-image-edit) **Description** Powered by the **FIBO models family**, Bria's Image Editing by Text API equips b
 - [POST /structured_instruction/generate](https://docs.bria.ai/image-editing/editing/generate-structured-instruction.md): **Description** Translates a user's text-based edit instruction and source image/mask into a detailed, machine-readable structured edit instruction in JSON format. This endpoint uses the state-of-the-
 - [POST /add_object_by_text](https://docs.bria.ai/image-editing/editing/add-object-by-text.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/add-object-by-text) **Description** Insert new objects into an image using natural language to describe the objec
 - [POST /replace_object_by_text](https://docs.bria.ai/image-editing/editing/replace-object-by-text.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/replace-object-by-text) **Description** Swap an existing object in an image with a new one using a natural langua
 - [POST /erase_by_text](https://docs.bria.ai/image-editing/editing/erase-object-by-text.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/erase-object-by-text) **Description** Remove specific objects or unwanted elements from an image using natural la
 - [POST /blend](https://docs.bria.ai/image-editing/editing/blend-image.md): **Description** Merge objects, apply textures, or rearrange items within an image using natural language. **Example:** Instruction: "Place the art on the shirt, keep the art exactly the same" <table>
 - [POST /reseason](https://docs.bria.ai/image-editing/editing/reseason.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/image-reseason) **Description** Change the season or weather atmosphere of an image. **Example:** Season: "winter
 - [POST /rewrite_text](https://docs.bria.ai/image-editing/editing/rewrite.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/rewrite) **Description** Change existing text within an image to new specific text. **Example:** new_text: "FIBO
 - [POST /sketch_to_colored_image](https://docs.bria.ai/image-editing/editing/sketch-to-image.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/sketch-to-image) **Description** Convert a line drawing or sketch into a photorealistic colored image. <table> <t
 - [POST /restore](https://docs.bria.ai/image-editing/editing/restore.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/restore-old-images) **Description** Renew old photos by removing noise, scratches, and blur. <table> <tr> <th sty
 - [POST /colorize](https://docs.bria.ai/image-editing/editing/colorize.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/colorize) **Description** Add vivid colors to B&W photos or convert color to B&W. **Example:** style: "color_cont
 - [POST /restyle](https://docs.bria.ai/image-editing/editing/restyle.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/restyle-image) **Description** Transform the artistic style of an image. Accepts either a preset Style ID or a cu
 - [POST /relight](https://docs.bria.ai/image-editing/editing/relight.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/relight-image) **Description** Modify the lighting setup (direction and atmosphere) of an image. **Example:** * L
 - [POST /erase](https://docs.bria.ai/image-editing/editing/erase.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/eraser) **Description** The *Eraser Route* enables the removal of elements or specific areas from a given image.
 - [POST /gen_fill](https://docs.bria.ai/image-editing/editing/gen-fill.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/generative-fill) **Description** The *GenFill Route* enables the generation of objects by prompt in a specific re
 - [POST /remove_background](https://docs.bria.ai/image-editing/editing/background-remove.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/remove-background) **Description** The *Remove BG* Route can be used to remove the background of an image. This r
 - [POST /replace_background](https://docs.bria.ai/image-editing/editing/background-replace.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/replace-background) **Description** The *Replace BG Route* is used to replace the background of any image. We off
 - [POST /erase_foreground](https://docs.bria.ai/image-editing/editing/erase-foreground.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/erase-foreground) **Description** The **Erase Foreground** endpoint removes the primary subject (foreground) from
 - [POST /blur_background](https://docs.bria.ai/image-editing/editing/blur-bg.md): **Description** The *background/blur Route* is used to create a blur effect on the background of an image. **Content Moderation** This endpoint includes granular content moderation controls to ensure
 - [POST /expand](https://docs.bria.ai/image-editing/editing/image-expansion.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/expand-image) **Description** The *Image Expension Route* can be used to expand an image, by utilizing generative
 - [POST /enhance](https://docs.bria.ai/image-editing/editing/enhance.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/enhance-image) **Description** Regenerate an image with sharper textures and richer details while doubling resolu
 - [POST /increase_resolution](https://docs.bria.ai/image-editing/editing/increase-resolution.md): [**Try out this capability in Bria's sandbox**](https://platform.bria.ai/image-editing/increase-resolution) **Description** The *Increase Resolution Route* is used to upscale the resolution of any ima
 - [POST /crop_foreground](https://docs.bria.ai/image-editing/editing/crop.md): **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 backgro
## Segmentation

 - [POST /all_masks](https://docs.bria.ai/image-editing/segmentation/generate-all-masks.md): **Description** The *Generate All Masks Route* segments an image into every region the model can identify, and returns each region as its own binary mask. Use it to build a full segmentation map of an
